/* ============================================================
   HRP — Human Resources Partner
   Sistema de diseño compartido · construido sobre Diseño.png
   Terracota sobre papel cálido · serif editorial + sans de interfaz
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* --- Color --- */
    --terracotta:       #B5563D;
    --terracotta-dark:  #8F4229;
    --terracotta-soft:  #D08A72;
    --salmon:           #E9A08B;
    --salmon-deep:      #E08D77;
    --salmon-light:     #F7D6CA;
    --blush:            #FBE7DE;
    --blush-50:         #FDF4F0;

    --canvas:           #FCFBFA;
    --paper:            #FAF7F5;
    --white:            #FFFFFF;

    --ink:              #23252A;
    --charcoal:         #3C3F45;
    --gray:             #6B6F76;
    --hairline:         #EAE4DF;
    --hairline-soft:    #F1ECE8;

    --footer-bg:        #26221F;

    /* --- Tipografía --- */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* --- Forma --- */
    --r-card: 16px;
    --r-band: 24px;
    --r-pill: 999px;

    --shadow-card:  0 2px 18px rgba(35, 37, 42, 0.05);
    --shadow-float: 0 10px 36px rgba(35, 37, 42, 0.11);

    /* --- Layout --- */
    --container: 1200px;
    --header-h: 84px;
    --gutter: 24px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    font-family: var(--font-ui);
    font-size: 16px;
    color: var(--charcoal);
    background: var(--canvas);
    line-height: 1.6;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.012em;
    line-height: 1.15;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--terracotta); color: var(--white);
    padding: 12px 20px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   UTILIDADES
   ============================================================ */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: 50px 0; }

.section-title { text-align: center; margin-bottom: 38px; }
.section-title h2 { font-size: 38px; }
.section-title h2 em { font-style: normal; color: var(--terracotta); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-ui); font-size: 15px; font-weight: 600;
    padding: 14px 28px; border-radius: var(--r-pill);
    text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease,
                transform .25s ease, box-shadow .25s ease;
    white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; }

.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(181,86,61,.26); }

.btn-outline { background: var(--white); color: var(--ink); border-color: var(--terracotta-soft); }
.btn-outline:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px); }

.btn-sm { padding: 11px 24px; font-size: 14px; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 0 var(--hairline);
    transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 22px rgba(35,37,42,.08); }

.header-inner {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
    height: var(--header-h);
    display: flex; align-items: center; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 62px; height: 62px; }
.brand-tagline { font-size: 15px; line-height: 1.25; color: var(--charcoal); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }

.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 5px;
    text-decoration: none; color: var(--ink);
    font-size: 15px; font-weight: 500; padding: 10px 14px;
    background: none; border: 0; font-family: inherit; cursor: pointer;
    transition: color .25s ease;
}
.nav-link::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 0;
    height: 2px; background: var(--terracotta);
    transform: scaleX(0); transition: transform .25s ease;
}
.nav-link:hover { color: var(--terracotta); }
.nav-link[aria-current="page"] { color: var(--terracotta); }
.nav-link[aria-current="page"]::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-link .chevron { width: 11px; height: 11px; stroke: currentColor; transition: transform .25s ease; }
.nav-link[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Submenú desplegable — en reserva: la navegación actual no lo usa */
.nav-item { position: relative; }

.dropdown {
    position: absolute; top: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 290px; background: var(--white);
    border: 1px solid var(--hairline); border-radius: 14px;
    box-shadow: var(--shadow-float); padding: 8px;
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-item:hover .dropdown, .dropdown.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
    display: block; padding: 10px 14px; border-radius: 9px;
    font-size: 14.5px; color: var(--charcoal); text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.dropdown a:hover { background: var(--blush-50); color: var(--terracotta); }
.dropdown .dropdown-all {
    margin-top: 6px; padding-top: 12px; font-weight: 600; color: var(--terracotta);
    border-top: 1px solid var(--hairline-soft); border-radius: 0 0 9px 9px;
}

.header-cta { margin-left: 12px; }

.hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto;
    background: none; border: 0; cursor: pointer; padding: 10px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: var(--white); padding: 12px var(--gutter) 28px;
    box-shadow: 0 14px 28px rgba(35,37,42,.12); z-index: 999;
    flex-direction: column;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
    text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 500;
    padding: 15px 10px; border-bottom: 1px solid var(--hairline-soft);
}
.mobile-nav a[aria-current="page"] { color: var(--terracotta); }
.mobile-nav .mobile-sub { padding-left: 26px; font-size: 14.5px; color: var(--gray); font-weight: 400; }
.mobile-nav .btn { margin-top: 20px; width: 100%; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative; overflow: hidden;
    padding: calc(var(--header-h) + 58px) 0 56px;
    background: linear-gradient(120deg, var(--white) 0%, var(--paper) 46%, var(--blush-50) 100%);
}

/* Arco decorativo durazno, detrás de la imagen */
.hero-arc {
    position: absolute; top: -130px; right: -110px;
    width: 420px; height: 420px; border-radius: 50%;
    border: 58px solid var(--salmon-light); opacity: .85;
    z-index: 0; pointer-events: none;
}

.hero-media {
    position: absolute; top: var(--header-h); right: 0; bottom: 0;
    width: 64%; z-index: 1;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-media img.is-missing { display: none; }

/* Marcador de posición mientras no exista la foto del equipo */
.media-fallback {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(145deg, var(--blush) 0%, var(--salmon-light) 55%, #EFD9CC 100%);
    display: grid; place-items: center;
}
.media-fallback svg { width: 190px; height: 190px; stroke: var(--terracotta); opacity: .34; }

/* Funde el borde izquierdo con el lienzo. El tramo es corto a propósito:
   si se alarga, la primera persona de la fotografía queda desvaída. */
.hero-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right,
        var(--paper) 0%,
        rgba(250,247,245,.88) 7%,
        rgba(250,247,245,0) 19%);
}

.hero-inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
    gap: 40px; align-items: center;
}

.hero-copy h1 { font-size: 60px; line-height: 1.04; letter-spacing: -0.02em; }
.hero-copy h1 em { font-style: normal; color: var(--terracotta); display: block; }
.hero-copy > p {
    margin: 26px 0 32px; font-size: 18px; color: var(--charcoal);
    line-height: 1.55; max-width: 430px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-check {
    display: flex; align-items: center; gap: 11px;
    margin-top: 30px; font-size: 15px; color: var(--gray);
}
.hero-check svg { width: 26px; height: 26px; stroke: var(--terracotta); flex-shrink: 0; }

/* --- Tarjetas de métricas --- */
.hero-cards { display: flex; flex-direction: column; gap: 17px; align-items: flex-start; }

.metric-card {
    background: var(--white); border-radius: 15px;
    padding: 17px 22px 19px; box-shadow: var(--shadow-float);
    width: 310px; max-width: 100%;
}
.metric-card:nth-child(2) { margin-left: 6px; }
.metric-card:nth-child(3) { width: 332px; }

/* Portada de Inicio: las tres tarjetas en fila, bajo el texto y a todo el ancho,
   para no tapar la fotografía. Personas y Empresas mantienen las suyas en columna. */
.home-hero .hero-inner { align-items: start; }
.home-hero .hero-cards {
    grid-column: 1 / -1;
    flex-direction: row; gap: 18px;
    align-items: stretch; margin-top: 50px;
}
.home-hero .metric-card,
.home-hero .metric-card:nth-child(2),
.home-hero .metric-card:nth-child(3) { flex: 1 1 0; width: auto; min-width: 0; margin-left: 0; }

.metric-card h3 {
    font-family: var(--font-ui); font-size: 14.5px; font-weight: 500;
    color: var(--gray); letter-spacing: -0.01em;
}
.metric-body { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.metric-note { font-size: 12.5px; color: var(--gray); line-height: 1.3; }
.metric-delta {
    display: flex; align-items: center; gap: 5px;
    font-size: 21px; font-weight: 700; color: var(--terracotta); letter-spacing: -0.02em;
}
.metric-delta svg { width: 15px; height: 15px; stroke: var(--terracotta); }
.metric-figure { flex-shrink: 0; }
.gauge-value {
    font-family: var(--font-ui); font-size: 17px; font-weight: 700;
    fill: var(--terracotta); letter-spacing: -0.02em;
}

/* ============================================================
   PROBLEMAS
   ============================================================ */

.problems { background: var(--white); }
.problems-grid { display: grid; grid-template-columns: repeat(6, 1fr); }

.problem { text-align: center; padding: 0 16px; border-right: 1px solid var(--hairline-soft); }
.problem:last-child { border-right: 0; }

.icon-circle {
    width: 74px; height: 74px; border-radius: 50%;
    background: var(--blush-50);
    display: grid; place-items: center; margin: 0 auto 20px;
}
.icon-circle svg { width: 36px; height: 36px; stroke: var(--terracotta); }

.problem h3 { font-family: var(--font-ui); font-size: 16px; font-weight: 700; line-height: 1.35; }
.problem p { margin-top: 12px; font-size: 14px; color: var(--gray); line-height: 1.45; }

/* ============================================================
   SOLUCIONES
   ============================================================ */

.solutions { background: var(--canvas); }
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.solution {
    background: var(--paper); border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card); padding: 30px 22px 28px; text-align: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.solution:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--salmon-light); }
.solution svg { width: 46px; height: 46px; stroke: var(--terracotta); margin: 0 auto 20px; }
.solution h3 { font-size: 19px; line-height: 1.25; }
.solution p { margin-top: 13px; font-size: 14.5px; color: var(--gray); line-height: 1.5; }

/* ============================================================
   PROCESO
   ============================================================ */

.process { background: var(--canvas); padding-top: 16px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.process-steps::before {
    content: ''; position: absolute; top: 47px; left: 12.5%; right: 12.5%;
    height: 1px; background: var(--salmon-light); z-index: 0;
}

.step { text-align: center; position: relative; z-index: 1; padding: 0 14px; }
.step-circle {
    width: 94px; height: 94px; border-radius: 50%;
    background: var(--blush-50); border: 1px solid var(--blush);
    display: grid; place-items: center; margin: 0 auto 24px;
}
.step-circle svg { width: 42px; height: 42px; stroke: var(--terracotta); }

.step-head { display: flex; align-items: center; justify-content: center; gap: 10px; }
.step-num {
    width: 25px; height: 25px; border-radius: 50%;
    background: var(--terracotta); color: var(--white);
    font-size: 12.5px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0;
}
.step-head h3 { font-family: var(--font-ui); font-size: 16.5px; font-weight: 700; }
.step p { margin-top: 12px; font-size: 14.5px; color: var(--gray); line-height: 1.45; }

/* ============================================================
   CIFRAS — en reserva
   La banda se retiró de la portada; los estilos quedan por si
   vuelve a usarse.
   ============================================================ */

.stats { padding-top: 30px; }
.stats-band {
    background: linear-gradient(100deg, #EEB3A3 0%, var(--salmon) 45%, var(--salmon-deep) 100%);
    border-radius: var(--r-band); padding: 38px 24px;
    display: grid; grid-template-columns: repeat(4, 1fr); color: var(--white);
}
.stat {
    display: flex; align-items: center; gap: 18px;
    padding: 4px 22px; border-right: 1px solid rgba(255,255,255,.38);
}
.stat:last-child { border-right: 0; }
.stat > svg { width: 48px; height: 48px; stroke: var(--white); flex-shrink: 0; }
.stat-value {
    font-size: 31px; font-weight: 700; line-height: 1.1; letter-spacing: -0.025em;
}
.stat-value .stat-unit { font-size: 20px; font-weight: 500; }
.stat-label { font-size: 14px; line-height: 1.32; opacity: .95; margin-top: 2px; }

/* ============================================================
   TESTIMONIOS — en reserva
   La seccion se reemplazo por la cinta de clientes; estos estilos
   quedan disponibles por si vuelve a usarse.
   ============================================================ */

.testimonials { background: var(--canvas); }
.testimonials-track {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}

.testimonial {
    background: var(--white); border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card); padding: 30px 28px 28px;
    box-shadow: var(--shadow-card);
}
.testimonial-body { display: flex; gap: 14px; }
.quote-mark {
    font-family: var(--font-display); font-size: 56px; line-height: .78;
    color: var(--salmon-light); flex-shrink: 0;
}
.testimonial-body p { font-size: 15px; line-height: 1.6; color: var(--charcoal); }

.author { display: flex; align-items: center; gap: 15px; margin-top: 26px; }
.author-avatar {
    width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
    background: var(--blush); border: 1px solid var(--salmon-light);
    display: grid; place-items: center;
    font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--terracotta);
}
.author-name { font-size: 15.5px; font-weight: 700; color: var(--terracotta); }
.author-role { font-size: 14px; color: var(--gray); line-height: 1.35; }

.carousel-dots { display: none; justify-content: center; gap: 9px; margin-top: 30px; }
.carousel-dots button {
    width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
    background: var(--salmon-light); cursor: pointer; transition: background-color .25s ease;
}
.carousel-dots button[aria-selected="true"] { background: var(--terracotta); }

/* Aviso del campo de archivo cuando se excede el tamaño */
.file-name.is-error { color: var(--terracotta); font-weight: 600; }

/* Campo trampa contra robots: fuera de la vista y del foco */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Respuesta del formulario de hojas de vida */
.form-msg {
    margin-top: 18px; padding: 14px 18px; border-radius: 12px;
    font-size: 14.5px; line-height: 1.5;
}
.form-msg.is-ok {
    background: var(--blush-50); color: var(--terracotta-dark);
    border: 1px solid var(--salmon-light);
}
.form-msg.is-error {
    background: #FDF0EC; color: var(--terracotta-dark);
    border: 1px solid var(--terracotta-soft); font-weight: 500;
}
.btn-submit[disabled] { opacity: .65; cursor: progress; }

/* ============================================================
   CONÓCENOS
   Los bloques "quiénes somos", "valores" y "frase" se retiraron de
   la página; sus estilos quedan aquí por si vuelven a usarse.
   ============================================================ */

/* La portada no lleva tarjetas: el texto ocupa algo más de ancho */
.conocenos-hero .hero-inner { grid-template-columns: minmax(0, 560px); }
.conocenos-hero .hero-copy h1 { font-size: 48px; line-height: 1.12; }
.conocenos-hero .hero-copy h1 em { display: block; }
.conocenos-hero .hero-copy > p { max-width: 490px; }

/* Etiqueta corta sobre los titulares de sección */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--terracotta); margin-bottom: 14px;
}
.eyebrow::before {
    content: ''; width: 26px; height: 2px; background: var(--terracotta); border-radius: 2px;
}
.section-title .eyebrow::before { display: none; }

/* --- Quiénes somos --- */
.quienes { background: var(--canvas); }
.quienes-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 56px; align-items: center;
}
.quienes-copy h2 { font-size: 34px; line-height: 1.2; }
.quienes-copy h2 em { font-style: normal; color: var(--terracotta); }
.quienes-copy p { margin: 18px 0 26px; font-size: 16.5px; line-height: 1.7; color: var(--charcoal); }

.valores {
    display: grid; gap: 22px;
    background: var(--paper); border: 1px solid var(--hairline-soft);
    border-radius: var(--r-band); padding: 34px 32px;
}
.valor { display: flex; gap: 18px; align-items: flex-start; }
.valor-icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
    background: var(--blush-50); display: grid; place-items: center;
}
.valor-icon svg { width: 26px; height: 26px; stroke: var(--terracotta); }
.valor h3 { font-family: var(--font-ui); font-size: 16px; font-weight: 700; }
.valor p { margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: var(--gray); }

/* --- Equipo: filas alternadas (foto / texto, texto / foto) --- */
.team { background: var(--white); }
.team .section-title { margin-bottom: 44px; }

.team-member {
    display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 52px; align-items: center; margin-bottom: 52px;
}
.team-member:last-of-type { margin-bottom: 0; }

/* En las filas pares se invierten las columnas: de ahí el zigzag.
   La retícula también se invierte, para que la foto conserve su ancho
   y no herede el de la columna del texto. */
.team-member:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.team-member:nth-of-type(even) .team-photo { grid-column: 2; grid-row: 1; }
.team-member:nth-of-type(even) .team-body  { grid-column: 1; grid-row: 1; }

.team-photo {
    position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-band);
    overflow: hidden; background: var(--blush-50);
}
/* position + z-index: sin esto, el degradado de respaldo (que sí está
   posicionado) se pintaría por encima de la fotografía. */
.team-photo img {
    position: relative; z-index: 1;
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.team-photo img.is-missing { display: none; }
.team-photo .media-fallback { position: absolute; inset: 0; z-index: 0; }
.team-photo .media-fallback svg { width: 96px; height: 96px; }

.team-body h3 { font-size: 30px; line-height: 1.15; }
.team-role {
    margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--terracotta);
}
.team-body > p:last-child {
    margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--charcoal);
    max-width: 560px; padding-top: 18px; border-top: 1px solid var(--hairline);
}

.team-extra {
    margin-top: 48px; padding: 24px 28px;
    background: var(--paper); border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card);
    font-size: 15.5px; line-height: 1.6; color: var(--gray); text-align: center;
}

/* --- Frase --- */
.frase { padding-top: 16px; }
.frase-band {
    display: flex; align-items: center; gap: 34px;
    background: linear-gradient(100deg, var(--terracotta) 0%, #A34B33 100%);
    border-radius: var(--r-band); padding: 40px 46px; color: var(--white);
}
.frase-icon {
    flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.45); display: grid; place-items: center;
}
.frase-icon svg { width: 42px; height: 42px; stroke: var(--white); }
.frase blockquote {
    font-family: var(--font-display); font-size: 28px; font-weight: 600;
    line-height: 1.35; letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
    .conocenos-hero .hero-copy h1 { font-size: 40px; }
    .quienes-grid { grid-template-columns: 1fr; gap: 36px; }
    .team-member { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 36px; }
    .team-member:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
}

@media (max-width: 760px) {
    /* Apiladas: la foto siempre arriba, en las dos filas */
    .team-member { grid-template-columns: 1fr; gap: 22px; margin-bottom: 44px; }
    .team-member:nth-of-type(even) .team-photo,
    .team-member:nth-of-type(even) .team-body { grid-column: 1; grid-row: auto; }
    .team-photo { aspect-ratio: 4 / 3; max-width: 420px; margin: 0 auto; width: 100%; }
    .team-body { text-align: center; }
    .team-body > p:last-child { margin-inline: auto; }

    .frase-band { flex-direction: column; text-align: center; gap: 22px; padding: 32px 26px; }
    .frase blockquote { font-size: 22px; }
    .valores { padding: 26px 22px; }
}

@media (max-width: 680px) {
    .conocenos-hero .hero-copy h1 { font-size: 32px; }
    .quienes-copy h2 { font-size: 26px; }
    .team-body h3 { font-size: 24px; }
}

/* ============================================================
   AUTORIZACIÓN DE DATOS Y PÁGINA LEGAL
   ============================================================ */

/* Casilla de autorización del formulario */
.form-consent {
    display: flex; align-items: flex-start; gap: 12px;
    margin: 6px 0 22px; padding: 16px 18px;
    background: var(--blush-50); border: 1px solid var(--salmon-light);
    border-radius: 12px;
}
.form-consent input[type="checkbox"] {
    flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
    accent-color: var(--terracotta); cursor: pointer;
}
.form-consent label {
    font-size: 13.5px; line-height: 1.55; color: var(--charcoal); cursor: pointer;
}
.form-consent a { color: var(--terracotta); font-weight: 600; }
.form-consent a:hover { text-decoration: underline; }
.form-consent input:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* Enlace legal del pie */
.footer-legal {
    margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.55);
    text-decoration: underline; text-underline-offset: 3px;
    transition: color .25s ease;
}
.footer-legal:hover { color: var(--salmon); }

/* Página de la política */
.legal { background: var(--white); padding-top: 56px; }
.legal-body { max-width: 780px; }
.legal-body h2 {
    font-size: 24px; margin: 44px 0 14px;
    padding-bottom: 10px; border-bottom: 1px solid var(--hairline);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
    font-family: var(--font-ui); font-size: 16.5px; font-weight: 700;
    margin: 26px 0 10px; color: var(--terracotta-dark);
}
.legal-body p { margin-bottom: 14px; line-height: 1.7; color: var(--charcoal); }
.legal-body ul, .legal-body ol { margin: 0 0 18px 22px; }
.legal-body li { margin-bottom: 9px; line-height: 1.65; color: var(--charcoal); }
.legal-body a { color: var(--terracotta); }
.legal-datos { list-style: none; margin-left: 0; }
.legal-datos li {
    padding: 9px 0; border-bottom: 1px solid var(--hairline-soft);
}
.legal-fecha { margin-top: 36px; font-size: 14px; color: var(--gray); }

/* Marcador visible de los datos que faltan por completar */
.pendiente {
    background: #FFF3CD; color: #7A5A00; font-weight: 600;
    padding: 2px 8px; border-radius: 5px; border: 1px dashed #D9B441;
}

.legal-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

@media (max-width: 680px) {
    .legal-body h2 { font-size: 20px; }
    .legal-cta .btn { width: 100%; }
}

/* ============================================================
   CLIENTES — cinta infinita de logos
   ============================================================ */

.clients { background: var(--white); padding-top: 34px; }

.marquee {
    --logo-w: 200px;
    --logo-h: 116px;
    --logo-gap: 44px;
    position: relative; overflow: hidden; padding: 6px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.marquee-track {
    display: flex; width: max-content;
    animation: hrp-marquee 51s linear infinite;
}
/* Se detiene con el puntero encima o al tabular hasta un logo */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.marquee-group { display: flex; align-items: center; list-style: none; }

.marquee-group li {
    flex: 0 0 auto;
    width: var(--logo-w); height: var(--logo-h); margin-right: var(--logo-gap);
    display: flex; align-items: center; justify-content: center;
}
/* width/height al 100% del hueco + contain: el logo se ajusta completo,
   sin recortes ni deformacion, sea cual sea su proporcion. */
.marquee-group img {
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    opacity: .8;
    transition: opacity .3s ease, transform .3s ease;
}
.marquee-group li:hover img { opacity: 1; transform: scale(1.04); }

@keyframes hrp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   CTA FINAL
   ============================================================ */

.cta { padding-top: 14px; }
.cta-band {
    background: linear-gradient(96deg, #FCEBE4 0%, #F8D8CB 52%, #FBE7DF 100%);
    border-radius: var(--r-band); padding: 42px 46px;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px;
}
.cta-icon {
    width: 88px; height: 88px; border-radius: 50%;
    border: 1.5px solid var(--terracotta-soft); display: grid; place-items: center; flex-shrink: 0;
}
.cta-icon svg { width: 44px; height: 44px; stroke: var(--terracotta); }
.cta-band h2 { font-size: 29px; line-height: 1.32; }
.cta-band h2 strong { font-weight: 700; }

.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.whatsapp-link {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 14.5px; color: var(--charcoal); text-decoration: none;
    transition: color .25s ease;
}
.whatsapp-link:hover { color: var(--terracotta); }
.whatsapp-link svg { width: 19px; height: 19px; fill: var(--terracotta); }

/* ============================================================
   FOOTER — solo marca, centrado
   ============================================================ */

.site-footer {
    background: var(--footer-bg); color: rgba(255,255,255,.7);
    padding: 58px 0; text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.site-footer img {
    width: 104px; height: 104px; border-radius: 50%;
    background: var(--white); padding: 5px;
}
.footer-name {
    font-family: var(--font-display); font-size: 22px; font-weight: 600;
    color: var(--white); letter-spacing: -0.01em;
}
.footer-slogan { font-size: 14.5px; letter-spacing: .05em; margin-top: -10px; }

.footer-follow {
    margin-top: 10px; font-size: 12px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.45);
}

.social { display: flex; gap: 12px; list-style: none; }
.social a {
    width: 42px; height: 42px; border-radius: 11px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.09);
    color: rgba(255,255,255,.88);
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.social a:hover { background: var(--terracotta); color: var(--white); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; fill: currentColor; }

/* ============================================================
   PÁGINAS SECUNDARIAS
   ============================================================ */

.page-hero {
    position: relative; overflow: hidden; text-align: center;
    padding: calc(var(--header-h) + 90px) 0 96px;
    background: linear-gradient(130deg, var(--white) 0%, var(--paper) 55%, var(--blush-50) 100%);
}
.page-hero .hero-arc { top: -150px; right: -130px; }
.page-hero .container { position: relative; z-index: 2; }

.page-badge {
    width: 104px; height: 104px; border-radius: 50%;
    background: var(--blush-50); border: 1px solid var(--blush);
    display: grid; place-items: center; margin: 0 auto 30px;
}
.page-badge svg { width: 48px; height: 48px; stroke: var(--terracotta); }

.page-hero h1 { font-size: 50px; }
.page-hero h1 em { font-style: normal; color: var(--terracotta); }
.page-hero > .container > p {
    max-width: 620px; margin: 22px auto 0; font-size: 17.5px; color: var(--gray); line-height: 1.6;
}

.page-tag {
    display: inline-block; margin-bottom: 22px;
    font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--terracotta); background: var(--blush); padding: 7px 16px; border-radius: var(--r-pill);
}
.page-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* La página legal no lleva encabezado fijo: no hay que reservarle espacio */
.legal-hero { padding-top: 76px; }
.legal-hero .hero-arc { top: -170px; }
@media (max-width: 680px) { .legal-hero { padding-top: 52px; } }


/* ============================================================
   CONTACTO
   ============================================================ */

.contact { background: var(--canvas); padding-top: 24px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.contact-card {
    background: var(--paper); border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card); padding: 30px 24px 28px;
    text-align: center; text-decoration: none; color: inherit;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.contact-card:not(.is-static):hover {
    transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--salmon-light);
}
.contact-card svg { width: 42px; height: 42px; stroke: var(--terracotta); margin: 0 auto 18px; }
.contact-card h3 { font-size: 19px; }
.contact-card p { margin-top: 10px; font-size: 15px; color: var(--gray); line-height: 1.5; }

@media (max-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .contact-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ============================================================
   PÁGINA PERSONAS
   ============================================================ */

.personas-hero .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.personas-hero .metric-card { width: 100%; }
.personas-hero .metric-card:nth-child(2),
.personas-hero .metric-card:nth-child(3) { width: 100%; margin-left: 0; }
.personas-hero .metric-body { margin-top: 0; }

.metric-icon-badge {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: var(--blush-50); display: grid; place-items: center;
}
.metric-icon-badge svg { width: 22px; height: 22px; stroke: var(--terracotta); }

.personas-hero .metric-card h3 { color: var(--ink); font-weight: 600; font-size: 15px; }

.hero-note, .cv-note, .p-process-note {
    display: block; text-align: right;
    font-family: var(--font-display); font-style: italic;
    font-size: 17px; color: var(--terracotta-soft);
    transform: rotate(-2deg);
    margin-top: 34px; padding-right: var(--gutter);
}

/* --- ¿Qué te ofrecemos? --- */
.p-services { background: var(--white); }
.p-services-grid {
    display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 48px; align-items: start;
}
.p-services-intro h2 { font-size: 38px; line-height: 1.15; }
.p-services-intro h2 em { font-style: normal; color: var(--terracotta); }
.p-services-intro p { margin-top: 20px; font-size: 16.5px; color: var(--gray); line-height: 1.6; }

.p-services-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.p-service {
    background: var(--paper); border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card); padding: 28px 24px 26px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.p-service:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--salmon-light); }

.p-service-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--blush-50); border: 1px solid var(--blush);
    display: grid; place-items: center; margin-bottom: 18px;
}
.p-service-icon svg { width: 26px; height: 26px; stroke: var(--terracotta); }

.p-service h3 { font-family: var(--font-ui); font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.p-service p { margin-top: 10px; font-size: 14.5px; color: var(--gray); line-height: 1.5; }

/* --- Banco de hojas de vida --- */
.cv-section { background: var(--canvas); }
.cv-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 56px; align-items: start;
}
.cv-left h2 { font-size: 38px; line-height: 1.15; }
.cv-left > p { margin-top: 18px; font-size: 16.5px; color: var(--gray); line-height: 1.6; }

.cv-benefits { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.cv-benefits li {
    display: flex; align-items: center; gap: 14px;
    font-size: 15.5px; font-weight: 500; color: var(--ink);
}
.cv-benefit-icon {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: var(--blush-50); border: 1px solid var(--blush);
    display: grid; place-items: center;
}
.cv-benefit-icon svg { width: 20px; height: 20px; stroke: var(--terracotta); }

.cv-form-card {
    background: var(--white); border: 1px solid var(--hairline);
    border-radius: var(--r-band); padding: 36px 34px 32px;
    box-shadow: var(--shadow-float);
}
.cv-form-card h3 { font-size: 24px; margin-bottom: 26px; }

.cv-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--ink);
}
.form-group label svg { width: 17px; height: 17px; stroke: var(--terracotta); flex-shrink: 0; }
.required { color: var(--terracotta); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    font-family: var(--font-ui); font-size: 15px; color: var(--ink);
    padding: 13px 16px; border: 1.5px solid var(--hairline);
    border-radius: 12px; background: var(--canvas);
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(181,86,61,.14);
}
.form-group input::placeholder { color: #A0A4AB; }

.phone-input { display: flex; gap: 10px; }
.phone-input select { width: auto; flex-shrink: 0; min-width: 92px; }

.file-drop {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 30px 20px; border: 2px dashed var(--salmon-light);
    border-radius: 14px; background: var(--blush-50);
    cursor: pointer; text-align: center;
    transition: border-color .2s ease, background-color .2s ease;
}
.file-drop:hover { border-color: var(--terracotta-soft); background: var(--blush); }
.file-drop svg { width: 32px; height: 32px; stroke: var(--terracotta); }
.file-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-drop-text { font-size: 14.5px; font-weight: 500; color: var(--charcoal); }
.file-drop-formats { font-size: 12.5px; color: var(--gray); }
.file-hint { font-size: 12.5px; color: var(--gray); }
.file-name { font-size: 13.5px; font-weight: 600; color: var(--terracotta); }

.btn-submit { width: 100%; margin-top: 4px; }

.form-security {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--gray); line-height: 1.45;
}
.form-security svg { width: 17px; height: 17px; stroke: var(--gray); flex-shrink: 0; margin-top: 1px; }

/* --- ¿Cómo funciona? (personas) --- */
.p-process { background: var(--white); padding-top: 30px; }

/* ============================================================
   PÁGINA EMPRESAS
   ============================================================ */

.empresas-hero .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.empresas-hero .metric-card,
.empresas-hero .metric-card:nth-child(2),
.empresas-hero .metric-card:nth-child(3) { width: 100%; margin-left: 0; }
.empresas-hero .metric-body { margin-top: 0; }
.empresas-hero .metric-card h3 { color: var(--ink); font-weight: 600; font-size: 15px; }

/* --- Lo que hacemos --- */
.e-services { background: var(--white); }
.section-sub { margin-top: 14px; font-size: 16.5px; color: var(--gray); line-height: 1.55; }

.e-services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.e-service {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--paper); border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card); padding: 28px 24px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.e-service:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--salmon-light); }

.e-service-icon {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
    background: var(--blush-50); border: 1px solid var(--blush);
    display: grid; place-items: center;
}
.e-service-icon svg { width: 26px; height: 26px; stroke: var(--terracotta); }

.e-service h3 { font-family: var(--font-ui); font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.e-service p { margin-top: 9px; font-size: 14.5px; color: var(--gray); line-height: 1.55; }

/* --- Cómo trabajamos --- */
.e-process { background: var(--canvas); }
.e-process-grid {
    display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 56px; align-items: center;
}

.e-process-media {
    position: relative; border-radius: var(--r-band); overflow: hidden;
    aspect-ratio: 4 / 5; background: var(--blush-50);
}
.e-process-media img { width: 100%; height: 100%; object-fit: cover; }
.e-process-media img.is-missing { display: none; }

.e-process-right h2 { font-size: 38px; line-height: 1.15; }
.e-process-right h2 em { font-style: normal; color: var(--terracotta); }

.e-process-copy { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.e-process-copy p { font-size: 16.5px; color: var(--charcoal); line-height: 1.6; }
.e-process-copy strong { color: var(--terracotta); font-weight: 600; }

.e-steps { margin-top: 34px; display: flex; flex-direction: column; gap: 22px; }

.e-step { display: flex; gap: 18px; align-items: flex-start; }
.e-step-num {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--terracotta); color: var(--white);
    font-size: 15px; font-weight: 700; display: grid; place-items: center;
}
.e-step h3 { font-family: var(--font-ui); font-size: 16.5px; font-weight: 700; }
.e-step p { margin-top: 5px; font-size: 14.5px; color: var(--gray); line-height: 1.5; }

/* --- Lo que hemos logrado --- */
.e-achievements { background: var(--white); }
.e-achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.e-achievement {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--paper); border: 1px solid var(--hairline-soft);
    border-radius: var(--r-card); padding: 26px 22px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.e-achievement:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--salmon-light); }

.e-achievement-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    background: var(--blush-50); border: 1px solid var(--blush);
    display: grid; place-items: center;
}
.e-achievement-icon svg { width: 23px; height: 23px; stroke: var(--terracotta); }

.e-achievement h3 { font-family: var(--font-ui); font-size: 15px; font-weight: 700; line-height: 1.35; }
.e-ach-num { color: var(--terracotta); }
.e-achievement p { margin-top: 8px; font-size: 13.5px; color: var(--gray); line-height: 1.5; }

/* --- Testimonio + nota lateral --- */
.e-proof { background: var(--canvas); padding-top: 20px; }
.e-proof-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px; align-items: stretch;
}

.e-testimonial {
    background: var(--white); border: 1px solid var(--hairline-soft);
    border-radius: var(--r-band); padding: 34px 32px;
    box-shadow: var(--shadow-card);
    display: flex; flex-direction: column; justify-content: space-between;
}

.e-testimonial-top { display: flex; gap: 16px; align-items: flex-start; }

.e-testimonial-avatar {
    position: relative; width: 74px; height: 74px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    background: var(--blush); border: 2px solid var(--salmon-light);
}
.e-testimonial-avatar .media-fallback { position: absolute; inset: 0; z-index: 0; background: var(--blush); display: grid; place-items: center; }
.e-testimonial-avatar .media-fallback svg { width: 34px; height: 34px; stroke: var(--terracotta); opacity: .5; }
.e-testimonial-avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.e-testimonial-avatar img.is-missing { display: none; }

.e-quote-mark {
    font-family: var(--font-display); font-size: 54px; line-height: .7;
    color: var(--salmon-light); flex-shrink: 0; margin-top: 6px;
}

.e-testimonial-top p { font-size: 15.5px; line-height: 1.6; color: var(--charcoal); }

.e-testimonial-author { margin-top: 24px; padding-left: 90px; }
.e-testimonial-author .author-name { font-size: 15.5px; font-weight: 700; color: var(--terracotta); }
.e-testimonial-author .author-role { font-size: 14px; color: var(--gray); line-height: 1.4; margin-top: 3px; }

.e-side-card {
    background: var(--white); border: 1px solid var(--hairline-soft);
    border-radius: var(--r-band); padding: 34px 32px;
    box-shadow: var(--shadow-card);
    display: flex; gap: 20px; align-items: flex-start;
}

.e-side-icon {
    width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
    background: var(--blush-50); border: 1.5px solid var(--salmon-light);
    display: grid; place-items: center;
}
.e-side-icon svg { width: 30px; height: 30px; stroke: var(--terracotta); }

.e-side-body h3 { font-family: var(--font-ui); font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.e-side-body p { margin-top: 12px; font-size: 14.5px; color: var(--gray); line-height: 1.55; }

.e-side-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 18px; font-size: 14.5px; font-weight: 600;
    color: var(--terracotta); text-decoration: none;
    transition: gap .25s ease;
}
.e-side-link:hover { gap: 12px; }
.e-side-link svg { width: 16px; height: 16px; stroke: currentColor; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1180px) {
    .hero-copy h1 { font-size: 52px; }
    .metric-card { width: 290px; padding: 15px 18px 17px; }
    .metric-card:nth-child(3) { width: 306px; }
    .nav-link { padding: 10px 11px; font-size: 14.5px; }
    .brand-tagline { display: none; }
}

/* Con cuatro pestañas el menú completo cabe hasta tablet */
@media (max-width: 860px) {
    .main-nav { display: none; }
    .hamburger { display: flex; }
    .header-cta { display: none; }
}

@media (max-width: 1024px) {
    .hero { padding: calc(var(--header-h) + 44px) 0 56px; display: flex; flex-direction: column; }
    .hero-inner { order: 1; }
    .hero-media {
        order: 2; position: relative; width: calc(100% - var(--gutter) * 2);
        margin: 40px auto 0; height: 280px;
        border-radius: var(--r-card); overflow: hidden;
    }
    .hero-media::after { background: linear-gradient(to top, rgba(250,247,245,.35), transparent 55%); }
    .media-fallback svg { width: 130px; height: 130px; }
    .hero-inner { grid-template-columns: 1fr; gap: 0; }
    .hero-copy { text-align: center; }
    .hero-copy > p { margin-inline: auto; }
    .hero-actions, .hero-check { justify-content: center; }
    .hero-cards { margin-top: 26px; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; }
    .metric-card, .metric-card:nth-child(2), .metric-card:nth-child(3) { width: 300px; margin-left: 0; }
    .hero-arc { width: 300px; height: 300px; border-width: 40px; top: -150px; right: -110px; }

    .problems-grid { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
    .problem:nth-child(3n) { border-right: 0; }

    .solutions-grid { grid-template-columns: repeat(3, 1fr); }

    .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
    .process-steps::before { display: none; }

    .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
    .stat:nth-child(2n) { border-right: 0; }

    .cta-band { grid-template-columns: auto 1fr; row-gap: 28px; padding: 36px 32px; }
    .cta-actions { grid-column: 1 / -1; }

    .personas-hero .hero-inner { grid-template-columns: 1fr; }
    .personas-hero .hero-cards { order: 2; }

    .p-services-grid { grid-template-columns: 1fr; gap: 36px; }
    .p-services-intro { text-align: center; }
    .p-services-intro h2 { font-size: 32px; }

    .cv-grid { grid-template-columns: 1fr; gap: 40px; }
    .cv-left { text-align: center; }
    .cv-left h2 { font-size: 32px; }
    .cv-benefits { align-items: flex-start; max-width: 480px; margin-inline: auto; margin-top: 30px; text-align: left; }

    .empresas-hero .hero-inner { grid-template-columns: 1fr; }
    .empresas-hero .hero-cards { order: 2; }

    .e-services-grid { grid-template-columns: repeat(2, 1fr); }

    .e-process-grid { grid-template-columns: 1fr; gap: 40px; }
    .e-process-media { aspect-ratio: 16 / 9; max-width: 560px; margin: 0 auto; }
    .e-process-right { text-align: center; }
    .e-process-copy { text-align: left; max-width: 640px; margin-inline: auto; }
    .e-steps { max-width: 560px; margin-inline: auto; }

    .e-achievements-grid { grid-template-columns: repeat(2, 1fr); }

    .e-proof-grid { grid-template-columns: 1fr; }

}

@media (max-width: 860px) {
    .testimonials-track {
        display: flex; grid-template-columns: none;
        overflow-x: auto; scroll-snap-type: x mandatory;
        gap: 16px; padding-bottom: 6px;
        scrollbar-width: none; -ms-overflow-style: none;
    }
    .testimonials-track::-webkit-scrollbar { display: none; }
    .testimonial { flex: 0 0 100%; scroll-snap-align: center; }
    .carousel-dots { display: flex; }
}

@media (max-width: 680px) {
    :root { --header-h: 72px; --gutter: 18px; }

    section { padding: 40px 0; }
    .section-title { margin-bottom: 28px; }
    .section-title h2 { font-size: 28px; }

    .brand img { width: 50px; height: 50px; }

    .hero-copy h1 { font-size: 38px; }
    .hero-copy > p { font-size: 16px; margin: 20px auto 26px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .hero-media { height: 220px; }
    .metric-card, .metric-card:nth-child(2), .metric-card:nth-child(3) { width: 100%; }

    .problems-grid { grid-template-columns: repeat(2, 1fr); row-gap: 38px; }
    .problem { border-right: 0; padding: 0 8px; }
    .icon-circle { width: 64px; height: 64px; }
    .icon-circle svg { width: 31px; height: 31px; }

    .marquee { --logo-w: 150px; --logo-h: 88px; --logo-gap: 30px; }

    .solutions-grid { grid-template-columns: 1fr; gap: 14px; max-width: 420px; margin: 0 auto; }
    .process-steps { grid-template-columns: 1fr; row-gap: 38px; max-width: 420px; margin: 0 auto; }

    .stats-band { grid-template-columns: 1fr; row-gap: 26px; padding: 32px 26px; }
    .stat { border-right: 0; padding: 0; }
    .stat:not(:last-child) { padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.34); }

    .cta-band { grid-template-columns: 1fr; text-align: center; padding: 34px 24px; }
    .cta-icon { margin: 0 auto; }
    .cta-band h2 { font-size: 24px; }
    .cta-actions { align-items: center; }
    .cta-actions .btn { width: 100%; }

    .site-footer { padding: 46px 0; }
    .site-footer img { width: 88px; height: 88px; }
    .footer-name { font-size: 19px; }
    .social a { width: 40px; height: 40px; }

    .page-hero { padding: calc(var(--header-h) + 60px) 0 68px; }
    .hero-arc { width: 230px; height: 230px; border-width: 32px; top: -120px; right: -80px; }
    .page-hero h1 { font-size: 34px; }
    .page-hero > .container > p { font-size: 16px; }
    .page-badge { width: 86px; height: 86px; }
    .page-actions .btn { width: 100%; }

    .personas-hero .hero-cards { flex-direction: column; align-items: stretch; }
    .hero-note, .cv-note, .p-process-note { font-size: 15px; text-align: center; padding: 0; }

    .p-services-intro h2 { font-size: 28px; }
    .p-services-cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }

    .cv-left h2 { font-size: 28px; }
    .cv-form-card { padding: 28px 20px 26px; border-radius: var(--r-card); }
    .cv-form-card h3 { font-size: 21px; }
    .phone-input { flex-direction: column; }
    .phone-input select { width: 100%; }

    .empresas-hero .hero-cards { flex-direction: column; align-items: stretch; }

    .e-services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .e-service { flex-direction: column; gap: 14px; }

    .e-process-right h2 { font-size: 28px; }
    .e-process-media { aspect-ratio: 4 / 3; }

    .e-achievements-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .e-achievement { flex-direction: column; gap: 12px; }

    .e-testimonial { padding: 26px 20px; }
    .e-testimonial-top { flex-wrap: wrap; }
    .e-testimonial-author { padding-left: 0; }
    .e-side-card { flex-direction: column; padding: 26px 20px; }
}

/* Portada de Inicio: la fila de tres solo se sostiene con ancho suficiente.
   Por debajo, las tarjetas se apilan para que sigan siendo legibles. */
@media (max-width: 760px) {
    .home-hero .hero-cards { flex-direction: column; margin-top: 32px; }
    .home-hero .metric-card,
    .home-hero .metric-card:nth-child(2),
    .home-hero .metric-card:nth-child(3) { flex: 1 1 auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }

    /* La cinta no se anima: se recorre a mano */
    .marquee { overflow-x: auto; }
    .marquee-track { animation: none !important; }
}

/* ==========================================================================
   Ajustes para celular (28/09/2026)
   ========================================================================== */

/* Botón "Agendar asesoría" del menú móvil: el texto heredaba el color oscuro
   de los enlaces del menú y apenas se leía sobre el terracota. */
.mobile-nav a.btn-primary { color: var(--white); border-bottom: 0; }

/* "Cómo trabajamos" (Empresas): la foto es vertical; se encuadra hacia arriba
   para que el rostro no quede cortado. */
.e-process-media img { object-position: center 18%; }

@media (max-width: 1024px) {
    .e-process-media { aspect-ratio: 4 / 5; max-width: 420px; }
}

@media (max-width: 760px) {
    /* Equipo (Conócenos): las filas pares seguían con dos columnas en celular
       y la foto de la segunda persona desaparecía. */
    .team-member:nth-of-type(even) { grid-template-columns: 1fr; }
    /* Retratos verticales: se muestran casi completos en vez de recortados a 4:3. */
    .team-photo { aspect-ratio: 4 / 5; max-width: 360px; }
}

@media (max-width: 680px) {
    .e-process-media { aspect-ratio: 4 / 5; }
    /* Puntos del carrusel: área táctil más cómoda sin cambiar su tamaño visible. */
    .carousel-dots button { position: relative; }
    .carousel-dots button::after { content: ""; position: absolute; inset: -12px; }
}

/* Fotos de cabecera (Inicio, Personas, Empresas, Conócenos) en tablet y celular:
   - heredaban el "top" de escritorio y se desplazaban hacia abajo, así que el
     borde inferior quedaba cortado por la sección siguiente;
   - la franja fija de 220–280 px recortaba a las personas. Ahora la caja tiene la
     misma proporción de las fotos (2048x1463) y se ven completas. */
@media (max-width: 1024px) {
    .hero-media {
        top: auto; right: auto; bottom: auto;
        height: auto; aspect-ratio: 2048 / 1463; max-width: 720px;
    }
}
