/* =============================================
   SITIO WEB PÚBLICO — Tema Oro Elegante 2026
   ============================================= */

:root {
    --primary: #1a1a2e;
    --primary-dark: #0f0f1a;
    --primary-light: #f5f0e6;
    --secondary: #b8860b;
    --secondary-dark: #996f09;
    --accent: #d4a017;
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --gold-dark: #a07d1c;
    --dark: #0d0d1a;
    --dark-2: #16162b;
    --text: #2d2d3a;
    --text-muted: #6b6b80;
    --border: #e5e0d5;
    --bg-light: #faf8f4;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #c9a84c 0%, #e8d48b 50%, #c9a84c 100%);
    --gradient-dark: linear-gradient(135deg, #a07d1c 0%, #c9a84c 100%);
    --gradient-hero: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 40%, #1f1f3a 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.12);
    --shadow-gold: 0 4px 24px rgba(201,168,76,.25);
    --radius: 16px;
    --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---- NAVBAR ---- */
.pub-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0.7rem 0;
    background: transparent;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.pub-navbar::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(13, 13, 26, 0);
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-bottom: 1px solid transparent;
}
.pub-navbar.scrolled::before {
    background: rgba(13, 13, 26, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 1px 0 rgba(201,168,76,.1), 0 4px 30px rgba(0,0,0,.2);
    border-bottom: 1px solid rgba(201,168,76,.15);
}
.pub-navbar.scrolled { padding: .4rem 0; }
.pub-navbar.scrolled .navbar-brand img { height: 50px !important; }
.pub-navbar .navbar-brand {
    font-weight: 800; font-size: 1.25rem; color: #fff !important;
    letter-spacing: -.02em; transition: all .2s;
}
.pub-navbar .navbar-brand img {
    filter: drop-shadow(0 2px 8px rgba(201,168,76,.3));
    transition: height .3s;
}

@media (max-width: 767.98px) {
    .pub-navbar .navbar-brand img { height: 70px !important; max-width: 220px !important; }
}
.pub-navbar .nav-link {
    font-weight: 500; font-size: .9rem;
    color: rgba(255,255,255,.8) !important;
    padding: .45rem 1rem !important;
    border-radius: 8px; transition: all .25s;
}
.pub-navbar .nav-link:hover {
    color: var(--gold-light) !important;
    background: rgba(201,168,76,.1);
}
.pub-navbar .btn-nav {
    background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
    color: var(--dark) !important;
    border: none !important;
    padding: .5rem 1.4rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all .3s;
    box-shadow: 0 2px 12px rgba(201,168,76,.3);
}
.pub-navbar .btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201,168,76,.45);
    color: var(--dark) !important;
}

@media (max-width: 991.98px) {
    .pub-navbar .navbar-collapse {
        background: rgba(13, 13, 26, 0.95);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        padding: 1rem 1.25rem 1.25rem;
        border-radius: 0 0 var(--radius) var(--radius);
        border-top: 1px solid rgba(201,168,76,.15);
        margin-top: .5rem;
        box-shadow: 0 8px 32px rgba(0,0,0,.4);
    }
    .pub-navbar .btn-nav { display: inline-block; margin-top: .5rem; }
    .pub-navbar .navbar-toggler { color: #fff; }
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    background: var(--dark);
    background-image:
        radial-gradient(ellipse 70% 50% at 65% 35%, rgba(201,168,76,.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 15% 80%, rgba(201,168,76,.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(160,125,28,.06) 0%, transparent 50%);
    display: flex; align-items: center;
    padding: 110px 0 70px;
    position: relative; overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(201,168,76,.1);
    border: 1px solid rgba(201,168,76,.3);
    color: var(--gold-light);
    font-size: .78rem; font-weight: 600;
    padding: .4rem 1rem; border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: .05em; text-transform: uppercase;
}
.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900; color: #fff;
    line-height: 1.08; letter-spacing: -.04em;
    margin-bottom: 1.25rem;
}
.hero-title span {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem; color: #8b8ba0;
    line-height: 1.8; margin-bottom: 2.5rem; max-width: 520px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-hero-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 200%;
    color: var(--dark) !important; border: none;
    padding: .9rem 2.2rem; border-radius: 50px;
    font-weight: 700; font-size: 1rem;
    transition: all .3s;
    box-shadow: 0 4px 24px rgba(201,168,76,.35);
    text-decoration: none;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(201,168,76,.5);
    background-position: right center;
    color: var(--dark) !important;
}
.btn-hero-secondary {
    background: rgba(201,168,76,.08);
    color: var(--gold-light) !important; 
    border: 1px solid rgba(201,168,76,.25);
    padding: .9rem 2.2rem; border-radius: 50px;
    font-weight: 600; font-size: 1rem;
    transition: all .3s;
    backdrop-filter: blur(8px);
    text-decoration: none;
}
.btn-hero-secondary:hover {
    background: rgba(201,168,76,.15);
    color: #fff !important;
    border-color: rgba(201,168,76,.4);
    transform: translateY(-2px);
}
.hero-stats {
    display: flex; gap: 2.5rem; margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201,168,76,.12);
}
.hero-stat-num { font-size: 1.9rem; font-weight: 800; color: var(--gold-light); line-height: 1; }
.hero-stat-label { font-size: .78rem; color: #6b6b80; margin-top: .3rem; text-transform: uppercase; letter-spacing: .03em; }
.hero-visual { position: relative; }
.hero-card-float {
    background: rgba(201,168,76,.06);
    border: 1px solid rgba(201,168,76,.15);
    border-radius: var(--radius);
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    color: #fff;
}
.hero-card-float .amount { font-size: 2.1rem; font-weight: 800; color: var(--gold-light); }
.hero-card-float .label { font-size: .8rem; color: #8b8ba0; }
.floating-badge {
    position: absolute;
    background: var(--gold-dark);
    color: #fff;
    border-radius: 50px;
    padding: .5rem 1.1rem;
    font-size: .8rem; font-weight: 700;
    box-shadow: var(--shadow-gold);
    white-space: nowrap;
}

/* ---- TRUST BAR ---- */
.trust-bar {
    background: var(--dark-2);
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(201,168,76,.08);
    border-top: 1px solid rgba(201,168,76,.06);
}
.trust-item {
    display: flex; align-items: center; gap: .6rem;
    color: #8b8ba0; font-size: .84rem; font-weight: 500;
}
.trust-item i { color: var(--gold); font-size: 1rem; }

/* ---- SECTIONS ---- */
.section-eyebrow {
    font-size: .78rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: .75rem;
}
.section-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800; color: var(--dark);
    letter-spacing: -.03em; line-height: 1.2;
}
.section-subtitle {
    font-size: 1.05rem; color: var(--text-muted);
    line-height: 1.75; max-width: 560px;
    margin: .75rem auto 0;
}

/* ---- SERVICES ---- */
.services-section { padding: 100px 0; background: var(--bg-light); }
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(201,168,76,.12), 0 4px 16px rgba(0,0,0,.06);
    border-color: rgba(201,168,76,.2);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon-wrap {
    width: 58px; height: 58px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.25rem;
    background: var(--primary-light); color: var(--gold-dark);
}
.service-card.green .service-icon-wrap { background: #ecfdf5; color: #059669; }
.service-card.amber .service-icon-wrap { background: #fffbeb; color: var(--gold-dark); }
.service-card.purple .service-icon-wrap { background: #f5f3ff; color: #7c3aed; }
.service-card.rose .service-icon-wrap { background: #fff1f2; color: #e11d48; }
.service-card.cyan .service-icon-wrap { background: #ecfeff; color: #0891b2; }
.service-card h5 { font-size: 1.08rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.service-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.service-tag {
    display: inline-block; font-size: .72rem; font-weight: 600;
    padding: .25rem .7rem; border-radius: 50px; margin-top: 1rem;
}

/* ---- HOW IT WORKS ---- */
.how-section { padding: 100px 0; background: var(--white); }
.step-number {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    color: var(--dark); font-size: 1.1rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(201,168,76,.3);
}
.step-connector {
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,.15));
    flex: 1; min-height: 40px; margin: .5rem auto;
}
.step-card { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-content h5 { font-weight: 700; color: var(--dark); margin-bottom: .35rem; }
.step-content p { font-size: .9rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ---- WHY US ---- */
.why-section {
    padding: 100px 0;
    background: var(--dark);
    position: relative; overflow: hidden;
}
.why-section::before {
    content: '';
    position: absolute; top: -40%; right: -15%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 70%);
    pointer-events: none;
}
.why-section::after {
    content: '';
    position: absolute; bottom: -30%; left: -10%;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,.05) 0%, transparent 70%);
    pointer-events: none;
}
.why-card {
    background: rgba(201,168,76,.03);
    border: 1px solid rgba(201,168,76,.1);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all .3s;
}
.why-card:hover {
    background: rgba(201,168,76,.07);
    border-color: rgba(201,168,76,.25);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(201,168,76,.1);
}
.why-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.why-card h5 { font-weight: 700; color: #fff; margin-bottom: .5rem; }
.why-card p { font-size: .88rem; color: #8b8ba0; margin: 0; line-height: 1.7; }

/* ---- CALCULATOR ---- */
.calc-section { padding: 100px 0; background: var(--bg-light); }
.calc-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
    border: 1px solid rgba(201,168,76,.1);
}
.calc-header {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    padding: 2rem 2.5rem; color: #fff;
    border-bottom: 2px solid var(--gold);
}
.calc-header h3 { font-weight: 800; margin: 0; }
.calc-body { padding: 2.5rem; }
.calc-result-box {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 1.25rem; text-align: center;
    border: 1px solid var(--border);
    transition: all .2s;
}
.calc-result-box:hover { border-color: rgba(201,168,76,.3); }
.calc-result-box .amount { font-size: 1.6rem; font-weight: 800; color: var(--gold-dark); }
.calc-result-box .label { font-size: .78rem; color: var(--text-muted); font-weight: 500; margin-top: .2rem; }
.range-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, var(--border), var(--border));
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(201,168,76,.4);
    border: 2px solid #fff;
}
.range-slider::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    cursor: pointer; border: 2px solid #fff;
}

/* Tabla de amortización */
#tabla_amortizacion_container {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 1.5rem; margin-top: 2rem;
    border: 1px solid var(--border);
}
#tabla_amortizacion_container table { background: var(--white); margin: 0; }
#tabla_amortizacion_container thead th {
    font-weight: 700; font-size: .85rem; text-align: center;
    padding: .75rem .5rem; border: none;
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    color: var(--gold-light);
}
#tabla_amortizacion_container tbody td { text-align: center; padding: .65rem .5rem; vertical-align: middle; }
#tabla_amortizacion_container tbody tr:hover { background: var(--primary-light); }

/* ---- FORM SECTION ---- */
.form-section { padding: 100px 0; background: var(--white); }
.form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,.06);
    overflow: hidden;
    border: 1px solid rgba(201,168,76,.1);
}
.form-card-header {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    padding: 2.5rem; color: #fff;
    border-bottom: 2px solid var(--gold);
}
.form-card-header h2 { font-weight: 800; margin: 0; }
.form-card-body { padding: 2.5rem; }
.form-section-title {
    font-size: .8rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 1rem; padding-bottom: .5rem;
    border-bottom: 2px solid var(--primary-light);
}
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .7rem 1rem; font-size: .9rem;
    transition: all .25s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.btn-submit {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    background-size: 200% 200%;
    border: none; color: var(--dark);
    padding: 1rem 2.5rem; border-radius: 50px;
    font-weight: 700; font-size: 1rem; width: 100%;
    transition: all .3s;
    box-shadow: 0 4px 24px rgba(201,168,76,.3);
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201,168,76,.45);
    background-position: right center;
    color: var(--dark);
}

/* ---- CONTACT ---- */
.contact-section { padding: 100px 0; background: var(--bg-light); }
.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem; text-align: center;
    transition: all .3s;
}
.contact-card:hover {
    box-shadow: 0 12px 36px rgba(201,168,76,.1);
    transform: translateY(-6px);
    border-color: rgba(201,168,76,.2);
}
.contact-icon {
    width: 68px; height: 68px; border-radius: 50%;
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    color: var(--gold-light); font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid rgba(201,168,76,.2);
}
.contact-card h5 { font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.contact-card a { color: var(--gold-dark); text-decoration: none; font-weight: 600; }
.contact-card a:hover { color: var(--secondary-dark); text-decoration: underline; }

/* ---- FOOTER ---- */
.pub-footer {
    background: var(--dark);
    color: #8b8ba0;
    padding: 70px 0 30px;
    border-top: 2px solid rgba(201,168,76,.15);
}
.pub-footer h5 { color: var(--gold-light); font-weight: 700; margin-bottom: 1.25rem; }
.pub-footer a { color: #6b6b80; text-decoration: none; font-size: .9rem; transition: color .2s; }
.pub-footer a:hover { color: var(--gold-light); }
.pub-footer .footer-bottom {
    border-top: 1px solid rgba(201,168,76,.08);
    margin-top: 2.5rem; padding-top: 1.5rem;
    font-size: .82rem; color: #4a4a60;
}
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(201,168,76,.08);
    color: #8b8ba0; transition: all .25s;
    border: 1px solid rgba(201,168,76,.1);
}
.footer-social a:hover {
    background: var(--gold-dark); color: #fff;
    border-color: var(--gold-dark);
    transform: translateY(-2px);
}

/* ---- UTILITIES ---- */
.badge-pill { display: inline-block; padding: .3rem .8rem; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.bg-primary-soft { background: var(--primary-light); color: var(--gold-dark); }
.bg-success-soft { background: #ecfdf5; color: #059669; }
.bg-warning-soft { background: #fffbeb; color: var(--gold-dark); }

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-stats { gap: 1.5rem; }
    .hero-visual { margin-top: 3rem; }
}
@media (max-width: 767.98px) {
    .hero-title { font-size: 2.1rem; }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .services-section, .how-section, .why-section, .calc-section, .form-section, .contact-section { padding: 60px 0; }
    .form-card-body, .form-card-header, .calc-body, .calc-header { padding: 1.5rem; }
}
@media (max-width: 575.98px) {
    .hero-cta { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { text-align: center; }
}
