/* ==========================================================================
   CSS DESIGN SYSTEM - LANDING PAGE PENSIÓN DE ALIMENTOS CHILE
   Colors: Deep Navy (#022E6D), Gold (#F6A131), Purple (#836697), Teal (#0B908C), Slate (#6F7379)
   ========================================================================== */

/* 1. IMPORTS & GOOGLE FONTS */
@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');

/* 2. DESIGN TOKENS (VARIABLES) */
:root {
    /* Palette Primary */
    --primary: #022E6D;
    --primary-rgb: 2, 46, 109;
    --primary-light: #e6ebf5;
    
    /* Palette Secondary & Accent */
    --accent: #F6A131;
    --accent-rgb: 246, 161, 49;
    --accent-dark: #d98516;
    --secondary: #836697;
    --secondary-light: #f3f0f6;
    --teal: #0B908C;
    --teal-light: #e6f4f3;
    
    /* Neutral Shades */
    --slate: #6F7379;
    --text-dark: #1E2229;
    --text-muted: #51565E;
    --text-light: #FFFFFF;
    --bg-light: #F8F9FB;
    --bg-cozy: #FAF8F5; /* Warm background for cozy feel */
    --bg-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(2, 46, 109, 0.08);
    --shadow-lg: 0 16px 48px rgba(2, 46, 109, 0.12);
    --shadow-accent: 0 8px 24px rgba(246, 161, 49, 0.25);
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 14px;
    overflow-x: hidden;
}

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

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

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

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

input, textarea, button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
    background: none;
}

/* 4. UTILITIES & CONTAINER */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-cozy {
    background-color: var(--bg-cozy);
}

.section-white {
    background-color: var(--bg-white);
}

.text-center {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.badge-teal {
    background-color: var(--teal-light);
    color: var(--teal);
}

.badge-accent {
    background-color: #fef4e6;
    color: var(--accent-dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #011d47;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.4);
}

/* 5. NAVIGATION HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.header .container.nav-container {
    max-width: 1400px; /* Extiende el ancho del header en version escritorio */
    width: 95%;
}

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

.header.scrolled .nav-container {
    height: 100px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 96px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* Acerca las palabras del menu entre ellas */
    list-style: none;
}

.nav-link {
    font-size: 14px; /* Deja la fuente del menu a 14px */
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-cta {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* mobile header responsive adjustments */
@media (max-width: 991px) {
    .header .container.nav-container {
        width: 100%;
        padding: 0 2rem;
    }

    .nav-container {
        height: 90px;
    }
    
    .header.scrolled .nav-container {
        height: 80px;
    }
    
    .logo-img {
        height: 72px;
    }
    
    .header.scrolled .logo-img {
        height: 64px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 1.5rem;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        overflow-y: auto;
    }
    
    .header.scrolled .nav-menu {
        top: 80px;
        height: calc(100vh - 80px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-cta {
        display: none;
    }
}

/* 6. HERO SECTION */
.hero {
    padding-top: 14rem;
    padding-bottom: 6rem;
    background: radial-gradient(circle at 10% 20%, rgba(2, 46, 109, 0.03) 0%, rgba(246, 161, 49, 0.02) 90%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--teal);
    background: linear-gradient(120deg, var(--primary) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc-1 {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.hero-desc-2 {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(111, 115, 121, 0.15);
    padding-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-icon {
    font-size: 1.5rem;
    color: var(--teal);
}

.trust-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-media {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-img:hover {
    transform: scale(1.03);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background-color: var(--bg-white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 4s ease-in-out infinite;
    z-index: 10;
}

.floating-badge-1 {
    top: 10%;
    left: -10%;
}

.floating-badge-2 {
    bottom: 10%;
    right: -5%;
    animation-delay: 2s;
}

.fb-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.floating-badge-2 .fb-icon {
    background-color: var(--teal-light);
    color: var(--teal);
}

.fb-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
}

.fb-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 991px) {
    .hero {
        padding-top: 8rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-media {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .floating-badge {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

/* 7. QUIZ INTERACTIVO SECTION */
.quiz-section {
    background: linear-gradient(135deg, rgba(131, 102, 151, 0.05) 0%, rgba(2, 46, 109, 0.03) 100%);
    position: relative;
}

.quiz-container {
    max-width: 750px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(2, 46, 109, 0.05);
}

.quiz-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.quiz-title {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.quiz-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.progress-bar-wrapper {
    height: 6px;
    background-color: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--teal) 100%);
    width: 25%;
    transition: width 0.4s ease;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.quiz-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    border: 2px solid rgba(111, 115, 121, 0.15);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-card:hover {
    border-color: var(--primary);
    background-color: rgba(2, 46, 109, 0.01);
}

.option-card.selected {
    border-color: var(--teal);
    background-color: var(--teal-light);
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--slate);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.option-card.selected .option-radio {
    border-color: var(--teal);
    background-color: var(--teal);
}

.option-card.selected .option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.option-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Quiz Results Card */
.quiz-result-card {
    text-align: center;
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--teal-light);
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.result-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.result-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.result-cta {
    background-color: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.result-cta:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .quiz-container {
        padding: 1.5rem;
    }
}

/* 8. SERVICES (3 STAGES) SECTION */
.services {
    background-color: var(--bg-cozy);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Three Stages Layout */
.stages-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.stage-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    border: 1px solid rgba(2, 46, 109, 0.03);
    transition: var(--transition);
}

.stage-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stage-card.reverse {
    grid-template-columns: 1.1fr 1fr;
}

.stage-media {
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.stage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.stage-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 46, 109, 0.1) 0%, rgba(246, 161, 49, 0.05) 100%);
    z-index: 2;
}

.stage-card:hover .stage-img {
    transform: scale(1.05);
}

.stage-content {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stage-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.stage-title {
    font-size: 1.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.stage-quote {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--primary);
    border-left: 3px solid var(--secondary);
    padding-left: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.stage-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.stage-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.stage-features li i {
    color: var(--teal);
    margin-top: 0.25rem;
    font-size: 1rem;
}

.stage-features li strong {
    color: var(--text-dark);
}

/* Feature specific accordion styling for stage 2 (Mediación) */
.mediacion-accordion {
    margin-bottom: 2.5rem;
}

.accordion-item {
    border: 1px solid rgba(111, 115, 121, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    background-color: var(--bg-light);
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--primary-light);
}

.accordion-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: var(--bg-white);
    padding: 0 1.2rem;
}

.accordion-item.active .accordion-content {
    max-height: 350px;
    padding: 1rem 1.2rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-list {
    list-style: none;
}

.accordion-list li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accordion-list li i {
    color: var(--teal);
    font-size: 0.8rem;
}

/* Grid features for stage 3 */
.cards-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.mini-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    transition: var(--transition);
}

.mini-card:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.mini-card-icon {
    color: var(--teal);
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.mini-card-text h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.mini-card-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 991px) {
    .stage-card, .stage-card.reverse {
        grid-template-columns: 1fr;
    }
    
    .stage-media {
        min-height: 250px;
    }
    
    .stage-content {
        padding: 2rem 1.5rem;
    }
}

/* 9. MEDIADORA PERFIL SECTION */
.mediadora-section {
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.mediadora-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    align-items: center;
}

.mediadora-image-area {
    position: relative;
}

.mediadora-card-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
}

.mediadora-img {
    width: 100%;
    object-fit: cover;
    height: 500px;
}

.badge-acreditada {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.badge-acreditada i {
    color: var(--accent);
}

.mediadora-regional-banner {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(135deg, var(--teal) 0%, #086b68 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 250px;
    z-index: 10;
}

.mrb-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mrb-desc {
    font-size: 0.75rem;
    opacity: 0.9;
}

.mediadora-info h3 {
    font-size: 2.25rem;
    margin-bottom: 0.2rem;
}

.mediadora-title {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.mediadora-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.mediadora-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(111, 115, 121, 0.15);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--teal);
    margin-top: 0.2rem;
}

.stat-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .mediadora-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mediadora-image-area {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .mediadora-img {
        height: 400px;
    }
}

/* 10. CONTACT FORM SECTION */
.contact-section {
    background-color: var(--bg-cozy);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info-card {
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(246, 161, 49, 0.1);
    border-radius: 50%;
}

.contact-info-title {
    font-size: 1.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-info-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
}

.contact-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.cd-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cd-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cd-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.cd-text p {
    font-size: 0.85rem;
    opacity: 0.9;
    word-break: break-all;
}

.cd-text a:hover {
    color: var(--accent);
}

.contact-form-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(2, 46, 109, 0.03);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid rgba(111, 115, 121, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--teal);
    background-color: rgba(11, 144, 140, 0.01);
}

textarea.form-input {
    resize: none;
    min-height: 120px;
}

/* validation styles */
.form-input.error {
    border-color: #E53E3E;
}

.error-message {
    color: #E53E3E;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.2rem;
    display: none;
}

.form-status {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

.form-status.success {
    background-color: var(--teal-light);
    color: var(--teal);
    display: block;
}

.form-status.error {
    background-color: #FED7D7;
    color: #C53030;
    display: block;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* 11. FOOTER SECTION */
.footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-brand h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    background-color: white;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.footer-title {
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-links a:hover {
    color: var(--accent);
    opacity: 1;
    padding-left: 0.25rem;
}

.footer-payment-methods {
    margin-top: 1.5rem;
}

.payment-badges-flex {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.payment-badge {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-badge i {
    color: var(--accent);
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.7;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-grid > *:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid > *:last-child {
        grid-column: span 1;
    }
    
    .footer-copyright {
        flex-direction: column;
        text-align: center;
    }
}

/* 12. WHATSAPP FLOATING WIDGET */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.wa-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wa-btn:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .whatsapp-widget {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .wa-btn {
        width: 52px;
        height: 52px;
        font-size: 1.8rem;
    }
    
    /* Optimiza el ancho del contenido en celulares con un padding balanceado de 1.25rem (20px) */
    .container {
        padding: 0 1.25rem;
    }
    
    .header .container.nav-container {
        padding: 0 1.25rem;
    }
    
    .nav-container {
        height: 80px;
    }
    
    .header.scrolled .nav-container {
        height: 70px;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .header.scrolled .logo-img {
        height: 52px;
    }
    
    .nav-menu {
        top: 80px;
        height: calc(100vh - 80px);
        padding: 2.5rem 1.25rem;
    }
    
    .header.scrolled .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    /* Previene el desborde y apila los métodos de pago verticalmente de forma ordenada en móviles */
    .payment-badges-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
    
    .payment-badge {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
}

/* 13. ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}
