@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-color: #0B1E36;      /* Navy Blue Profundo */
    --primary-light: #152E4F;     /* Navy Blue Intermedio */
    --primary-dark: #06101E;      /* Navy Blue Muy Oscuro */
    
    --secondary-color: #D4AF37;    /* Champagne / Oro Metálico */
    --secondary-light: #E5C05E;    /* Oro Claro */
    --secondary-dark: #A8861D;     /* Oro Bronce */
    
    --accent-color: #0CBEAB;       /* Verde Azulado / Teal Financiero */
    --accent-light: #16E0CA;       /* Teal Brillante */
    --accent-dark: #089A8A;        /* Teal Oscuro */
    
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;          /* Fondo Slate Muy Claro */
    --bg-card: #FFFFFF;
    
    --text-primary: #1E293B;      /* Slate-800 */
    --text-secondary: #475569;    /* Slate-600 */
    --text-light: #94A3B8;        /* Slate-400 */
    --text-white: #FFFFFF;
    
    --border-color: #E2E8F0;      /* Slate-200 */
    --border-focus: #0CBEAB;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Shadows */
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.08);
    --shadow-hard: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 10px 25px rgba(212, 175, 55, 0.15);
    --shadow-teal: 0 10px 25px rgba(12, 190, 171, 0.2);
    
    /* Transition */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

/* Common Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Section Header Utility */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header .tag {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    background: rgba(12, 190, 171, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--text-white);
    box-shadow: var(--shadow-teal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(12, 190, 171, 0.35);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.btn-gold {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--primary-color);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--text-white);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    background-color: #20BA5A;
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 30, 54, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-normal);
}

.header.scrolled {
    background: var(--primary-dark);
    box-shadow: var(--shadow-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-normal);
}

.header.scrolled .container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: var(--transition-normal);
}

.header.scrolled .logo-img {
    height: 32px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-white);
}

.logo-text span {
    color: var(--secondary-color);
}

.logo-subtext {
    font-size: 0.7rem;
    display: block;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--secondary-color);
}

.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone-quick {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-weight: 600;
}

.phone-quick i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.phone-quick:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-white);
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-normal);
        z-index: 999;
    }
    
    .header.scrolled .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .nav-menu.open {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    background: radial-gradient(circle at 80% 20%, var(--primary-light) 0%, var(--primary-dark) 100%);
    padding: 160px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero_bg.webp');
    background-image: image-set(url('../assets/hero_bg.webp') type('image/webp'), url('../assets/hero_bg.png') type('image/png'));
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: overlay;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(12, 190, 171, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: 10%;
    right: 5%;
    z-index: 2;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 992px) {
    .hero {
        padding: 120px 0 60px 0;
    }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 600px;
}

@media (max-width: 992px) {
    .hero-content p {
        margin: 0 auto 36px auto;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .hero-btns {
        justify-content: center;
    }
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-feature-item .num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.hero-feature-item .lbl {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

@media (max-width: 576px) {
    .hero-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Quick Qualifier Card */
.hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-hard);
}

.hero-card h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-align: center;
}

.hero-card .form-group {
    margin-bottom: 18px;
    position: relative;
}

.hero-card label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-card input, .hero-card select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.hero-card input:focus, .hero-card select:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    box-shadow: 0 0 10px rgba(12, 190, 171, 0.2);
}

.hero-card select option {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.hero-card .btn {
    width: 100%;
    margin-top: 10px;
}

/* ==========================================================================
   BANKS SECTION (WITH OFFICIAL LOGOS)
   ========================================================================== */
.banks-section {
    background: var(--bg-white);
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.banks-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 50px;
    justify-items: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.bank-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 95px;
    width: 100%;
    transition: all 0.3s ease;
}

.bank-logo-item:hover {
    transform: scale(1.08);
}

.bank-img {
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 0.95;
    transition: all 0.3s ease;
    animation: floatAnimation 4s ease-in-out infinite;
}

.bank-logo-item:hover .bank-img {
    opacity: 1;
}

/* Float animation keyframes for professional float effect */
@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Individual animation delays to create wave effect */
.bank-logo-item:nth-child(1) .bank-img { animation-delay: 0s; }
.bank-logo-item:nth-child(2) .bank-img { animation-delay: 0.6s; }
.bank-logo-item:nth-child(3) .bank-img { animation-delay: 1.2s; }
.bank-logo-item:nth-child(4) .bank-img { animation-delay: 1.8s; }
.bank-logo-item:nth-child(5) .bank-img { animation-delay: 2.4s; }
.bank-logo-item:nth-child(6) .bank-img { animation-delay: 3s; }
.bank-logo-item:nth-child(7) .bank-img { animation-delay: 3.6s; }
.bank-logo-item:nth-child(8) .bank-img { animation-delay: 4.2s; }

/* Balanced dimensions on desktop */
.img-bcp {
    height: 34px;
}

.img-bbva {
    height: 40px;
}

.img-scotia {
    height: 90px;
}

.img-bn {
    height: 72px;
}

.img-gnb {
    height: 32px;
}

.img-comercio {
    height: 42px;
}

.img-interbank {
    height: 44px;
}

.img-banbif {
    height: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banks-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 30px;
        max-width: 480px;
    }
    
    .bank-logo-item {
        height: 70px;
    }
    
    .img-bcp {
        height: 26px;
    }

    .img-bbva {
        height: 28px;
    }

    .img-scotia {
        height: 64px;
    }

    .img-bn {
        height: 52px;
    }

    .img-gnb {
        height: 24px;
    }

    .img-comercio {
        height: 32px;
    }

    .img-interbank {
        height: 32px;
    }

    .img-banbif {
        height: 30px;
    }
}

/* ==========================================================================
   ABOUT SECTION (WHAT IS IT)
   ========================================================================== */
.about {
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.about-img {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: none;
    background: transparent;
}

.about-img::after {
    display: none;
}

.about-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.about-img-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 24px;
    color: var(--text-white);
    z-index: 2;
}

.about-img-overlay h4 {
    color: var(--secondary-color);
    margin-bottom: 6px;
    font-size: 1.25rem;
}

.about-img-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.about-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* Benefits Section below About Intro */
.about-benefits-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.about-benefits-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.about-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(12, 190, 171, 0.2);
}

.benefit-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--text-white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Figure 1 colors */
.benefit-icon-wrapper.red-gift {
    background: linear-gradient(135deg, #ff4b4b, #ff2e2e);
    box-shadow: 0 8px 20px rgba(255, 75, 75, 0.3);
}

.benefit-icon-wrapper.orange-money {
    background: linear-gradient(135deg, #ff7e41, #ff5722);
    box-shadow: 0 8px 20px rgba(255, 126, 65, 0.3);
}

.benefit-icon-wrapper.yellow-calendar {
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    box-shadow: 0 8px 20px rgba(255, 179, 0, 0.3);
}

.benefit-icon-wrapper.blue-planilla {
    background: linear-gradient(135deg, #0288d1, #01579b);
    box-shadow: 0 8px 20px rgba(2, 136, 209, 0.3);
}

.benefit-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.benefit-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .about-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .about-benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-benefits-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   CONVENIOS SECTION (INTERACTIVE TABS & GRAPHICS)
   ========================================================================== */
.convenios-section {
    background-color: var(--bg-light);
}

.tabs-wrapper {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 30px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
}

.tabs-nav-container {
    position: relative;
    width: 100%;
}

.scroll-hint-right {
    display: none;
}

.tabs-header {
    display: flex;
    flex-direction: column;
    border-right: 2px solid var(--border-color);
    border-bottom: none;
    padding-right: 20px;
    gap: 8px;
    overflow-x: visible;
    scrollbar-width: none; /* Firefox */
}

.tabs-header::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
}

.tab-btn {
    padding: 15px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border: none;
    border-right: 3px solid transparent;
    white-space: nowrap;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-btn:hover {
    color: var(--accent-color);
    background: rgba(12, 190, 171, 0.05);
}

.tab-btn.active {
    color: var(--accent-color);
    background: rgba(12, 190, 171, 0.08);
    border-right-color: var(--accent-color);
    border-bottom: none;
}

@media (max-width: 992px) {
    .tabs-wrapper {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .tabs-header {
        flex-direction: row;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 10px;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
        overflow-y: hidden;
    }

    .tab-btn {
        border-right: none;
        border-bottom: 3px solid transparent;
        padding: 12px 18px;
        text-align: center;
        display: inline-flex;
        border-radius: 0;
    }

    .tab-btn:hover {
        background: transparent;
    }

    .tab-btn.active {
        background: transparent;
        border-bottom-color: var(--accent-color);
    }

    .scroll-hint-right {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 45px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 75%);
        color: var(--accent-color);
        pointer-events: none;
        z-index: 10;
        font-size: 1.1rem;
        padding-left: 15px;
        box-sizing: border-box;
        animation: pulseArrow 1.2s infinite;
    }
    
    @keyframes pulseArrow {
        0% { transform: translateX(0); opacity: 0.5; }
        50% { transform: translateX(4px); opacity: 1; }
        100% { transform: translateX(0); opacity: 0.5; }
    }
}

.tab-content {
    display: none;
    padding: 40px 10px 10px 10px;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.convenio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .convenio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.convenio-info h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.convenio-info h3 i {
    color: var(--secondary-color);
}

.convenio-info p {
    font-size: 1rem;
    margin-bottom: 24px;
}

.convenio-banks-title {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.convenio-banks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.convenio-bank-tag {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.convenio-requirements h4 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 12px;
}

.req-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.req-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.req-item i {
    color: var(--accent-color);
    margin-top: 4px;
}

.convenio-cta {
    margin-top: 32px;
}

/* Interactive Agreement Card Styles */
.convenio-card-interactive {
    width: 100%;
    max-width: 820px;
    margin: 0 auto 24px auto;
    cursor: pointer;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.convenio-card-interactive::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    border: 2px solid transparent;
    pointer-events: none;
    transition: border-color 0.3s ease;
}

.convenio-card-interactive:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hard);
    border-color: rgba(212, 175, 55, 0.3);
}

.convenio-card-interactive:hover::after {
    border-color: var(--secondary-color);
}

.convenio-image-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 21 / 9; /* Ultra-wide premium banner ratio */
}

@media (max-width: 768px) {
    .convenio-image-wrapper {
        aspect-ratio: 16 / 9; /* Regular aspect ratio on mobile for better visibility */
    }
}

.convenio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.convenio-card-interactive:hover .convenio-img {
    transform: scale(1.025);
}

.convenio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 30, 54, 0.75) 0%, rgba(11, 30, 54, 0.15) 60%, rgba(11, 30, 54, 0) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    transition: background 0.3s ease;
}

.convenio-card-interactive:hover .convenio-card-overlay {
    background: linear-gradient(to top, rgba(11, 30, 54, 0.85) 0%, rgba(11, 30, 54, 0.25) 60%, rgba(11, 30, 54, 0) 100%);
}

.overlay-badge {
    background: rgba(11, 30, 54, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.overlay-badge i {
    color: var(--secondary-color);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.convenio-card-interactive:hover .overlay-badge {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.convenio-card-interactive:hover .overlay-badge i {
    color: var(--primary-color);
}

/* When details are open, style the card badge differently */
.convenio-card-interactive.details-open .overlay-badge {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(11, 30, 54, 0.95);
}

.convenio-card-interactive.details-open .overlay-badge i {
    transform: rotate(180deg);
}

/* Responsive Mobile Layout Overrides - Placed at the end of section to guarantee precedence */
@media (max-width: 768px) {
    .convenio-image-wrapper {
        aspect-ratio: auto !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }
    
    .convenio-image-wrapper picture {
        width: 100% !important;
        display: block !important;
        aspect-ratio: 16 / 9 !important;
    }
    
    .convenio-image-wrapper picture img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .convenio-card-overlay {
        position: static !important;
        background: var(--primary-color) !important;
        padding: 12px 16px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: none !important;
        background-image: none !important; /* Remove gradient background overlay */
    }
    
    .convenio-card-interactive:hover .convenio-card-overlay {
        background: var(--primary-color) !important;
        background-image: none !important;
    }
    
    .overlay-badge {
        box-shadow: none !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 20px !important;
        font-size: 0.88rem !important;
        background: rgba(11, 30, 54, 0.9) !important; /* Dark blue button styling */
        color: var(--text-white) !important;
        border: 1px solid rgba(212, 175, 55, 0.4) !important;
    }

    .convenio-card-interactive:hover .overlay-badge {
        background: var(--secondary-color) !important;
        color: var(--primary-color) !important;
        border-color: var(--secondary-color) !important;
    }
    
    .convenio-card-interactive:hover .overlay-badge i {
        color: var(--primary-color) !important;
    }

    .convenio-card-interactive.details-open .overlay-badge {
        background: rgba(11, 30, 54, 0.95) !important;
        color: var(--text-white) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }
}

/* Expandable Details Panel using Grid Row Height Transition */
.convenio-details-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: grid-template-rows 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease, visibility 0.4s ease, margin-top 0.4s ease;
}

.convenio-details-panel.revealed {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    margin-top: 30px;
    padding-bottom: 10px;
}

.convenio-details-panel.revealed .convenio-grid {
    align-items: flex-start;
}

.convenio-details-content {
    min-height: 0;
}

.convenio-collapse-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 35px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.btn-hide-details {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-hide-details i {
    transition: transform 0.3s ease;
}

.btn-hide-details:hover {
    background: var(--bg-light);
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-hide-details:hover i {
    transform: translateY(-2px);
}

/* Stagger animation for children inside details when opened */
.convenio-details-panel.revealed .convenio-info {
    animation: slideInLeft 0.5s ease both;
}

.convenio-details-panel.revealed .convenio-requirements {
    animation: slideInRight 0.5s ease both;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Pulse Animation for overlay arrow */
@keyframes pulse-chevron {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.animate-pulse {
    animation: pulse-chevron 1.5s infinite ease-in-out;
}

/* ==========================================================================
   FORM SECTION (LEAD CAPTURE)
   ========================================================================== */
.contact-section {
    background: radial-gradient(circle at 10% 10%, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-info-panel h2 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-text h5 {
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Main Form Card */
.form-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hard);
    padding: 40px;
    color: var(--text-primary);
    position: relative;
    transition: var(--transition-normal);
}

/* Form Highlight Flash Animation on Pre-fill */
.form-card.highlight-flash {
    animation: borderFlash 1.5s ease-out;
}

@keyframes borderFlash {
    0% {
        box-shadow: 0 0 0 0px rgba(12, 190, 171, 0);
        border: 2px solid transparent;
    }
    10% {
        box-shadow: 0 0 25px 8px rgba(12, 190, 171, 0.4);
        border: 2px solid var(--accent-color);
    }
    100% {
        box-shadow: var(--shadow-hard);
        border: 1px solid transparent;
    }
}

.form-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.form-card p {
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-card .form-group {
    margin-bottom: 20px;
}

.form-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-card input, .form-card select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-card input:focus, .form-card select:focus {
    border-color: var(--accent-color);
    background-color: var(--bg-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(12, 190, 171, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.checkbox-group input {
    width: auto;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-card .btn {
    width: 100%;
    margin-top: 24px;
    font-size: 1rem;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: rgba(37, 211, 102, 0.1);
    color: #20BA5A;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   FAQS SECTION
   ========================================================================== */
.faqs-section {
    background-color: var(--bg-white);
}

.faqs-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
}

.faq-question i {
    font-size: 1.2rem;
    transition: var(--transition-normal);
    color: var(--secondary-color);
}

.faq-item.active {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-soft);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo-panel .logo {
    margin-bottom: 20px;
}

.footer-logo-panel p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.footer-nav-panel h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-nav-panel ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-panel a {
    font-size: 0.9rem;
}

.footer-nav-panel a:hover {
    color: var(--secondary-color);
    padding-left: 4px;
}

.footer-contact-panel p {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-poweredby {
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.footer-poweredby a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.footer-poweredby a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    height: 54px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
    animation: waPulse 2s infinite;
    text-decoration: none;
}

.whatsapp-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFF;
    white-space: nowrap;
}

.whatsapp-float i {
    font-size: 26px;
    display: flex;
    align-items: center;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background-color: #20BA5A;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #FFF;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        height: 48px;
        bottom: 24px;
        right: 24px;
        padding: 0 16px;
    }
    .whatsapp-label {
        font-size: 0.8rem;
    }
    .whatsapp-float i {
        font-size: 22px;
    }
}
