/* ============================================================
   CS Marine Advisors — Base: variables, reset, tipografía, contenedor, botones
   ============================================================ */

:root {
    --navy:        #0E2D40;
    --section-bg-dark: #224D68;
    --navy-mid:    #1B4F6E;
    --navy-light:  #33769B;
    --teal:        #38BBC5;
    --teal-hover:  #52CDD6;
    --teal-dim:    rgba(56,187,197,0.15);
    --white:       #FFFFFF;
    --off-white:   #F2F8FA;
    --gray-100:    #DFF0F3;
    --gray-400:    #7090A0;
    --gray-600:    #5A7A8A;
    --gray-800:    #2D4A56;
    --text:        #0E2D40;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

    --max-w:    1200px;
    --pad-x:    clamp(20px, 5vw, 48px);
    --section:  clamp(72px, 10vw, 112px);
    --radius:   12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    --transition: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-snap: 0.18s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows en capas — profundidad moderna, tintadas hacia navy */
    --shadow-sm: 0 1px 2px rgba(14,45,64,0.04),
                 0 2px 6px rgba(14,45,64,0.05);
    --shadow-md: 0 1px 2px rgba(14,45,64,0.04),
                 0 8px 24px rgba(14,45,64,0.06),
                 0 24px 48px -12px rgba(14,45,64,0.08);
    --shadow-lg: 0 1px 2px rgba(14,45,64,0.04),
                 0 12px 32px rgba(14,45,64,0.08),
                 0 32px 64px -16px rgba(14,45,64,0.12);
    --shadow-teal: 0 8px 32px rgba(56,187,197,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    white-space: nowrap;
    overflow: hidden;
}
/* Arrow que entra al hover */
.btn::after {
    content: '→';
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-6px);
    transition: max-width var(--transition),
                opacity var(--transition),
                transform var(--transition);
    font-size: 1.05em;
    line-height: 1;
}
.btn:hover::after {
    max-width: 20px;
    opacity: 1;
    transform: translateX(0);
    margin-left: 2px;
}
.btn--primary {
    background: var(--teal);
    color: var(--navy);
    border-color: var(--teal);
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
    background: var(--teal-hover);
    border-color: var(--teal-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-teal);
}
.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.35);
}
.btn--ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}
.btn--large  { padding: 17px 44px; font-size: 0.82rem; }
.btn--full   { width: 100%; }

.section { padding: var(--section) 0; }
.section--light { background: var(--off-white); }
.section--dark  { background: var(--section-bg-dark); color: var(--white); }
.section--navy  { background: var(--navy-mid); color: var(--white); }
.section--team  { background: var(--off-white); color: var(--navy); }

.section__header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 72px);
}
.section__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 16px;
    line-height: 1;
}
/* Línea decorativa antes/después del label centrado */
.section__label::before,
.section__label::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--teal);
    opacity: 0.5;
}
/* En enfoque y formulario, el label está alineado a la izquierda → sólo línea después */
.enfoque__text .section__label::before,
.form-intro .section__label::before { display: none; }
.enfoque__text .section__label,
.form-intro .section__label { gap: 12px; }

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: inherit;
}
.section--light .section__title { color: var(--navy); }
