/* Sorvicor · presentación web — identidad: skill sorvicor-design. Fondo claro siempre. */
:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface2: #F0F0F2;
  --border: rgba(0,0,0,.07);
  --orange: #F05A28;
  --orange-hover: #D94E20;
  --gray-dark: #58595B;
  --text: #1D1D1F;
  --text-muted: #6E6E73;
  --text-dim: #A1A1A6;
  --shadow: 0 4px 24px rgba(0,0,0,.07);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.06);
  --radius: 14px;
  --font: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
b { font-weight: 600; }
figure { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Tipografía */
h1, h2, h3 { margin: 0; color: var(--text); }
h1 { font-weight: 300; font-size: clamp(30px, 6.2vw, 52px); line-height: 1.1; letter-spacing: -.5px; margin-bottom: 18px; }
h2 { font-weight: 300; font-size: clamp(26px, 4.4vw, 40px); line-height: 1.15; letter-spacing: -.4px; margin-bottom: 12px; }
h3 { font-weight: 500; font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
p { margin: 0 0 12px; max-width: 720px; }
.lead { font-size: clamp(16px, 2.1vw, 18px); color: var(--text-muted); max-width: 780px; margin-bottom: 28px; }
.lead b { color: var(--text); }
.label { font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.label-gray { color: var(--gray-dark); }
.label-white { color: #fff; }
.todo { font-size: .85em; font-weight: 500; color: var(--orange-hover); background: rgba(240,90,40,.08); padding: 1px 6px; border-radius: 4px; white-space: normal; }
.tag { display: inline-block; background: rgba(240,90,40,.1); color: var(--orange-hover); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; padding: 3px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.mt { margin-top: 18px; }
.mt-lg { margin-top: 32px; }

/* Secciones */
.sec { padding: 64px 0; }
@media (min-width: 900px) { .sec { padding: 96px 0; } }
.sec-white { background: var(--surface); }
.sec-gray { background: var(--surface2); }

/* Botones */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font: 500 15px/1.2 var(--font); letter-spacing: .5px; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn small { font-size: 11px; font-weight: 400; letter-spacing: .5px; opacity: .9; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--orange-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: rgba(0,0,0,.18); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--surface2); color: var(--text); border-color: var(--gray-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(0,0,0,.15); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--surface2); color: var(--text); }
.btn-white { background: #fff; color: var(--text); }
.btn-white:hover, .btn-white:focus-visible { background: var(--surface2); color: var(--text); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline-white:hover, .btn-outline-white:focus-visible { background: rgba(255,255,255,.14); color: #fff; }
.btn-block { width: 100%; margin-top: 14px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: none; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-btns { display: flex; gap: 8px; }
@media (min-width: 1020px) { .nav-links { display: flex; } .nav-logo img { height: 32px; } }
@media (max-width: 380px) { .nav-logo img { height: 22px; } .btn-sm { padding: 8px 10px; font-size: 12px; } }

/* HERO */
.hero { padding: 40px 0 56px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
@media (min-width: 560px) { .hero-cta { flex-direction: row; flex-wrap: wrap; } .hero-cta .btn { white-space: nowrap; } }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.08fr 1fr; gap: 56px; }
}

/* Certificaciones (badges) */
.certs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.certs span { background: rgba(88,89,91,.08); color: var(--gray-dark); border-radius: 4px; padding: 5px 10px; font-size: 10.5px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }

/* Grillas */
.grid { display: grid; gap: 14px; }
.g2, .g3, .g4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .g2, .g4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }

/* Cards y KPIs */
.card { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); border-top: 2px solid var(--orange); }
.sec-white .card { background: var(--bg); box-shadow: none; }
.card p { font-size: 14.5px; color: var(--text-muted); margin: 0; }
.ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(240,90,40,.08); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ico svg { width: 20px; height: 20px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpis { margin-bottom: 18px; }
.kpi { background: var(--surface); color: var(--text); border-top: 2px solid var(--orange); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow-sm); }
.sec-white .kpi { background: var(--bg); box-shadow: none; }
.kpi .l { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-dark); }
.kpi .v { font-size: 28px; font-weight: 300; line-height: 1.2; margin: 6px 0 2px; }
.kpi .v.sm { font-size: 20px; margin: 0; }
.kpi .u { font-size: 13px; color: var(--text-muted); }
.zonas { gap: 10px; }

/* Split texto + foto */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.05fr 1fr; gap: 56px; } .split-rev { grid-template-columns: 1fr 1.05fr; } }
@media (max-width: 959px) { .split-rev > figure { order: 2; } }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--surface2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-43 { aspect-ratio: 4 / 3; }
.photo-fig figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.list { margin: 0 0 6px; padding-left: 20px; font-size: 15.5px; line-height: 1.7; }
.list li { margin-bottom: 6px; }
.list li::marker { color: var(--orange); }

/* Videos */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.video-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(255,255,255,.55); }
.video-ph .play { width: 64px; height: 64px; border-radius: 50%; background: var(--orange); position: relative; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.video-ph .play::after { content: ''; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.video-ph .ph-t { background: var(--surface); color: var(--text); font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; }
.g-videos { grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 600px) { .g-videos { gap: 20px; } }
@media (min-width: 1020px) { .g-videos { grid-template-columns: repeat(4, 1fr); } }
.corto .video { box-shadow: var(--shadow-sm); background: var(--surface); }
.corto .video-ph .play { width: 46px; height: 46px; }
.corto .video-ph .play::after { left: 19px; top: 14px; border-left-width: 13px; border-top-width: 9px; border-bottom-width: 9px; }
.corto .video-ph .ph-t { font-size: 10.5px; }
.corto figcaption { font-size: 14.5px; font-weight: 500; color: var(--text); margin-top: 10px; }

/* Trabajos especiales */
.work { background: var(--surface); color: var(--text); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.work .photo { border-radius: 0; }
.ratio-work { aspect-ratio: 4 / 3; }
.ratio-work img { object-position: center 35%; }
.photo-empty { display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text-muted); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }
.work-txt { padding: 18px 22px 22px; }
.work-txt p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* Clientes */
.logos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .logos { grid-template-columns: repeat(4, 1fr); } }
.logos > div { background: var(--bg); color: var(--gray-dark); border-radius: 12px; padding: 24px 12px; min-height: 82px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; text-align: center; font-weight: 500; font-size: 17px; letter-spacing: .3px; }
.logos > div.con-logo { padding: 14px 18px; }
.logos > div.con-logo img, .marcas img { width: 160px; height: 64px; max-width: 100%; object-fit: contain; filter: grayscale(1) opacity(.75); transition: filter .2s; }
.logos > div.con-logo:hover img, .marcas > div:hover img { filter: none; }

/* Marcas que distribuye el mayorista: franja de logos en gris, color al pasar el mouse */
.marcas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 600px) { .marcas { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .marcas { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.marcas > div { background: var(--surface); border-radius: 12px; min-height: 84px; padding: 10px 12px; display: flex; align-items: center; justify-content: center; text-align: center; }
.marcas > div > span { color: var(--gray-dark); font-weight: 500; font-size: 15px; letter-spacing: .3px; }
@media (max-width: 599px) { .marcas > div { min-height: 64px; padding: 8px; } .marcas img { height: 44px; } }
.logos > div.logo-todo { background: transparent; border: 1px dashed rgba(0,0,0,.15); font-size: 13px; }

/* Certificaciones */
.certgrid { gap: 16px; }
.cert-card { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border-top: 2px solid var(--orange); }
.cert-tag { display: inline-block; background: var(--orange); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; margin-bottom: 14px; }
.cert-card p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* CTA final naranja */
.cta { background: var(--orange); color: #fff; }
.cta h2 { color: #fff; font-weight: 400; max-width: 820px; margin-bottom: 28px; }
.contact-grid { gap: 14px; }
.box { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 3px; font-size: 15px; line-height: 1.55; }
.box b { font-size: 17px; font-weight: 600; }
.box .role { color: var(--text-muted); font-size: 13.5px; margin-bottom: 6px; }
.box a:not(.btn) { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.box a:not(.btn):hover { text-decoration: underline; }
.cta-docs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Footer */
.foot { background: var(--surface); color: var(--text-muted); border-top: 1px solid var(--border); padding: 36px 0; font-size: 13.5px; }
.foot-in { display: grid; gap: 18px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: auto 1fr; gap: 48px; align-items: center; } .foot-in > div:last-child { text-align: right; } .foot-in p { margin-left: auto; } }
.foot img { height: 28px; width: auto; margin-bottom: 8px; }
.foot p { margin: 0 0 6px; max-width: none; }
.foot-certs { font-size: 11px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gray-dark); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Videos propios verticales 9:16 (mp4 servido desde la web, mientras no haya YouTube) */
.video.is-mp4 { aspect-ratio: 1080 / 1740; background: #000; }
.video.is-mp4 video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-main.is-mp4 { aspect-ratio: auto; background: var(--surface2); box-shadow: none; border-radius: 0; display: flex; justify-content: center; overflow: visible; }
.video-main.is-mp4 video { position: static; width: min(100%, calc(80vh * 1080 / 1740)); height: auto; aspect-ratio: 1080 / 1740; object-fit: contain; background: #000; border-radius: var(--radius); box-shadow: var(--shadow); }
.corto .video.is-mp4 { box-shadow: var(--shadow-sm); }
.video.is-mp4 .vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.video-main.is-mp4 { position: relative; }
.vplay .play { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--orange); position: relative; box-shadow: 0 4px 18px rgba(0,0,0,.25); transition: background .15s; }
.vplay:hover .play, .vplay:focus-visible .play { background: var(--orange-hover); }
.vplay .play::after { content: ''; position: absolute; left: 29px; top: 22px; border-left: 20px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.corto .vplay { width: 52px; height: 52px; }
.corto .vplay .play::after { left: 21px; top: 16px; border-left-width: 14px; border-top-width: 10px; border-bottom-width: 10px; }
.video.playing .vplay { display: none; }

/* Cortos del proceso: ventanas al proceso, sin controles ni audio (los arranca script.js al entrar en pantalla) */
.video.is-ambiente { background: var(--surface); }
.video.is-ambiente video { object-fit: cover; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .video.is-ambiente video { pointer-events: auto; } }

/* PH a domicilio: recipientes a presión (ASME) */
.rec { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--border); }
.rec-tit { font-size: clamp(19px, 2.4vw, 24px); font-weight: 500; line-height: 1.3; margin: 0 0 6px; color: var(--text); }
.rec-norma { font-size: 14px; font-style: italic; color: var(--gray-dark); margin: 0 0 8px; }
.rec-baj { font-size: 16px; color: var(--text-muted); margin: 0 0 22px; max-width: 780px; }
.pasos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.pasos li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); color: var(--text); border-radius: 12px; padding: 12px 16px; font-size: 15px; line-height: 1.45; }
.pasos .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(240,90,40,.1); color: var(--orange-hover); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
@media (min-width: 900px) { .pasos { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 10px 20px; } }

/* Página que se construye con el scroll. Solo oculta con html.anim (la pone script.js): sin JS, todo visible. */
.anim .reveal { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.anim .reveal.in { opacity: 1; transform: none; }
.hero-photo img { will-change: transform; transform: scale(1.08); }
.anim .hero-photo img { transition: none; }
@media (prefers-reduced-motion: reduce) { .anim .reveal { opacity: 1; transform: none; transition: none; } .hero-photo img { transform: none; } }
@media print { .anim .reveal { opacity: 1 !important; transform: none !important; } }
