/*
============================================================================
  Valentina Rodriguez Silva - Responsive Landing
============================================================================
*/

:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #fbfcfd;
    --text: #1a1d2b;
    --muted: #636975;
    --line: rgba(24, 28, 40, 0.12);
    --navy: #111318;
    --navy-2: #262a32;
    --gold: #7d1f31;
    --gold-2: #9a3143;
    --gold-soft: rgba(125, 31, 49, 0.1);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.12);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --font-serif: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
    --ease: 220ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 62.5%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.55rem;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(125, 31, 49, 0.08), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(17, 19, 24, 0.06), transparent 24%),
        linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.container {
    width: min(1180px, calc(100% - 3.2rem));
    margin: 0 auto;
}

.page-shell { position: relative; isolation: isolate; }
.page-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), transparent 35%);
    z-index: -1;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(248, 249, 251, 0.92);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.navbar-container {
    min-height: 8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    min-width: 0;
}

.logo-mark {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(145deg, var(--navy), #3b404b);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), var(--shadow-md);
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-text strong,
.footer-brand-line strong {
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 800;
}

.logo-text span,
.footer-brand-line span {
    color: var(--muted);
    font-size: 1.15rem;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 600;
    color: var(--navy-2);
    font-size: 1.45rem;
}

.nav-desktop a:hover,
.nav-mobile-link:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    border-radius: 999px;
    padding: 1.2rem 2rem;
    font-weight: 700;
    transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--gold) 0%, #5f1725 100%);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-secondary,
.btn-ghost {
    background: rgba(255,255,255,0.82);
    border-color: rgba(17, 24, 39, 0.14);
    color: var(--navy);
}

.btn-secondary:hover,
.btn-ghost:hover { background: rgba(255,255,255,0.95); }

.btn-wide { min-width: 24rem; }

.menu-toggle {
    display: none;
    width: 4.6rem;
    height: 4.6rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .45rem;
    border-radius: 50%;
    border: 1px solid rgba(17, 24, 39, 0.1);
    background: rgba(255,255,255,0.82);
}

.menu-toggle span {
    display: block;
    width: 1.8rem;
    height: 2px;
    border-radius: 999px;
    background: var(--navy);
}

.nav-mobile {
    display: none;
    padding: 0 1.6rem 1.8rem;
    flex-direction: column;
    gap: 1rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile-link {
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.hero-section,
.content-section,
.final-cta,
.main-footer { position: relative; }

.hero-section { padding: 5rem 0 4rem; }

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(125,31,49,.10), transparent 22%),
        radial-gradient(circle at 85% 15%, rgba(17,19,24,.10), transparent 25%),
        linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 4rem;
    align-items: center;
}

.hero-copy { padding: 2rem 0; }

.eyebrow,
.section-kicker,
.tab-eyebrow,
.case-tag,
.pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero-copy h1,
.section-heading h2,
.section-copy h2,
.cta-card h2 {
    font-family: var(--font-serif);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 0;
}

.hero-copy h1 { font-size: clamp(4rem, 6.5vw, 6.2rem); max-width: 12ch; }

.hero-lead {
    margin: 2rem 0 0;
    max-width: 62rem;
    font-size: 1.68rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2.6rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 3rem;
}

.stat-card,
.credential-card,
.case-card,
.process-card,
.hero-panel-card,
.tab-panel,
.cta-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-card { padding: 1.6rem; }

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-family: var(--font-serif);
    color: var(--navy);
    line-height: 1;
    margin-bottom: .35rem;
}

.stat-card span {
    color: var(--muted);
    font-size: 1.25rem;
}

.hero-panel {
    display: grid;
    gap: 1.1rem;
    max-width: 25rem;
    justify-self: end;
}

.hero-panel-card { overflow: hidden; }
.portrait-card { padding: .9rem; }
.portrait-card img {
    width: 100%;
    border-radius: calc(var(--radius-lg) - .6rem);
    aspect-ratio: 4 / 5.2;
    object-fit: cover;
    background: linear-gradient(180deg, #e7eaee, #fafcfe);
}

.info-card { padding: 1.6rem 1.8rem; }
.info-card h2 { font-family: var(--font-serif); font-size: 1.95rem; margin: .7rem 0 .9rem; }
.info-card p { margin: 0; color: var(--muted); font-size: 1.45rem; }
.info-card ul { margin: 0; padding-left: 1.8rem; color: var(--muted); }
.info-card li + li { margin-top: .5rem; }

.content-section { padding: 7.8rem 0; }
.content-section.alt { background: rgba(255, 255, 255, 0.75); }

.two-col {
    display: grid;
    grid-template-columns: minmax(22rem, 0.38fr) minmax(0, 1fr);
    gap: clamp(4rem, 7vw, 8.5rem);
    align-items: start;
}

.section-copy h2,
.section-heading h2,
.cta-card h2 {
    font-size: clamp(2.8rem, 3.9vw, 4.4rem);
    line-height: 1.06;
}

.section-copy {
    max-width: 60rem;
    justify-self: start;
}

.section-copy h2 {
    font-size: clamp(2.2rem, 2.8vw, 3rem);
    max-width: 12ch;
}

.about-intro {
    max-width: 28rem;
}

.about-copy {
    max-width: 64rem;
    justify-self: end;
    padding-top: .4rem;
}

.section-copy p {
    color: var(--muted);
    font-size: 1.58rem;
    margin: 1.6rem 0 0;
}

.cards-grid {
    display: grid;
    gap: 1.4rem;
}

.cards-grid > * { height: 100%; }

.about-copy p {
    font-size: 1.7rem;
    line-height: 1.85;
    margin: 0;
}

.about-copy p + p {
    margin-top: 1.8rem;
}

.section-heading {
    display: grid;
    gap: 1rem;
    max-width: 78rem;
    margin-bottom: 3rem;
}

.section-heading h2 { font-size: clamp(2.6rem, 3.5vw, 4rem); }

.practice-tabs { display: grid; gap: 1.5rem; }

.tab-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-button {
    border: 1px solid rgba(17, 24, 39, 0.1);
    background: rgba(255,255,255,0.92);
    color: var(--navy);
    border-radius: 999px;
    padding: .95rem 1.35rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.35rem;
}

.tab-button.active {
    background: linear-gradient(135deg, var(--gold) 0%, #5f1725 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.tab-panels { position: relative; }

.tab-panel {
    display: none;
    grid-template-columns: 1.2fr auto;
    gap: 2rem;
    padding: 2.6rem;
    align-items: stretch;
    min-height: 28rem;
}

.tab-panel.active { display: grid; }
.tab-panel > div { display: flex; flex-direction: column; }
.tab-panel h3 { font-family: var(--font-serif); font-size: 2.2rem; line-height: 1.14; margin: .7rem 0 .9rem; }
.tab-panel ul { margin: 0; padding-left: 1.8rem; color: var(--muted); }
.tab-panel li + li { margin-top: .5rem; }
.tab-panel .btn { align-self: end; margin-top: auto; }

.cards-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid.credentials-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

#casos.content-section {
    padding: 8.6rem 0;
    background:
        radial-gradient(circle at 18% 10%, rgba(125, 31, 49, 0.18), transparent 24%),
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.06), transparent 22%),
        linear-gradient(180deg, #0b1120 0%, #101827 100%);
    color: rgba(255, 255, 255, 0.9);
}

#casos .section-kicker {
    color: #e59aa7;
}

#casos .section-heading {
    max-width: 68rem;
    margin-bottom: 3.4rem;
}

#casos .section-heading h2 {
    color: #f8fafc;
    max-width: 16ch;
}

#casos .cards-grid.three-up {
    gap: 1.8rem;
}

.case-card,
.process-card {
    padding: 2.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#casos .case-card {
    min-height: 31rem;
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(29, 36, 50, 0.96) 0%, rgba(22, 28, 40, 0.96) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

#casos .case-tag {
    color: #f0a1ae !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

#casos .case-card h3 {
    color: #ffffff;
}

#casos .case-card p,
#casos .case-card strong,
#casos .case-card span {
    color: rgba(226, 232, 240, 0.74);
}

#casos .case-card strong {
    margin-top: auto;
}

#casos .case-card span {
    margin-top: .6rem;
}

#casos .cards-grid.three-up > * {
    height: 100%;
}

.case-card h3,
.process-card h3 {
    font-family: var(--font-serif);
    font-size: 1.95rem;
    line-height: 1.15;
    margin: .9rem 0 1rem;
}

.process-card h3 {
    color: var(--gold);
}
.case-card p,
.process-card p { color: var(--muted); margin: 0 0 1.2rem; }
.case-card strong,
.process-card span { display: block; }
.case-card span { color: var(--muted); margin-top: .35rem; }

.process-card span {
    width: 4.6rem;
    height: 4.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--navy);
    background: var(--gold-soft);
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 800;
}

.final-cta { padding: 2rem 0 8rem; }

.cta-card {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    padding: 2.6rem;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
}

.cta-card p { color: var(--muted); max-width: 58rem; }

.cta-form {
    display: grid;
    gap: 1.1rem;
    align-content: end;
}

.cta-form select {
    width: 100%;
    padding: 1.35rem 1.45rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(17,24,39,.12);
    background: rgba(255,255,255,.92);
    color: var(--navy);
}

.main-footer {
    padding: 4.5rem 0 2.6rem;
    background: linear-gradient(180deg, #111214 0%, #1a1c22 100%);
    color: rgba(255,255,255,.9);
}

.footer-simple {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 1.2rem;
    padding-bottom: 1.8rem;
}

.footer-brand-line {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.footer-brand-line .logo-mark {
    width: 4.2rem;
    height: 4.2rem;
    font-size: 1.55rem;
}

.footer-tagline { color: rgba(255,255,255,.72); max-width: 38rem; margin: 0; }
.footer-contact-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem;
    color: rgba(255,255,255,.82);
    margin: 0;
}
.main-footer a { color: rgba(255,255,255,.82); }
.main-footer a:hover { color: var(--gold-2); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: rgba(255,255,255,.56);
    font-size: 1.3rem;
    text-align: center;
}

.whatsapp-float {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: #25d366;
    box-shadow: 0 18px 40px rgba(37, 211, 102, 0.35);
    z-index: 25;
}

.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 9rem;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    border: 1px solid rgba(17,24,39,.1);
    background: rgba(255,255,255,.9);
    color: var(--navy);
    opacity: 0;
    visibility: hidden;
    transition: var(--ease);
    z-index: 25;
}

.back-to-top.visible { opacity: 1; visibility: visible; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.slide-up { transform: translateY(26px); }

.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;
}

@media (max-width: 1100px) {
    .hero-grid,
    .two-col,
    .cta-card,
    .tab-panel,
    .footer-simple { grid-template-columns: 1fr; }

    .cards-grid.credentials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-grid.three-up { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero-panel { max-width: 100%; justify-self: stretch; }
    .tab-panel { min-height: 0; }
    .two-col { grid-template-columns: 1fr; gap: 2.6rem; }
    .about-intro,
    .about-copy { max-width: 100%; justify-self: start; }
}

@media (max-width: 820px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: inline-flex; }
    .tab-list { display: grid; grid-template-columns: 1fr 1fr; }
    .tab-button { width: 100%; }
    .main-header { position: sticky; }
    .navbar-container { min-height: 7.2rem; }
    .logo-text span { display: none; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 2rem, 1180px); }
    .hero-section { padding-top: 4rem; }
    .hero-copy h1 { max-width: 100%; }
    .hero-actions,
    .cta-form { grid-template-columns: 1fr; }
    .tab-list { grid-template-columns: 1fr; }
    .tab-panel { padding: 2rem; }
    .cards-grid.credentials-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .whatsapp-float { right: 1.2rem; bottom: 1.2rem; }
    .back-to-top { right: 1.2rem; bottom: 8rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
