/* ==========================================================================
   CARINAE — identidad institucional (Manual de Marca Carinae)
   Colores oficiales: #0066ff · #5fcee8 · #002858 · #ffcf00 · #f72332
   Tipografías: Monda (títulos / identidad) · Goldplay (subtítulos / texto)
   Los fondos claros y líneas son mezclas de los colores oficiales con blanco.
   ========================================================================== */
@font-face { font-family: "Monda"; src: url("/fonts/carinae/monda-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Goldplay"; src: url("/fonts/carinae/goldplay-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Goldplay"; src: url("/fonts/carinae/goldplay-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Goldplay"; src: url("/fonts/carinae/goldplay-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --c-blue: #0066ff;
  --c-sky: #5fcee8;
  --c-navy: #002858;
  --c-yellow: #ffcf00;
  --c-red: #f72332;

  --bg: #ffffff;
  --text: var(--c-navy);
  --muted: color-mix(in srgb, var(--c-navy) 72%, white);
  --surface: color-mix(in srgb, var(--c-sky) 9%, white);
  --line: color-mix(in srgb, var(--c-navy) 14%, white);
  --header-bg: rgba(255,255,255,.94);
  --focus: var(--c-blue);
  --focus-ring: color-mix(in srgb, var(--c-blue) 25%, transparent);
  --field-bg: #fff; --field-text: var(--c-navy); --field-line: color-mix(in srgb, var(--c-navy) 28%, white);
  --error: #c4101d; --error-bg: #fde8ea; --error-text: #8a0b14;
  --ok-bg: color-mix(in srgb, var(--c-sky) 22%, white); --ok-text: var(--c-navy);
  --req: var(--c-blue);

  --font-display: "Monda", "Segoe UI", system-ui, sans-serif;
  --font-body: "Goldplay", "Segoe UI", system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 4px;
  --max: 1240px;
}

body { font-weight: 400; }
.eyebrow { font-family: var(--font-display); color: var(--c-blue); letter-spacing: .16em; font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.muted { color: var(--muted); }

/* Header */
.brand-link img { height: 24px; width: auto; }
@media (min-width: 960px) { .brand-link img { height: 28px; } }
.site-nav a { color: var(--c-navy); }
.site-nav a:hover { color: var(--c-blue); }
.site-nav .btn { padding: 10px 20px; min-height: 44px; }

.btn-primary { background: var(--c-blue); color: #fff; }
.btn-primary:hover { background: var(--c-navy); }
.btn-ghost { border-color: var(--c-navy); color: var(--c-navy); background: transparent; }
.btn-ghost:hover { background: var(--c-navy); color: #fff; }
.btn-light { background: #fff; color: var(--c-navy); }
.btn-light:hover { background: var(--c-sky); }
.btn-wa { background: transparent; color: inherit; border-color: currentColor; }

/* Coordenadas: recurso tipográfico de territorio */
.coord { font-family: var(--font-display); font-size: .8125rem; letter-spacing: .12em; color: var(--muted); }

/* QUIÉNES SOMOS */
.about { border-top: 1px solid var(--line); }
.about h2 { max-width: 18ch; }
.about-body { color: var(--muted); }
.about-body p + p { margin-top: 18px; }
.practice { margin-top: 40px; border-top: 1px solid var(--line); }
.practice-title { margin: 20px 0 14px; font-family: var(--font-display); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.practice ul { display: flex; flex-wrap: wrap; gap: 10px; }
.practice li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; }

/* FORMA DE TRABAJAR */
.method { background: var(--surface); }
.method-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .method-head { grid-template-columns: 5fr 7fr; align-items: end; } }
.pillars { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .pillar { padding: 32px 28px 40px 0; } .pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); } .pillar:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (min-width: 1100px) { .pillar:nth-child(3) { padding-left: 28px; border-left: 1px solid var(--line); } .pillar { border-bottom: 0; } }
.pillar-num { font-family: var(--font-display); font-size: .875rem; color: var(--c-blue); letter-spacing: .1em; }
.pillar h3 { margin: 40px 0 12px; font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
.pillar p { color: var(--muted); }

/* ===== Superficies redondeadas (tarjetas) ===== */
.card { background: var(--surface); border-radius: 16px; }

/* HERO — carrusel a pantalla completa con texto sobre la imagen */
.hero { position: relative; display: grid; align-items: end; min-height: clamp(560px, 88vh, 900px); overflow: hidden; background: var(--c-navy); color: #fff; }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-active img { animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.slide figcaption { position: absolute; right: 16px; bottom: 16px; max-width: 420px; font-size: .6875rem; line-height: 1.4; text-align: right; color: rgba(255,255,255,.78); }
.slide figcaption a { color: inherit; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,40,88,.92) 0%, rgba(0,40,88,.72) 38%, rgba(0,40,88,.12) 72%), linear-gradient(0deg, rgba(0,40,88,.65) 0%, rgba(0,40,88,0) 45%); }
.hero-content { position: relative; z-index: 2; padding-block: 120px 120px; }
.hero-eyebrow { display: inline-block; margin-bottom: 22px; font-family: var(--font-display); font-size: .875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-sky); }
.hero h1 { max-width: 13ch; font-size: clamp(2.5rem, 6vw, 5.25rem); letter-spacing: -.02em; line-height: 1.02; }
.hero h1 .line2 { display: block; color: var(--c-sky); }
.hero .lead { margin-top: 24px; max-width: 44ch; color: rgba(255,255,255,.88); }
.hero .btn-row { margin-top: 32px; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--c-navy); }
.hero-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 40px; display: flex; align-items: center; gap: 16px; }
.slide-dots { display: flex; gap: 8px; }
.slide-dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; position: relative; }
.slide-dots button::after { content: ""; position: absolute; inset: -12px 0; }
.slide-dots button[aria-current="true"] { background: #fff; }
.slide-pause { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.i-pause { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.slide-pause[aria-pressed="true"] .i-pause { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
@media (max-width: 699px) {
  .hero { min-height: 92svh; }
  .hero-shade { background: linear-gradient(0deg, rgba(0,40,88,.95) 0%, rgba(0,40,88,.75) 45%, rgba(0,40,88,.25) 100%); }
  .hero-content { padding-block: 120px 96px; }
  .slide figcaption { left: 16px; right: 16px; bottom: 12px; text-align: left; }
  .hero-controls { bottom: 52px; }
}

/* QUIÉNES SOMOS — tarjeta de práctica */
.practice.card { margin-top: 32px; padding: 24px 28px 28px; border-top: 0; }
.practice.card .practice-title { margin-top: 0; }
.practice.card li { background: #fff; }

/* FORMA DE TRABAJAR — tarjetas */
.method { background: #fff; }
.pillars { display: grid; gap: 16px; border: 0; }
@media (min-width: 700px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillars .pillar, .pillars .pillar + .pillar, .pillars .pillar:nth-child(3) { padding: 28px 28px 32px; border: 0; }
.pillar h3 { margin: 36px 0 10px; }

/* DESARROLLO — banner con imagen y texto sobre azul #002858 */
.future { background: #fff; color: var(--c-navy); padding-top: 0; }
.future-banner { position: relative; display: grid; align-items: end; min-height: clamp(460px, 44vw, 600px); border-radius: 20px; overflow: hidden; background: var(--c-navy); color: #fff; }
.future-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.future-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #002858 0%, rgba(0,40,88,.9) 32%, rgba(0,40,88,.15) 70%), linear-gradient(0deg, rgba(0,40,88,.55), rgba(0,40,88,0) 50%); }
.future-banner-text { position: relative; z-index: 2; max-width: 560px; padding: clamp(28px, 5vw, 56px); }
.future-banner-text .eyebrow { color: var(--c-sky); }
.future-banner-text h2 { margin: 14px 0 18px; }
.future-banner-text p { color: rgba(255,255,255,.88); }
@media (max-width: 699px) { .future-banner::before { background: linear-gradient(0deg, #002858 0%, rgba(0,40,88,.85) 55%, rgba(0,40,88,.2) 100%); } .future-banner { min-height: 560px; } }
.path { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .path { grid-template-columns: repeat(3, 1fr); } }
.path li { position: relative; padding: 24px 28px 28px 52px; }
.path li::before { content: ""; position: absolute; top: 30px; left: 26px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-blue); }
.path li:nth-child(2)::before { background: transparent; border: 2px solid var(--c-blue); }
.path li:nth-child(3)::before { background: transparent; border: 2px dashed var(--c-blue); }
.path-label { font-family: var(--font-display); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-blue); }
.path p { margin-top: 8px; color: var(--muted); }

/* MARCAS — tarjetas con botón de flecha */
.brands { padding-top: 0; }
.brands-grid { display: grid; gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 800px) { .brands-grid { grid-template-columns: repeat(2, 1fr); } }
.brand-card { display: grid; grid-template-rows: auto 1fr auto; border-radius: 20px; overflow: hidden; background: var(--surface); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px color-mix(in srgb, var(--c-navy) 12%, transparent); }
.brand-card-logo { display: flex; align-items: center; justify-content: center; height: 260px; padding: 32px; background: #fff; margin: 8px 8px 0; border-radius: 14px; }
.brand-card-logo img { max-height: 180px; width: auto; }
.brand-card-body { padding: 24px 28px 4px; }
.brand-card-body h3 { font-size: 1.75rem; }
.brand-card-body p { margin-top: 10px; color: var(--muted); }
.brand-card-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 12px 12px 28px; font-weight: 700; color: var(--c-blue); }
.arrow-box { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--c-blue); color: #fff; transition: transform .25s; }
.arrow-box svg { width: 22px; height: 22px; }
.brand-card:hover .arrow-box { transform: translateX(4px); }

/* PRESENCIA */
.presence { border-top: 0; padding-top: 0; }
.presence-card { display: grid; gap: 24px; padding: clamp(28px, 5vw, 56px); align-items: end; }
@media (min-width: 900px) { .presence-card { grid-template-columns: 5fr 7fr; } }
.presence-line { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.2; }

/* CONTACTO */
.contact { background: var(--surface); }
.contact h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
.contact-aside p { color: var(--muted); }
.contact-aside .btn { margin-top: 28px; }
.contact-card { padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-success h3 { font-size: 1.75rem; margin-bottom: 12px; }

/* PIE */
.site-footer { background: var(--c-blue); color: #fff; padding-block: 64px 32px; }
.site-footer a { color: #fff; }
.footer-top { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.3); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 5fr 3fr 4fr; } }
.footer-logo img { width: 220px; height: auto; }
.footer-title { margin-bottom: 14px; font-family: var(--font-display); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: .875rem; }
.footer-bottom button { padding: 0; border: 0; background: none; color: #fff; text-decoration: underline; cursor: pointer; font-size: .875rem; }

/* PÁGINAS LEGALES */
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal .wrap { --max: 820px; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 12px; }
.legal h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); margin: 48px 0 14px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .9375rem; }
.legal th, .legal td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { background: var(--surface); }
.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }
