* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    /* New brand colors */
    --primary-color: #50BED0;    /* Azul Agua - Main brand color */
    --secondary-color: #2F61AB;  /* Azul Profundo - Secondary color */
    --accent-color: #9FD6E0;     /* Azul Brisa - Complementary color 1 */
    --neutral-color: #CED7D8;    /* Gris Claro - Complementary color 2 */
    
    /* Additional UI colors */
    --text-color: #333;
    --light-text: #f8f9fa;
    --background: #f8f9fa;
    
    /* Legacy colors for reference */
    --legacy-primary: #0091ff;
    --legacy-secondary: #003366;
    --legacy-accent: #64e0ff;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    overflow-x: hidden;
}

.header-container {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.header {
    width: 50%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-radius: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

@media (max-width: 1400px) {
    .header {
        width: 60%;
    }
}

@media (max-width: 1200px) {
    .header {
        width: 70%;
        height: 70px;
        padding: 0 25px;
    }
}

@media (max-width: 1000px) {
    .header {
        width: 80%;
        height: 65px;
        padding: 0 20px;
    }
}

.logo {
    height: 45px; /* Smaller logo */
    transition: height 0.3s ease;
}

@media (max-width: 1200px) {
    .logo {
        height: 40px;
    }
}

@media (max-width: 1000px) {
    .logo {
        height: 35px;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 38px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(80, 190, 208, 0.3);
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(80, 190, 208, 0.3);
}

.main-content {
    margin-top: 80px;
    padding: 20px 10%;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
    padding: 0;
}

@media (max-width: 1200px) {
    .hero {
        min-height: 75vh;
        padding: 30px 0;
    }
}

@media (max-width: 1000px) {
    .hero {
        min-height: 70vh;
    }
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.blur-circle.one {
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, rgba(159, 214, 224, 0.5), rgba(80, 190, 208, 0.3));
    top: -100px;
    right: 5%;
    animation: float-one 25s infinite ease-in-out;
    opacity: 0.7;
}

.blur-circle.two {
    width: 600px;
    height: 600px;
    background: linear-gradient(235deg, rgba(159, 214, 224, 0.4), rgba(80, 190, 208, 0.2));
    bottom: 10%;
    left: 0%;
    animation: float-two 30s infinite ease-in-out reverse;
    opacity: 0.6;
}

.blur-circle.three {
    width: 800px;
    height: 800px;
    background: linear-gradient(35deg, rgba(47, 97, 171, 0.3), rgba(80, 190, 208, 0.2));
    top: 20%;
    left: 20%;
    animation: float-three 35s infinite ease-in-out 8s;
    opacity: 0.4;
}

@keyframes float-one {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(3%, 3%) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translate(1%, 5%) rotate(8deg) scale(1.02);
    }
    75% {
        transform: translate(-3%, 2%) rotate(-5deg) scale(0.98);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes float-two {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-4%, 2%) rotate(-3deg) scale(1.03);
    }
    66% {
        transform: translate(3%, -2%) rotate(6deg) scale(0.97);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes float-three {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    20% {
        transform: translate(-2%, -3%) rotate(-4deg) scale(1.04);
    }
    40% {
        transform: translate(3%, -1%) rotate(2deg) scale(0.98);
    }
    60% {
        transform: translate(1%, 4%) rotate(7deg) scale(1.02);
    }
    80% {
        transform: translate(-3%, 2%) rotate(-2deg) scale(0.97);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

.blur-circle.four {
    width: 550px;
    height: 550px;
    background: linear-gradient(215deg, rgba(80, 190, 208, 0.3), rgba(159, 214, 224, 0.15));
    bottom: -150px;
    right: 20%;
    animation: float-two 28s infinite ease-in-out 3s;
    opacity: 0.5;
}

.blur-circle.five {
    width: 450px;
    height: 450px;
    background: linear-gradient(165deg, rgba(47, 97, 171, 0.2), rgba(80, 190, 208, 0.1));
    top: 60%;
    left: 15%;
    animation: float-one 32s infinite ease-in-out 12s;
    opacity: 0.3;
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: 100vh;
        height: -webkit-fill-available;
    }
    
    .hero-content {
        height: 100vh;
        height: -webkit-fill-available;
        min-height: 600px;
        max-height: 100vh;
    }
    
    .video-container {
        max-width: min(clamp(300px, 42vw, 550px), 90vw);
        max-height: 35vh;
    }
    
    .price-highlight {
        font-size: clamp(16rem, 44vw, 30rem) !important;
    }
    
    .main-headline {
        font-size: clamp(2rem, 5vw, 3.5rem) !important;
    }
    
    .sub-headline {
        font-size: clamp(1.2rem, 3vw, 2rem) !important;
    }
}

/* Hero Single Column Layout */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 60px 40px 60px;
    height: 100vh;
    justify-content: flex-start;
    box-sizing: border-box;
    min-height: 600px;
}

.hero-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(5px, 0.8vh, 8px);
    width: 100%;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3px, 0.5vh, 6px);
    margin-top: clamp(8px, 1vh, 12px);
}


/* Video Section */
.hero-video-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.video-container {
    width: 100%;
    max-width: clamp(300px, 35vw, 500px);
    max-height: 30vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

.desktop-video {
    width: 100%;
    height: auto;
    max-height: 30vh;
    object-fit: cover;
    display: block;
}

.mobile-video {
    width: 100%;
    height: auto;
    max-height: 30vh;
    object-fit: cover;
    display: none;
}

.video-fallback {
    width: 100%;
    height: auto;
    max-height: 30vh;
    object-fit: cover;
    display: none;
}

/* Typography Hierarchy */
.main-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: lowercase;
}

.sub-headline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #555;
    margin: 0;
    line-height: 1.2;
}

.installation-promise {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: #666;
    margin: 0;
    text-transform: lowercase;
}

.price-section {
    margin: 10px 0;
}

.price-highlight {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    padding: 8px 12px !important;
    display: inline-block !important;
    position: relative !important;
    margin: 10px 0 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    text-fill-color: initial !important;
}

.price-highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 255, 244, 0.85);
    border-radius: 12px;
    z-index: -1;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.2);
}

.price-amount {
    font-size: 1.15em;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--primary-color);
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    text-fill-color: initial !important;
}

.price-period {
    font-size: 0.75em;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0;
    margin-left: 1px;
    color: #555;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    text-fill-color: initial !important;
}

/* Action Buttons */

.btn-ver-precios {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    padding: clamp(14px, 2vw, 18px) clamp(30px, 6vw, 50px);
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    text-align: center;
    box-shadow: 0 8px 25px rgba(80, 190, 208, 0.3);
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.btn-ver-precios:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(80, 190, 208, 0.4);
}

.category-links {
    display: flex;
    gap: clamp(20px, 4vw, 30px);
    font-size: clamp(1rem, 2vw, 1.2rem);
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: clamp(15px, 2vh, 25px);
}

.category-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: lowercase;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 80px;
}

.category-links a:hover {
    background: var(--secondary-color);
    color: white;
}

/* Desktop and mobile specific content */
.desktop-heading,
.desktop-benefit,
.desktop-bullets,
.desktop-features,
.desktop-about,
.desktop-section,
.desktop-modal-header {
    display: block;
}

.mobile-heading,
.mobile-benefit,
.mobile-bullets,
.features-mobile,
.mobile-separator,
.mobile-modal-header {
    display: none !important; /* Added !important to ensure they're hidden */
}

/* Make sure mobile benefit is properly hidden on desktop */
li.desktop-benefit {
    display: block;
}

li.mobile-benefit {
    display: none;
}

/* Responsive scaling for hero section */
@media (max-width: 1400px) {
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 2.6rem;
    }
    
    .hero-benefits li {
        font-size: 1.2rem;
    }
    
    .benefit-check {
        width: 25px;
        height: 25px;
    }
    
    .cta-button, .secondary-button {
        padding: 14px 32px;
        font-size: 1.15rem;
    }
}

@media (max-width: 1000px) {
    .hero-text {
        width: 55%;
        padding-right: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-benefits li {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .benefit-check {
        width: 22px;
        height: 22px;
        margin-right: 10px;
    }
    
    .cta-button, .secondary-button {
        padding: 12px 28px;
        font-size: 1.05rem;
    }
    
    .hero-cta {
        gap: 20px;
    }
}

/* Mobile Hero Styles */
.hero-video-mobile {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.hero-video-mobile video,
.hero-video-mobile .video-fallback-mobile {
    width: 100%;
    height: auto;
    display: block;
}

.hero-headline-mobile {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-time {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    background: none;
    -webkit-text-fill-color: var(--primary-color);
}

.hero-price-mobile {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.hero-price-mobile .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.hero-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.primary-btn-mobile {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(80, 190, 208, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.primary-btn-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(80, 190, 208, 0.4);
}

.secondary-actions-mobile {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
}

.secondary-actions-mobile a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.secondary-actions-mobile a:hover {
    color: var(--primary-color);
}

/* Laptop optimization for button visibility */
@media (min-width: 769px) and (max-width: 1400px) and (max-height: 800px) {
    .video-container {
        max-width: clamp(280px, 32vw, 420px);
        max-height: 25vh;
    }
    
    .desktop-video,
    .mobile-video,
    .video-fallback {
        max-height: 25vh;
    }
    
    .hero-content {
        padding: 50px 40px 50px;
        justify-content: space-between;
    }
    
    .hero-top-section {
        gap: clamp(4px, 0.6vh, 6px);
    }
    
    .hero-text-content {
        gap: clamp(2px, 0.4vh, 4px);
        margin-top: clamp(6px, 0.8vh, 10px);
    }
    
    .category-links {
        margin-top: clamp(10px, 1.5vh, 15px);
        margin-bottom: 20px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        padding: 0;
    }
    
    .hero-content {
        padding: 100px 20px 60px;
        height: 100vh;
        justify-content: flex-start;
        box-sizing: border-box;
    }
    
    .hero-top-section {
        gap: clamp(5px, 0.8vh, 10px);
    }
    
    .hero-text-content {
        gap: clamp(3px, 0.5vh, 8px);
        margin-top: clamp(10px, 1.5vh, 20px);
    }
    
    
    .video-container {
        max-width: 100%;
    }
    
    .desktop-video {
        display: none;
    }
    
    .mobile-video {
        display: block;
    }
    
    .category-links {
        gap: 15px;
        flex-direction: row;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    
    .category-links a {
        font-size: 1rem;
        text-align: center;
        min-width: 100px;
        flex: 1;
        max-width: 140px;
    }
    
    /* Make header fixed like in desktop */
    .header-container {
        position: fixed;
        top: 20px;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .header {
        width: 90%;
        height: 60px;
        padding: 0 15px;
        justify-content: space-between;
        background-color: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    /* Hide the nav links in the header */
    .nav-links {
        display: none;
    }
    
    /* Adjust logo and CTA in header */
    .header .logo {
        height: 40px;
    }
    
    .header .cta-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Mobile menu removed */
    
    /* Apply hero background to entire body on mobile */
    body {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
        position: relative;
        overflow-x: hidden;
    }
    
    /* Add blur circles to the background for the entire mobile page */
    .hero-background {
        position: fixed; /* Changed from fixed to absolute to cover entire page */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
    
    /* Mobile hero section */
    .hero {
        flex-direction: column;
        padding: 100px 20px 40px; /* Increased top padding to account for fixed header */
        min-height: auto;
        text-align: center;
    }
    
    .hero-text {
        width: 100%;
        padding-right: 0;
        text-align: center;
        margin-bottom: 30px;
    }
    
    /* Switch content for mobile */
    .desktop-heading,
    .desktop-benefit,
    li.desktop-benefit,
    .desktop-bullets,
    .desktop-features,
    .desktop-about,
    .desktop-section,
    .desktop-modal-header {
        display: none !important;
    }
    
    .mobile-heading,
    .mobile-benefit,
    li.mobile-benefit,
    .mobile-bullets,
    .features-mobile,
    .mobile-separator,
    .mobile-modal-header {
        display: block !important;
    }
    
    /* Explicitly ensure mobile bullets show in each section */
    #default-section .mobile-bullets,
    #hogar-section .mobile-bullets,
    .conditional-section.active .mobile-bullets {
        display: block !important;
        margin-top: 15px;
        margin-bottom: 15px;
        padding-left: 15px;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .mobile-heading {
        font-size: 2rem;
        margin-bottom: 15px; /* Add reduced margin to tighten spacing with bullets */
    }
    
    .hero-benefits {
        text-align: left;
        display: inline-block;
        margin: 10px auto 0; /* Further reduced top margin from 15px to 10px */
    }
    
    /* Improve bullet points for mobile */
    .hero-benefits li {
        font-size: 1rem;
        margin-bottom: 5px; /* Further reduced from 8px to 5px to tighten spacing */
        position: relative;
        padding-left: 38px; /* Increased space between checkmark and text */
        padding-right: 10px;
        box-sizing: border-box;
        text-align: left;
        line-height: 1.4;
    }
    
    /* Remove margin from the last bullet point */
    .hero-benefits li:last-child {
        margin-bottom: 0;
        line-height: 1.4;
    }
    
    .hero-benefits .benefit-check {
        position: absolute;
        left: 0;
        top: 1px;
        margin-top: 2px;
        flex-shrink: 0;
        min-width: 22px;
        text-align: center;
    }
    
    /* Hide all hero images on mobile version */
    .hero-image,
    .dispensador-img,
    .hero-image img {
        display: none;
        width: 0;
        height: 0;
    }
    
    /* Stack CTA buttons but keep them the same size */
    .hero-cta {
        flex-direction: column;
        gap: 8px; /* Further reduced to bring buttons closer together */
        margin-top: 0; /* Removed top margin completely */
        align-items: center;
    }
    
    .hero-cta .cta-button, 
    .hero-cta .secondary-button {
        width: 80%;
        padding: 14px 20px;
        font-size: 1.1rem;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Responsive adjustments for other sections */
    .section-title {
        font-size: 1.7rem !important;
        margin-bottom: 25px;
        line-height: 1.3;
    }
    
    /* Hide subtitles in the eleccion section for mobile */
    .eleccion-section h3.subtitle-default,
    .eleccion-section h3.subtitle-hogar,
    .eleccion-section h3.subtitle-empresa {
        display: none;
    }
    
    /* Adjust spacing in eleccion section for mobile */
    .eleccion-section h2 {
        margin-bottom: 20px;
    }
    
    .eleccion-section .service-title {
        margin-top: 10px;
    }
    
    .main-content {
        padding: 0 15px;
        margin-top: 0; /* No margin needed since header scrolls with content */
    }
    
    /* Section adjustments for mobile */
    .eleccion-section {
        padding: 40px 15px 50px;
        margin-top: 20px;
        margin-bottom: 80px; /* Further increased space after this section */
        background: none; /* Remove section background to show the global background */
        box-shadow: none;
        border-radius: 0;
        scroll-margin-top: 100px; /* Account for fixed header when scrolling to this section */
    }
    
    /* Hide comparison section in mobile */
    .grid-comparison,
    .compact-comparison-header {
        display: none;
    }
    
    /* Comparison grid styles removed for mobile */
    
    /* Mobile separator styles */
    .mobile-separator {
        height: 10px;
        margin: 40px 20px 60px;
        background: linear-gradient(90deg, 
            rgba(0, 145, 255, 0.1), 
            rgba(0, 145, 255, 0.3) 50%, 
            rgba(0, 145, 255, 0.1));
        border-radius: 5px;
        position: relative;
    }
    
    .mobile-separator::before,
    .mobile-separator::after {
        content: "";
        position: absolute;
        width: 15px;
        height: 15px;
        background-color: rgba(0, 145, 255, 0.4);
        border-radius: 50%;
    }
    
    .mobile-separator::before {
        left: calc(50% - 40px);
        top: -2px;
    }
    
    .mobile-separator::after {
        left: calc(50% + 25px);
        top: -2px;
    }
    
    /* Responsive feature cards */
    .features {
        background: none;
        box-shadow: none;
        padding: 50px 15px 40px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    /* Mobile features styling */
    .features-mobile {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .features-mobile .feature-card {
        width: 100%;
        padding: 25px 20px;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    /* Responsive about section */
    .about {
        display: block; /* Override grid display for mobile */
        padding: 50px 20px;
        background: none;
        box-shadow: none;
        text-align: center;
        margin-top: 30px;
    }
    
    .about-text {
        width: 100%;
        padding: 0 10px;
        margin: 0 auto;
        max-width: 500px;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .about-text .cta-button {
        margin: 10px auto 20px;
        display: inline-block;
    }
    
    /* CTA section mobile */
    .cta-section {
        padding: 50px 20px;
        margin-top: 40px;
        margin-bottom: 40px;
        background: linear-gradient(135deg, rgba(0, 145, 255, 0.8), rgba(0, 51, 102, 0.8));
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 15px;
        text-align: center;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .cta-section p {
        margin: 0 auto 25px;
        max-width: 500px;
        padding: 0 10px;
    }
    
    /* Responsive footer */
    .footer {
        padding: 40px 20px 30px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Modal adjustments for mobile */
    .modal-content {
        width: 90%;
    }
    
    .mobile-modal-header {
        padding: 10px; /* Minimal padding for spacing */
    }
    
    .contact-form {
        padding-top: 30px; /* Additional padding at the top to compensate for missing header */
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
}

.hero-text h1 br {
    margin-bottom: 10px;
    display: block;
    content: "";
}

.hero-text h1 br + * {
    margin-top: 5px;
}

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

/* Hero pricing styles - leaving these because they're used in the hero section */
.price-highlight {
    font-size: 0.75em;
    font-weight: 700;
    color: #333;
    padding: 2px 8px;
    display: inline-block;
    position: relative;
    margin-top: 5px;
    transform: scale(0.95);
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    text-fill-color: initial !important;
}

.price-highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 255, 244, 0.85);
    border-radius: 12px;
    z-index: -1;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.2);
}

.price-amount {
    font-size: 1.15em;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--primary-color); /* Updated to match brand colors */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    text-fill-color: initial !important;
}

.price-period {
    font-size: 0.75em;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0;
    margin-left: 1px;
    color: #555;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    text-fill-color: initial !important;
}

.hero-benefits {
    list-style: none;
    margin: 20px 0 30px;
    padding: 0;
}

.hero-benefits li {
    font-size: 1.25rem;
    line-height: 1.4;
    color: #444;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.benefit-check {
    color: white;
    background-color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(80, 190, 208, 0.3);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 50px;
    width: 100%;
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 16px 38px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.secondary-button.empresa-btn {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.secondary-button:hover {
    background-color: rgba(80, 190, 208, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(80, 190, 208, 0.15);
}

.secondary-button.empresa-btn:hover {
    background-color: #1E4280;  /* Darker version of secondary color */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(47, 97, 171, 0.3);
}

.hero-image {
    width: 40%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dispensador-img {
    width: 95%;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
    transition: all 0.5s ease;
    animation: float-dispensador 6s ease-in-out infinite;
}

@media (max-width: 1200px) {
    .dispensador-img {
        max-height: 500px;
    }
}

@media (max-width: 1000px) {
    .dispensador-img {
        max-height: 420px;
    }
}

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

/* Scroll Animation Styles */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Eleccion Section */
.eleccion-section {
    padding: 30px 0 40px 0; /* Minimal top padding as header will be above, not inside */
    margin-top: 20px; /* Add small top margin for spacing from header */
    margin-bottom: 0;
    background-color: #f9fbfd;
    border-radius: 20px;
    position: relative;
    z-index: 10;
    scroll-margin-top: 120px; /* Added back to ensure header stays above section */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Water Comparison Section */
.water-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 100px;
    padding: 40px 0;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 420px;
    padding: 30px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    font-weight: 600;
}

.new-bar-chart {
    display: flex;
    justify-content: space-between;
    height: 280px;
    position: relative;
    width: 90%;
    margin: 0 auto;
}

.chart-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 28%;
    position: relative;
    padding: 0 15px;
    margin: 0 2%;
}

.attribute-label {
    position: absolute;
    bottom: -30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: center;
    width: 100%;
    padding: 5px 0;
}

.bars-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    align-items: flex-end;
}

.new-bar {
    position: relative;
    width: 28%;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: height 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bar-top {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    background-color: white;
    border-radius: 12px;
    padding: 4px 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.new-bar.glup {
    background-color: var(--primary-color);
    background-image: linear-gradient(to top, var(--primary-color), #4aa9ff);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.new-bar.huelva {
    background-color: #888;
    background-image: linear-gradient(to top, #888, #aaa);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.new-bar.fontvella {
    background-color: #ccc;
    background-image: linear-gradient(to top, #ccc, #dedede);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-legend {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    gap: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    background-color: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    margin-right: 10px;
}

.legend-color.glup {
    background-color: var(--primary-color);
}

.legend-color.huelva {
    background-color: #888;
}

.legend-color.fontvella {
    background-color: #ccc;
}

.comparison-text {
    padding: 0; /* Remove padding from comparison-text so all sections rely on the same padding */
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.comparison-text h2 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.comparison-text h3 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-text .highlight {
    color: var(--primary-color);
    font-weight: 600;
    padding: 1px 4px; /* Add spacing around the highlighted text */
    border-radius: 3px; /* Rounded corners */
    background-color: rgba(0, 145, 255, 0.08); /* Very subtle background */
}

/* Option 2 Cards */
.minimal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 40px auto 60px;
    max-width: 900px;
}

.minimal-card {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.minimal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #3b82f6;
}

.step-number {
    font-size: 24px;
    font-weight: 600;
    color: #3b82f6;
    display: inline;
    margin-right: 8px;
}

.minimal-card h3 {
    color: #1e293b;
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimal-card p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.bullet-points {
    list-style: none;
    margin: 40px auto;
    max-width: 600px;
    text-align: left;
    display: inline-block;
}

.bullet-points li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #555;
}

.bullet-points li::before {
    content: "✓";
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin-right: 15px;
    min-width: 20px;
    background-color: rgba(80, 190, 208, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure all home bullets start at the same position */
.home-bullets {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
    max-width: 500px; /* Control the width for better display */
}

.home-bullets li {
    position: relative;
    padding-left: 45px; /* Consistent starting position for text */
    margin-bottom: 12px; /* More space between bullet points */
    font-size: 1.05rem; /* Slightly larger font size */
}

.home-bullets li::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Additional highlight styles */
.highlight-secondary {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 1px 4px; /* Add spacing around the highlighted text */
    border-radius: 3px; /* Rounded corners */
    background-color: rgba(0, 51, 102, 0.08); /* Very subtle background */
}

.comparison-button {
    text-align: center;
    margin: 40px auto 60px;
}

.comparison-button .cta-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.comparison-button .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 145, 255, 0.3);
    background-color: #0085eb;
}

/* Compact Card Comparison Section */
.compact-comparison {
    padding: 80px 0 70px 0;
    margin-bottom: 0;
    background-color: #f9fbfd;
    border-radius: 20px;
    position: relative;
    z-index: 10;
    scroll-margin-top: 100px;
}

.compact-comparison-header {
    text-align: center;
    margin: 40px 0 20px;
    min-height: 130px; /* Ensure all headers have the same height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.compact-comparison-header h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.compact-comparison-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.compact-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compact-category {
    display: flex;
    align-items: center;
    padding: 0 30px;
    margin-bottom: 8px;
}

.compact-category-label {
    width: 180px;
    display: flex;
    align-items: center;
    background-color: white;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-right: 20px;
}

.compact-category-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--primary-color);
    background-color: rgba(80, 190, 208, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.compact-category-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.compact-score-cards {
    display: flex;
    flex-grow: 1;
    gap: 12px;
}

.compact-card {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 10px 15px 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: visible;
}

.price-comparison .compact-card {
    flex-direction: column;
    padding: 10px 15px 6px;
    align-items: center;
    text-align: center;
}

.compact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.compact-card {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compact-card:hover {
    z-index: 9999;
    position: relative;
}

.compact-card .card-details {
    position: fixed;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: translate(-50%, 0);
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10000;
    width: 300px;
    max-width: 90vw;
    pointer-events: none;
}

.compact-card:hover .card-details {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* JS will set these properties dynamically */
.card-details-visible {
    left: 50% !important;
    top: 100% !important; 
}

.card-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 10px;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
}

.card-stat-item {
    text-align: center;
    flex: 1;
}

.card-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 3px;
}

.card-stat-label {
    font-size: 0.7rem;
    color: #777;
}

.compact-card.glup {
    border-left: 4px solid var(--primary-color);
}

.compact-card.embotellada {
    border-left: 4px solid #ccc;
}

.compact-card.supermercados {
    border-left: 4px solid #97c1a9;
}

.compact-score-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    text-align: center;
}

.compact-score-range {
    font-size: 1.4rem;
    font-weight: 700;
    color: #777;
    display: flex;
    align-items: baseline;
}

.compact-score-range span {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 3px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.redesigned-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px 6px;
    text-align: center;
}

.redesigned-card .compact-brand {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    text-align: center;
}

.redesigned-card .value-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3px;
}

.redesigned-card .score-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3px;
    display: flex;
    align-items: baseline;
}

.redesigned-card .score-value span {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 3px;
}

.redesigned-card .price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 3px;
}

.redesigned-card .compact-winner {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 10px;
}

.price-value {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.price-label {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 5px;
}

.compact-card.huelva {
    border-left: 4px solid #888;
}

.compact-brand {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1rem;
}

.compact-score {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: baseline;
}

.compact-card.glup .compact-score {
    color: var(--primary-color);
}

.compact-card.fontvella .compact-score {
    color: #777;
}

.compact-card.huelva .compact-score {
    color: #555;
}

.compact-score span {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 3px;
}

.compact-winner {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 10px;
}

/* Features Section */
.features {
    background-color: #f9fbfd;
    border-radius: 20px;
    padding: 60px 0;
    margin-bottom: 80px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px; /* Consistent spacing */
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Horizontal Bar Chart Section */
.horizontal-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 100px;
    padding: 40px 0;
}

.horizontal-chart-container {
    position: relative;
    width: 100%;
    height: 420px;
    padding: 30px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.horizontal-bar-chart {
    height: 320px;
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.h-chart-group {
    display: flex;
    align-items: center;
    height: 90px;
    position: relative;
    width: 100%;
}

.h-attribute-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    width: 100px;
    text-align: right;
    padding-right: 15px;
}

.h-bars-container {
    position: relative;
    flex-grow: 1;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scale-markers {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #777;
}

.scale-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.scale-line::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.scale-marker {
    position: relative;
    width: 1px;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.2);
}

.h-bars-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.h-bar {
    position: relative;
    height: 15px;
    border-radius: 0 8px 8px 0;
    margin: 4px 0;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.h-bar.glup {
    background-color: var(--primary-color);
    background-image: linear-gradient(to right, var(--primary-color), #4aa9ff);
    box-shadow: 0 2px 6px rgba(0, 145, 255, 0.2);
}

.h-bar.huelva {
    background-color: #888;
    background-image: linear-gradient(to right, #888, #aaa);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.h-bar.fontvella {
    background-color: #ccc;
    background-image: linear-gradient(to right, #ccc, #dedede);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.h-bar-label {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

.h-bar-label .brand-name {
    font-weight: 600;
    margin-right: 5px;
}

.h-bar-label .h-value {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: rgba(100, 224, 255, 0.1);
    margin: 0 -10%;
    padding: 80px 10%;
    margin-bottom: 100px;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    color: var(--secondary-color);
    font-weight: 600;
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    background-color: #f9fbfd;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Simple pricing CTA section */
.pricing-cta-button .cta-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.pricing-cta-button .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 145, 255, 0.3);
    background-color: #0085eb;
}

@media (max-width: 768px) {
    .pricing-cta-button .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Enhanced mobile styles for pricing CTA section */
    .pricing-cta-section {
        margin: 40px 0 !important;
        padding: 30px 15px !important;
    }
    
    .pricing-cta-section .section-title {
        font-size: 1.5rem !important;
    }
    
    .pricing-cta-section p {
        font-size: 0.95rem !important;
        padding: 0 10px;
    }
}

.hidden {
    display: none;
}

.conditional-section {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0s ease 0.5s;
}

.conditional-section.active {
    opacity: 1;
    height: auto;
    overflow: visible;
    transition: opacity 0.5s ease;
}

/* Mobile responsive for cards */
@media (max-width: 768px) {
    .minimal-cards {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 30px auto 40px;
    }
    
    .minimal-card {
        padding: 30px 20px;
    }
    
    .step-number {
        font-size: 20px;
    }
    
    .minimal-card h3 {
        font-size: 20px;
        min-height: 50px;
    }
    
    .minimal-card p {
        font-size: 18px;
    }
    
    .ventajas-section {
        padding: 50px 20px;
        margin: 40px 0;
    }
    
    .ventajas-section h2 {
        font-size: 1.7rem;
    }
    
    .value-proposition {
        padding: 25px 20px;
    }
    
    .advantages-list-v3 {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .advantages-list-v3 li {
        font-size: 15px;
    }
    
    .guarantee-compact {
        padding: 15px;
        max-width: 100%;
    }
    
    .guarantee-compact h4 {
        font-size: 1.3rem;
    }
    
    .guarantee-compact p {
        font-size: 15px;
    }
}

/* For desktop: Ensure mobile bullets stay hidden even in active sections */
@media (min-width: 769px) {
    .conditional-section .mobile-bullets {
        display: none !important;
    }
}

/* Ventajas Glup Section */
.ventajas-section {
    background: white;
    padding: 80px 40px;
    margin: 60px 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.ventajas-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.ventajas-section .section-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 500;
}

.value-proposition {
    background: #f8fafc;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.advantages-list-v3 {
    list-style: none;
    max-width: 750px;
    margin: 0 auto 25px;
    text-align: left;
}

.advantages-list-v3 li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 17px;
    color: #555;
    line-height: 1.4;
}

.advantages-list-v3 li::before {
    content: "✓";
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    margin-top: 1px;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}

.guarantee-compact {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 18px;
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.guarantee-compact::before {
    content: "🛡️";
    position: absolute;
    top: -12px;
    left: 20px;
    background: white;
    padding: 0 8px;
    font-size: 1.2rem;
}

.guarantee-compact h4 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.guarantee-compact p {
    color: #666;
    font-size: 17px;
    line-height: 1.5;
    margin: 0;
}

/* Section container for absolute positioning */
.section-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Ensure all conditional sections have identical internal padding and position */
.eleccion-section .conditional-section {
    padding: 20px; /* Consistent padding for all section versions */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
}

/* Simple title highlight with grey box */
.title-highlight {
    position: relative;
    color: var(--primary-color);
    font-weight: 600;
    padding: 2px 8px; /* Slightly more padding */
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05); /* Grey box */
    transition: background-color 0.3s ease;
}

/* Active section title could have slightly darker background if desired */
.conditional-section.active .title-highlight {
    background-color: rgba(0, 0, 0, 0.08);
}

/* Subtitle colors for each section */
.subtitle-default {
    color: #555;
    font-weight: 400;
}

.subtitle-hogar {
    color: var(--primary-color);
    font-weight: 500;
}

.subtitle-empresa {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Grid Comparison Section */
.grid-comparison {
    padding: 80px 0 40px 0;
    margin: 80px 0 80px 0; /* Consistent spacing above and below */
    background-color: #f9fbfd;
    border-radius: 20px;
    position: relative;
    z-index: 5; /* Lower z-index so tooltips can appear on top */
    scroll-margin-top: 100px;
    overflow: visible; /* Allow tooltips to extend beyond the section */
}

.comparison-grid {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    border-collapse: separate; /* Changed to separate for better hover effects */
    border-spacing: 0;
    background: white;
    border-radius: 15px;
    overflow: visible; /* Changed to visible so tooltips aren't cut off */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative; /* Required for absolute positioning inside */
    border: 1px solid rgba(0, 145, 255, 0.1);
}

.comparison-grid .grid-header {
    background-color: var(--secondary-color);
    color: white;
}

.comparison-grid .grid-header th:first-child {
    border-top-left-radius: 15px;
}

.comparison-grid .grid-header th:last-child {
    border-top-right-radius: 15px;
}

.comparison-grid .grid-header th {
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-grid .grid-header th:first-child {
    text-align: left;
    width: 200px;
    background-color: rgba(0, 51, 102, 0.9);
}

.comparison-grid tr:nth-child(even) {
    background-color: rgba(0, 145, 255, 0.03);
}

.comparison-grid tbody tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

.comparison-grid tbody tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

.comparison-grid td {
    padding: 15px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, z-index 0.1s ease;
    overflow: visible;
    border: 1px solid rgba(0, 145, 255, 0.05);
}

/* Highlight data cells on hover (skip first column) */
.comparison-grid td:not(:first-child):hover {
    background-color: rgba(0, 145, 255, 0.05);
    transform: scale(1.03);
    z-index: 10;
    border-color: rgba(0, 145, 255, 0.1);
}

.comparison-grid td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-emoji {
    font-size: 1.2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: rgba(80, 190, 208, 0.1);
    border-radius: 50%;
}

.comparison-grid td .grid-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-grid td .grid-value.glup {
    color: var(--primary-color);
}

.comparison-grid td .grid-value.supermercados {
    color: #777;
}

.comparison-grid td .grid-value.huelva {
    color: #555;
}

.comparison-grid td .winner-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

.comparison-grid td .grid-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9); /* Center in cell with initial scale */
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    width: 300px;
    min-height: 250px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 200; /* Higher z-index to appear above cell */
    pointer-events: none;
    border: 1px solid rgba(0, 145, 255, 0.1);
    margin: 0;
    overflow: visible;
    backdrop-filter: blur(5px);
}

.comparison-grid td:hover .grid-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1); /* Grow to full size on hover */
}

.grid-tooltip-arrow {
    content: '';
    position: absolute;
    bottom: -8px; /* Default position at bottom */
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
    z-index: 10001;
    /* Make arrow more visible with slight shadow */
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Remove the ::after pseudo-element since we're using the arrow element exclusively */
.comparison-grid td .grid-tooltip::after {
    display: none;
}

.comparison-grid td .grid-tooltip .tooltip-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 145, 255, 0.1);
    padding-bottom: 8px;
    text-align: center;
}

.comparison-grid td .grid-tooltip .tooltip-content {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: center;
}

.grid-tooltip-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 145, 255, 0.1);
    padding-top: 12px;
    margin-top: 10px;
}

.grid-tooltip-stat {
    text-align: center;
    flex: 1;
    padding: 0 5px;
}

.grid-tooltip-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.grid-tooltip-stat-label {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.2;
}

/* Client logos section */
.client-logos-container {
    margin-top: 60px;
    width: 100%;
    padding: 20px 0 40px;
    position: relative;
    overflow: hidden; /* Hide overflow to create scrolling effect */
}

.client-heading {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

.client-logos {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 0;
    width: max-content; /* Allow container to be as wide as needed */
    animation: scroll 15s linear infinite;
}

.client-logo {
    height: 50px;
    width: 120px; /* Fixed width for more consistent spacing */
    margin: 0 40px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease;
    flex-shrink: 0;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1px)); /* Ensure perfect loop by adding 1px offset */
    }
}

/* Only the active section should be positioned relative to container */
.eleccion-section .conditional-section.active {
    position: relative;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px;
    border-radius: 20px;
    color: white;
    margin-bottom: 100px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button.large {
    padding: 15px 40px;
    font-size: 1.2rem;
    background-color: white;
    color: var(--primary-color);
}

.cta-button.large:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-content {
    background-color: white;
    width: 95%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-form {
    padding: 20px 30px 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.15);
    outline: none;
}

.phone-input-container {
    display: flex;
}

.phone-input-container select {
    width: 100px;
    border-radius: 6px 0 0 6px;
    border-right: none;
    background-color: #f7f9fc;
}

.phone-input-container input {
    border-radius: 0 6px 6px 0;
    flex: 1;
}

.form-actions {
    margin-top: 30px;
}

.form-submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    background-color: #0085e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 145, 255, 0.3);
}

.form-feedback {
    margin-top: 20px;
    text-align: center;
}

.success-message, .error-message {
    border-radius: 6px;
    padding: 12px;
    font-size: 0.95rem;
    display: none;
}

.success-message {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00a742;
    border: 1px solid rgba(0, 200, 83, 0.2);
}

.error-message {
    background-color: rgba(255, 76, 76, 0.1);
    color: #ff4c4c;
    border: 1px solid rgba(255, 76, 76, 0.2);
}

.form-feedback.success .success-message,
.form-feedback.error .error-message {
    display: block;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 80px 10% 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    max-width: 200px;
}

.footer-logo .logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

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

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Success Checkmark Animation */
.success-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4BB543;
    stroke-miterlimit: 10;
    box-shadow: 0 0 0 #4BB543;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    margin: 0 auto;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4BB543;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4BB54333;
    }
}

/* Specific styles for success view */
#success-view {
    text-align: center;
}

#success-view .modal-header h2 {
    color: #4BB543;
}

.close-success-btn {
    background-color: #4BB543;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-success-btn:hover {
    background-color: #3DA639;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(75, 181, 67, 0.3);
}

/* Flexible Payment Section Styles */
.flexible-payment-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f9fbfd, rgba(80, 190, 208, 0.05));
    border-radius: 20px;
    margin: 80px 0;
}

.flexible-payment-section .section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.flexible-payment-section .flexible-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-pretitle {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Two Cards Layout */
.flexible-payment-section .flexible-cards {
    display: grid;
    max-width: 700px;
    margin: 0 auto 50px;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.flexible-payment-section .flexible-card {
    background: white;
    padding: 25px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.flexible-payment-section .flexible-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.flexible-payment-section .card-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    margin-top: 0;
    font-weight: 600;
}

.flexible-payment-section .card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Company Mission */
.flexible-payment-section .company-mission {
    background: white;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-top: 40px;
    border: 2px solid var(--primary-color);
    position: relative;
}

.flexible-payment-section .mission-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.flexible-payment-section .mission-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    font-style: italic;
}

.flexible-payment-section .statement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 40px auto 60px;
    align-items: center;
    width: 100%;
}

.flexible-payment-section .statement-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 700px;
    position: relative;
}

.flexible-payment-section .statement-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.flexible-payment-section .statement-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(80, 190, 208, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flexible-payment-section .statement-text {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
    flex: 1;
    text-align: left;
    padding-right: 60px;
}

/* Add subtle animation to statements */
.flexible-payment-section .statement-item:nth-child(1) {
    animation: slideIn 0.6s ease-out 0.1s both;
}

.flexible-payment-section .statement-item:nth-child(2) {
    animation: slideIn 0.6s ease-out 0.2s both;
}

.flexible-payment-section .statement-item:nth-child(3) {
    animation: slideIn 0.6s ease-out 0.3s both;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Break out of main-content container on mobile */
    .flexible-payment-section {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        border-radius: 0;
    }
    
    .flexible-payment-section .flexible-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    .section-pretitle {
        font-size: 1.2rem;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }
    
    .flexible-payment-section .statement-list {
        gap: 15px;
        margin: 30px auto 40px;
    }
    
    .flexible-payment-section .statement-item {
        padding: 15px 20px;
        gap: 15px;
    }
    
    .flexible-payment-section .statement-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .flexible-payment-section .statement-text {
        font-size: 1.1rem;
    }
}

/* Dispenser Selection Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dispenser-modal {
    width: 900px;
    max-width: 90vw;
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 32px;
    color: #333;
    text-align: center;
}

.modal-body {
    padding: 40px;
}

.dispenser-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.dispenser-option {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dispenser-option:hover {
    border-color: #4169E1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.2);
}

.dispenser-option.selected {
    border-color: #4169E1;
    background-color: #f0f7ff;
}

.dispenser-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}

.dispenser-option h4 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 15px 0;
}

.dispenser-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.select-dispenser-btn {
    background-color: #4169E1;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.select-dispenser-btn:hover {
    background-color: #3155c7;
}

.dispenser-option.selected .select-dispenser-btn {
    background-color: #28a745;
}

.dispenser-option.selected .select-dispenser-btn:hover {
    background-color: #218838;
}

/* Responsive Design */
@media (max-width: 600px) {
    .dispenser-modal {
        width: 95%;
    }
    
    .dispenser-options {
        grid-template-columns: 1fr;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
}
