/* SEPPI — landing provisional
   Identidad: rojo del logotipo, grises y blanco. Tipografía Poppins. */

:root {
  --red: #d7202a;          /* rojo vivo del isotipo */
  --red-dark: #981b1e;     /* rojo oscuro del nombre */
  --ink: #17181b;
  --text: #3d4046;
  --muted: #6c7078;
  --line: #e6e7ea;
  --soft: #f5f5f6;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(23, 24, 27, .07);
  --shadow-lift: 0 18px 44px rgba(23, 24, 27, .13);
  --header-h: 76px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.1vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 40px, 940px); }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); }
.section-dark h2 { color: #fff; }
.section-dark .section-head p:not(.eyebrow) { color: #b9bcc3; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }

.accent { color: var(--red); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(215, 32, 42, .28); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(152, 27, 30, .32); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-small { min-height: 44px; padding: 0 22px; font-size: .9rem; border-color: var(--red); color: var(--red); background: transparent; }
.btn-small::after { content: "→"; transition: transform .2s ease; }
.card:hover .btn-small, .btn-small:hover { background: var(--red); color: #fff; }
.card:hover .btn-small::after, .btn-small:hover::after { transform: translateX(4px); }

/* ---------- cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(23, 24, 27, .05); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; }

.site-nav ul { display: flex; gap: 6px; }
.site-nav a {
  position: relative; display: block; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); transition: color .2s;
}
.site-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--red); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 12px 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 8vw, 104px); background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -180px; top: -200px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, rgba(215, 32, 42, .1), rgba(215, 32, 42, 0)); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.lead { margin-top: 22px; font-size: 1.1rem; font-weight: 300; color: var(--text); max-width: 36em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .84rem; font-weight: 500; color: var(--ink); }

.hero-media { position: relative; }
.hero-photo { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4 / 3.4; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 24, 27, 0) 55%, rgba(23, 24, 27, .28) 100%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before { content: ""; position: absolute; left: -18px; bottom: -18px; width: 46%; height: 46%; border-radius: 24px; background: var(--red); z-index: -1; }
.hero-card { position: absolute; right: -14px; bottom: 26px; display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lift); }
.hero-card strong { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.hero-card span { font-size: .82rem; color: var(--muted); }
.hero-card-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(215, 32, 42, .16); flex: none; }

/* ---------- videos (carga al hacer clic) ---------- */
.video-frame { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lift); background: #000; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.yt-vertical { aspect-ratio: 9 / 16; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: opacity .3s ease, transform .5s ease; }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 82px; height: 82px; margin: -41px 0 0 -41px; border-radius: 50%; background: var(--red); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .25s ease, background-color .25s ease; }
.yt-play::after { content: ""; position: absolute; left: 33px; top: 26px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play { transform: scale(1.08); background: var(--red-dark); }

.shorts { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: clamp(20px, 4vw, 48px); }
.short .yt { border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.short p { margin-top: 14px; text-align: center; color: #d5d7dc; font-weight: 500; font-size: .95rem; }

/* ---------- tarjetas y servicios ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: #d9dade; }

.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.service { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; }
.service-wide { grid-column: span 3; }
.service-photo { aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--soft); }
.service-wide .service-photo { aspect-ratio: 16 / 8; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service:hover .service-photo img { transform: scale(1.05); }
/* fotos con personas: se conserva la parte superior del encuadre */
.service-photo img.keep-top { object-position: 50% 12%; }
.service-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1; }
.service-body p { color: var(--muted); font-size: .95rem; }
.service-body .btn { margin-top: auto; align-self: flex-start; }
.service-body p + .btn { margin-top: 10px; }

/* ---------- nosotros ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lift); }
.about-badge { position: absolute; left: -16px; bottom: 28px; max-width: 250px; padding: 18px 20px; background: var(--red); color: #fff; border-radius: 16px; box-shadow: 0 16px 36px rgba(152, 27, 30, .35); }
.about-badge strong { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.about-badge span { display: block; margin-top: 4px; font-size: .82rem; font-weight: 300; line-height: 1.45; }
.about-copy > p:not(.eyebrow) { margin-top: 16px; }
.features { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature:hover { border-color: rgba(215, 32, 42, .4); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(215, 32, 42, .09); color: var(--red); }
.feature h3 { font-size: 1rem; }
.feature p { margin-top: 4px; font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* ---------- clientes ---------- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 980px; margin-inline: auto; }
.clients li { display: grid; place-items: center; height: 124px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s; }
.clients li:hover { border-color: #d3d4d8; box-shadow: var(--shadow); transform: translateY(-3px); }
.clients img { max-height: 70px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .25s ease, opacity .25s ease; }
.clients li:hover img { filter: none; opacity: 1; }
/* escritorio: 4 + 3, con la segunda fila centrada bajo la primera */
@media (min-width: 761px) {
  .clients { grid-template-columns: repeat(8, 1fr); }
  .clients li { grid-column: span 2; }
  .clients li:nth-child(5) { grid-column: 2 / span 2; }
}

/* ---------- ubicación ---------- */
.location { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 24px; align-items: stretch; }
.location-card { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.location-card:hover { transform: none; }
.location-card h3 { font-size: 1.3rem; }
.location-card dl { display: grid; gap: 18px; }
.location-card dt { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.location-card dd { color: var(--ink); font-size: .96rem; }
.location-card dd a { font-weight: 600; text-decoration-color: rgba(215, 32, 42, .4); text-underline-offset: 3px; }
.location-card dd a:hover { color: var(--red); }
.location-card .btn { margin-top: auto; align-self: flex-start; }
.map { min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #e9eaec; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- pie ---------- */
.site-footer { background: var(--ink); color: #b9bcc3; padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 48px; padding-bottom: 44px; }
.footer-brand img { height: 50px; width: auto; background: #fff; padding: 8px 14px; border-radius: 10px; }
.footer-brand p { margin-top: 18px; max-width: 34em; font-weight: 300; }
.site-footer h2 { color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .85rem; color: #8b8f97; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px rgba(37, 211, 102, .42);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px rgba(37, 211, 102, .5); }
.whatsapp-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }

/* ---------- apariciones al desplazarse ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1020px) {
  .hero-grid, .about { grid-template-columns: 1fr; }
  .hero-media { max-width: 640px; margin-inline: auto; width: 100%; }
  .hero-card { right: 14px; }
  .about-media { max-width: 560px; margin-inline: auto; width: 100%; }
  .about-media img { aspect-ratio: 4 / 3.2; }
  .about-badge { left: 14px; }
  .service, .service-wide { grid-column: span 3; }
  .service:nth-child(5) { grid-column: 2 / span 4; }
  .service-wide .service-photo { aspect-ratio: 16 / 10.5; }
  .location { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- móvil ---------- */
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .brand img { height: 38px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(23, 24, 27, .08);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .3s ease, visibility .3s;
  }
  .site-nav.is-open { max-height: 360px; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 18px; }
  .site-nav a { padding: 14px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a::after { display: none; }

  .hero-actions .btn { flex: 1 1 100%; }
  .hero-card { position: static; margin-top: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
  .hero-media::before { left: -10px; bottom: 62px; }
  .service, .service-wide, .service:nth-child(5) { grid-column: 1 / -1; }
  .features { grid-template-columns: 1fr; }
  .about-badge { position: static; max-width: none; margin-top: 16px; }
  .shorts { grid-template-columns: minmax(0, 300px); }
  .clients { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .clients li { height: 104px; padding: 18px; }
  .clients li:nth-child(7) { grid-column: 1 / -1; }
  .map, .map iframe { min-height: 340px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
