/* ============================================
   VARIABLES & BASE
   ============================================ */
:root {
    --primary: #1B3B36;
    --primary-dark: #142e2a;
    --salmon: #ef9c82;
    --salmon-bg: #f2f3f3;
    --dark-green: #1B3B36;
    --dark-green-light: #2D4A44;
    --lavender: #eef0f0;
    --light-purple: #e8f0ef;
    --light-gray: #F8F9FA;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

.container {
    max-width: 1100px;
}

.pb-6 {
    padding-bottom: 5rem !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

a:hover {
    color: var(--primary-dark);
}

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

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

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


.section-light-purple {
    background-color: var(--light-purple);
}

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

/* ============================================
   WAVE SEPARATORS
   ============================================ */
/* Navbar spacer */
.navbar-spacer {
    height: 60px;
}

/* Wave dividers */
.wave-divider {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.wave-bg-white { background-color: #fff; }
.wave-bg-salmon { background-color: #f2f3f3; }
.wave-bg-light-purple { background-color: #e8f0ef; }
.wave-bg-lavender { background-color: #eef0f0; }

/* ============================================
   LOGO
   ============================================ */
/* ============================================
   NAVBAR
   ============================================ */
.logo-navbar {
    height: 32px;
    width: auto;
}

@media (max-width: 767px) {
    .navbar-brand-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .navbar-toggler {
        margin-left: auto;
    }
}

#navbar {
    height: 60px;
    padding: 0;
    transition: box-shadow 0.3s ease;
}

#navbar .container {
    height: 100%;
}

#navbar .nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 14px;
    transition: color 0.2s ease;
}

#navbar .nav-link:hover {
    color: var(--primary);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* ============================================
   LOGO
   ============================================ */
.logo-img {
    height: 50px;
    width: auto;
}

.logo-section-img {
    height: 36px;
    width: auto;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    max-width: 100%;
    text-align: center;
}

#contacto .section-header {
    text-align: left;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.section-salmon .section-subtitle {
    color: var(--text-muted);
}

/* ============================================
   BADGES
   ============================================ */
.badge-section {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-green {
    background-color: #e6f4ea;
    color: #1a7431;
    border: 1px solid #b7e1c4;
}

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

.badge-dark {
    background-color: var(--dark-green);
    color: var(--white);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 59, 54, 0.3);
}

.btn-outline-custom {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.section-hero {
    padding: 80px 0 90px;
    background-color: var(--white);
}

.min-vh-80 {
    min-height: auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-badge .badge-custom {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.hero-image {
    max-height: 550px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ============================================
   DARK GREEN CARD
   ============================================ */
.card-dark-green {
    background-color: var(--dark-green);
    color: var(--white);
    border-radius: 12px;
}

.card-dark-green p {
    color: rgba(255, 255, 255, 0.85);
}

.card-title-white {
    color: var(--white);
    font-weight: 700;
}

.badge-green-light {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   STAT CARDS (QUIÉNES SOMOS)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 24px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

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

.section-salmon .stat-card {
    background-color: #fff;
}

.section-salmon .stat-label {
    color: var(--text-muted);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-block {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.service-block .col-lg-5 {
    position: relative;
}

.service-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 32px;
    background-color: #fff;
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-content p {
    font-size: 0.9rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: 16px;
    margin-bottom: 0;
}

.service-list li {
    padding: 5px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.9rem;
}

.service-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

/* ============================================
   CAE CARDS
   ============================================ */
.cae-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.cae-card:hover {
    box-shadow: 0 4px 20px rgba(27, 59, 54, 0.1);
    border-color: var(--primary);
}

.cae-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cae-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.cae-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
}

.cae-card-body {
    flex: 1;
    min-width: 0;
}

.cae-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cae-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   INFO BOXES
   ============================================ */
.info-box-purple {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    border-left: 4px solid var(--primary);
}

.info-box-purple p {
    font-size: 0.95rem;
}

.info-box-light {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 16px 24px;
    border: 1px solid var(--border-color);
}

/* ============================================
   BENEFIT CARDS
   ============================================ */
.benefit-card {
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 100%;
    transition: box-shadow 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.benefit-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--light-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   BENEFIT CARDS COMPACT
   ============================================ */
.benefit-col {
    flex: 1 1 0;
    min-width: 0;
}

.benefit-card-compact {
    text-align: center;
    padding: 16px 20px;
}

.benefit-card-compact .benefit-icon-box {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.benefit-card-compact h4 {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.benefit-card-compact p {
    display: none;
}

/* ============================================
   PROCESS STEPS HORIZONTAL
   ============================================ */
.process-steps-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.process-step-h {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    flex: 1;
    text-align: center;
}

.process-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.process-step-arrow {
    color: var(--border-color);
    font-size: 1rem;
    padding-top: 10px;
    flex-shrink: 0;
}

/* ============================================
   PROCESS ARROWS
   ============================================ */
.process-arrows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.process-arrow {
    position: relative;
    padding: 20px 40px 20px 30px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
}

.process-arrow-1 {
    background-color: #1B3B36;
    width: 70%;
}

.process-arrow-2 {
    background-color: #2D4A44;
    width: 80%;
}

.process-arrow-3 {
    background-color: #3D5A54;
    width: 90%;
}

/* ============================================
   FORM CARDS (SIMULADOR)
   ============================================ */
.form-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.form-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.form-card-icon {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-card h5 {
    font-size: 1rem;
    font-weight: 700;
}

/* ============================================
   SIMULATEUR WRAPPER
   ============================================ */
.simulateur-wrapper {
    background-color: var(--white);
    border-radius: 12px;
    padding: 28px;
    border: 1px solid var(--border-color);
}

/* ============================================
   CALCULATOR STEPS
   ============================================ */
.calculator-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.calc-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.calc-step:last-child {
    border-bottom: none;
}

.calc-step-indicator {
    width: 4px;
    min-height: 50px;
    background-color: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.calc-step h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    background-color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    height: 100%;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-open {
    position: absolute;
    top: 10px;
    left: 15px;
}

.quote-close {
    position: absolute;
    bottom: 10px;
    right: 15px;
}

.testimonial-text {
    margin: 16px 0;
    font-size: 0.95rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   RATINGS
   ============================================ */
.rating-block .stars {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 4px;
}

.rating-block .stars i {
    color: var(--primary);
    font-size: 1.2rem;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}

.rating-block h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 4px;
}

.rating-block p {
    font-size: 0.85rem;
}

/* ============================================
   BEFORE/AFTER CARDS
   ============================================ */
.ba-card {
    height: 100%;
}

.ba-img-wrapper {
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
}

.ba-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
}

.ba-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   FAQ CARDS
   ============================================ */
.faq-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.faq-card:hover {
    box-shadow: 0 4px 20px rgba(27, 59, 54, 0.1);
    border-color: var(--primary);
}

.faq-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.faq-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.faq-contact-bar {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 24px;
    font-size: 0.9rem;
    text-align: center;
}

/* ============================================
   ZONA CARD
   ============================================ */
.zona-row {
    position: relative;
}

.zona-row .col-lg-6:first-child {
    position: relative;
}

.zona-img {
    position: absolute;
    top: 0;
    left: 12px;
    width: calc(100% - 24px);
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.zona-card {
    background-color: var(--dark-green);
    color: var(--white);
    border-radius: 12px;
    padding: 32px;
    height: 100%;
}

.zona-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.city-tag {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 10px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
}

/* ============================================
   CONDITION CARDS
   ============================================ */
.condition-card {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 28px;
    height: 100%;
    border: 1px solid var(--border-color);
}

.condition-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.condition-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Contact inline list (mobile) */
.contact-inline-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-inline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.contact-inline-item a {
    color: var(--text-dark);
}

/* Safari fix for links without href */
.for-safari {
    cursor: pointer;
    text-decoration: underline;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info {
    overflow: hidden;
}

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

.contact-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   CTA GREEN CARD (CONTACT)
   ============================================ */
.cta-card-green {
    background-color: var(--dark-green);
    color: var(--white);
    border-radius: 12px;
    padding: 36px;
}

.cta-card-green p {
    color: rgba(255, 255, 255, 0.85);
}

.cta-urgency {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: #f2f3f3;
    color: var(--text-dark);
    padding: 48px 0 32px;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.site-footer p {
    color: var(--text-muted);
}

.footer-social-btn {
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 16px;
}

.footer-divider {
    border-color: rgba(0, 0, 0, 0.1);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-dark);
}

.footer-copyright {
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE - TABLET (max 991px)
   ============================================ */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .min-vh-80 {
        min-height: auto;
    }

    /* Hero */
    .section-hero {
        padding: 40px 0 50px;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 2rem;
        max-height: 400px;
    }

    /* Process arrows */
    .process-arrow-1,
    .process-arrow-2,
    .process-arrow-3 {
        width: 100%;
    }

    /* Services : image au-dessus du texte */
    .service-block .col-lg-5 {
        position: relative;
    }

    .service-img {
        position: relative;
        height: 250px;
        border-radius: 16px 16px 0 0;
    }

    /* Zona : image au-dessus du bloc vert */
    .zona-row .col-lg-6:first-child {
        position: relative;
    }

    .zona-img {
        position: relative;
        width: 100%;
        max-width: 100%;
        left: 0;
        height: 280px;
        border-radius: 12px 12px 0 0;
    }

    .zona-card {
        border-radius: 0 0 12px 12px;
    }

    /* Contacto */
    .col-lg-5.offset-lg-1 {
        margin-left: 0;
    }

    #contacto .section-header {
        text-align: center;
    }

    #contacto .contact-inline-list {
        align-items: center;
    }

    /* Footer */
    .site-footer {
        text-align: center;
    }

    /* Hide wave dividers on tablet too */
    .wave-divider {
        display: none;
    }

    /* Hide logo section on tablet */
    .logo-section {
        display: none !important;
    }

    /* Simulador */
    .simulateur-wrapper {
        margin-top: 1rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max 767px)
   ============================================ */
@media (max-width: 767px) {

    /* ---- HIDE ---- */
    .wave-divider { display: none; }
    .logo-section, .hero-logo { display: none !important; }
    .section-header .section-subtitle { display: none; }
    #opiniones .row.g-4.mb-5 > .col-md-4:nth-child(n+4) { display: none !important; }
    #opiniones .row.g-4.text-center > .col-md-4:nth-child(1),
    #opiniones .row.g-4.text-center > .col-md-4:nth-child(2) { display: none !important; }
    .service-list { display: none; }
    #quienes-somos .card-dark-green { display: none; }

    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* General sections - tighter */
    section,
    section.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Hero */
    .section-hero {
        padding: 30px 0 40px !important;
    }

    .hero-image {
        max-height: 300px;
        border-radius: 10px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge .badge-custom {
        font-size: 0.65rem;
        padding: 6px 12px;
    }

    .hero-logo {
        margin-bottom: 1rem !important;
    }

    /* Logo section */
    .logo-section-img {
        height: 28px;
    }

    /* Buttons */
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 14px;
        text-align: center;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Services */
    .service-img {
        height: 200px;
    }

    .service-content {
        padding: 20px;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-content p,
    .service-list li {
        font-size: 0.85rem;
    }

    /* CAE cards - stacked on mobile */
    #sistema-cae .row {
        flex-direction: column;
    }

    #sistema-cae .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .cae-card {
        padding: 16px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .cae-card-header {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .cae-line { display: none; }

    .cae-number {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .cae-card h4 {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .cae-card p {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    /* Benefit cards compact - mobile: icon + text inline */
    #beneficios .row.g-3 {
        flex-direction: column;
        gap: 0 !important;
    }

    .benefit-col {
        flex: 0 0 100% !important;
        max-width: 100%;
    }

    .benefit-card-compact {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }

    .benefit-card-compact:last-child {
        border-bottom: none;
    }

    .benefit-card-compact .benefit-icon-box {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        margin: 0;
        flex-shrink: 0;
    }

    .benefit-card-compact h4 {
        font-size: 0.85rem;
        margin: 0;
    }

    /* Process steps horizontal - mobile */
    .process-steps-horizontal {
        gap: 12px;
    }

    .process-step-h {
        font-size: 0.8rem;
        gap: 6px;
    }

    .process-step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .process-step-arrow {
        font-size: 0.7rem;
    }

    #beneficios h3 {
        font-size: 1.1rem;
    }

    /* Calculadora */
    .calc-step {
        padding: 14px 0;
    }

    .calc-step h5 {
        font-size: 0.9rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 18px;
    }

    .testimonial-text {
        font-size: 0.85rem;
    }

    .testimonial-author {
        font-size: 0.8rem;
    }

    .rating-block .stars i {
        font-size: 1rem;
    }

    .rating-number {
        font-size: 1.2rem;
    }

    .rating-block h5 {
        font-size: 0.9rem;
    }

    /* Before/After */
    .ba-img-wrapper {
        height: 140px;
    }

    .ba-card h5 {
        font-size: 0.85rem;
    }

    .ba-card p {
        font-size: 0.8rem;
    }

    /* FAQ */
    .faq-card {
        padding: 20px;
    }

    .faq-card h4 {
        font-size: 1rem;
    }

    .faq-contact-bar {
        font-size: 0.8rem;
        padding: 12px 16px;
    }

    /* Zona */
    .zona-img {
        height: 220px;
    }

    .zona-card {
        padding: 24px;
    }

    .zona-card h3 {
        font-size: 1.1rem;
    }

    .city-tag {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Conditions */
    .condition-card {
        padding: 20px;
    }

    .condition-card h5 {
        font-size: 0.9rem;
    }

    /* Contact */
    .cta-card-green {
        padding: 24px;
    }

    .cta-card-green h3 {
        font-size: 1.2rem;
    }

    .cta-card-green .btn-lg {
        font-size: 0.85rem;
        padding: 10px 18px;
        width: 100%;
    }

    .cta-card-green .d-flex.flex-wrap {
        flex-direction: column;
    }

    /* Info boxes */
    .info-box-purple,
    .info-box-light {
        padding: 16px;
        font-size: 0.85rem;
    }

    /* Simulateur */
    .simulateur-wrapper {
        padding: 16px;
    }

    /* Hide repetitive logos on each section - mobile */
    .logo-section {
        display: none !important;
    }


    /* Testimonials: hide 2nd row + ratings on mobile */
    #opiniones .row.g-4.mb-5 > .col-md-4:nth-child(n+4) {
        display: none;
    }

    #opiniones .row.g-4.text-center > .col-md-4:nth-child(1),
    #opiniones .row.g-4.text-center > .col-md-4:nth-child(2) {
        display: none !important;
    }

    /* FAQ: only show 2 on mobile */

    .faq-card h4 {
        font-size: 0.95rem;
    }

    .faq-card p {
        font-size: 0.82rem;
    }

    .faq-contact-bar {
        font-size: 0.75rem;
        padding: 10px 14px;
    }

    /* Hero: hide logo in hero too since it's in navbar */
    .hero-logo {
        display: none !important;
    }

    /* Section headers: tighter spacing */
    .section-header {
        margin-bottom: 1rem !important;
    }

    .section-header .section-subtitle {
        display: none;
    }

    .badge-section {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    /* Services: hide bullet list on mobile, keep text short */
    .service-list {
        display: none;
    }

    .service-content p {
        font-size: 0.82rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Testimonials: more compact */
    .testimonial-card {
        padding: 30px 20px;
    }

    .quote-open {
        top: 8px;
        left: 10px;
        font-size: 1.2rem;
    }

    .quote-close {
        bottom: 8px;
        right: 10px;
        font-size: 1.2rem;
    }

    .testimonial-text {
        margin: 0 0 8px;
        font-size: 0.82rem;
    }

    .testimonial-author {
        font-size: 0.78rem;
    }

    /* CAE cards: stacked, number left + title/desc right */
    #sistema-cae .row {
        flex-direction: column;
    }

    #sistema-cae .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .cae-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 16px;
    }

    .cae-card-header {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .cae-line {
        display: none;
    }

    .cae-card h4 {
        font-size: 0.88rem;
        margin-bottom: 2px;
    }

    .cae-card p {
        font-size: 0.78rem;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }


    /* Info boxes */
    .info-box-purple {
        font-size: 0.82rem;
        padding: 12px 14px;
    }

    /* Quiénes somos: hide mission text, keep stats only */
    #quienes-somos .card-dark-green {
        display: none;
    }

    #quienes-somos .section-header .section-title {
        font-size: 1.2rem;
    }


    /* Contact */
    #contacto .section-header {
        text-align: center;
    }

    /* Footer */
    .site-footer {
        text-align: center;
    }

    /* ---- GLOBAL ---- */
    section {
        padding: 1.8rem 0 !important;
    }

    .section-header {
        margin-bottom: 1rem !important;
        text-align: center;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .badge-section {
        font-size: 0.62rem;
        padding: 3px 8px;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        text-align: center;
        padding: 11px 20px;
        font-size: 0.88rem;
    }

    /* ---- HERO ---- */
    .section-hero {
        padding: 20px 0 28px !important;
        text-align: center;
    }

    .hero-title {
        font-size: 1.45rem;
        margin-top: 20px;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 8px !important;
    }

    .hero-image {
        margin-top: 1.2rem;
        max-height: 220px;
        border-radius: 10px;
        object-position: center 20%;
    }

    .hero-badge {
        margin-top: 0.8rem;
    }

    .hero-badge .badge-custom {
        font-size: 0.58rem;
        padding: 5px 10px;
    }

    /* ---- STATS (quienes-somos) ---- */
    #quienes-somos .section-title {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        height: auto;
    }

    .stat-card {
        padding: 14px 12px;
        text-align: center;
        border-radius: 8px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* ---- SERVICES ---- */
    .service-block {
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .service-img {
        position: relative;
        height: 160px;
        border-radius: 10px 10px 0 0;
    }

    .service-content {
        padding: 14px 16px;
    }

    .service-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .service-content p {
        font-size: 0.8rem;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* ---- CAE ---- */
    .cae-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 8px;
    }

    .cae-card-header { margin-bottom: 0; flex-shrink: 0; }
    .cae-line { display: none; }
    .cae-number { width: 30px; height: 30px; font-size: 0.85rem; }
    .cae-card h4 { font-size: 0.85rem; margin-bottom: 1px; }
    .cae-card p { font-size: 0.75rem; margin-bottom: 0; }

    .info-box-purple {
        font-size: 0.78rem;
        padding: 10px 12px;
    }

    /* ---- BENEFICIOS ---- */
    #beneficios .section-header { text-align: center; }

    .benefit-card-compact .benefit-icon-box {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .benefit-card-compact h4 { font-size: 0.8rem; }

    /* ---- PROCESS STEPS ---- */
    .process-steps-horizontal {
        gap: 8px;
    }

    .process-step-h {
        font-size: 0.7rem;
        gap: 4px;
    }

    .process-step-number {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .process-step-arrow { font-size: 0.6rem; }

    #beneficios h3 { font-size: 1rem; }

    /* ---- SIMULATEUR ---- */
    .simulateur-wrapper {
        padding: 12px;
        border-radius: 8px;
    }

    #simulador-de-elegibilidad .card-dark-green {
        padding: 16px !important;
        border-radius: 8px;
    }

    #simulador-de-elegibilidad .card-title-white { font-size: 1rem; }
    #simulador-de-elegibilidad .card-dark-green p { font-size: 0.8rem; }
    .badge-green-light { font-size: 0.6rem; padding: 4px 10px; }

    /* ---- TESTIMONIALS ---- */
    .testimonial-card {
        padding: 14px;
        border-radius: 8px;
    }

    .testimonial-text {
        margin: 0 0 4px;
        font-size: 0.8rem;
        font-style: normal;
    }

    .testimonial-author {
        font-size: 0.75rem;
        opacity: 0.7;
    }

    /* ---- FAQ ---- */
    .faq-card {
        padding: 14px;
        border-radius: 8px;
    }

    .faq-card h4 { font-size: 0.88rem; margin-bottom: 6px; }
    .faq-card p { font-size: 0.78rem; }

    /* ---- CONTACT ---- */
    #contacto .section-header {
        display: block !important;
        text-align: center;
    }

    #contacto .section-title { font-size: 1.15rem; }

    #contacto .contact-item {
        gap: 10px;
    }

    #contacto .contact-item h5 { font-size: 0.85rem; }
    #contacto .contact-item p { font-size: 0.8rem; }
    #contacto h4.mb-4 { font-size: 1rem; }

    .cta-card-green {
        padding: 20px 16px;
        border-radius: 10px;
        text-align: center;
    }

    .cta-card-green h3 { font-size: 1.05rem; }
    .cta-card-green p { font-size: 0.82rem; }

    .cta-card-green .btn-lg {
        width: 100%;
        padding: 11px 16px;
        font-size: 0.85rem;
    }

    .cta-card-green .d-flex.flex-wrap { flex-direction: column; }
    .cta-urgency { font-size: 0.72rem; text-align: left; }

    /* ---- FOOTER ---- */
    .site-footer {
        text-align: center;
        padding: 28px 0 20px;
    }

    .footer-title { font-size: 1.15rem; }
    .footer-link { font-size: 0.75rem; }
    .footer-copyright { font-size: 0.7rem; }
    .footer-social-btn { font-size: 0.78rem; padding: 6px 12px; }
}
