:root {
    --color-primary: #F39729;   /* Naranja */
    --color-secondary: #5E318E;  /* Morado */
    --color-accent-1: #A43585;   /* Magenta */
    --color-accent-2: #E35C54;   /* Coral */
    --color-text: #212529;       /* Gris Oscuro */
    --color-background: #FAFAFA; /* Blanco Roto */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --- Mobile First Base Styles --- */

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.container {
    width: 90%;
    margin: 0 auto;
}

/* Header */
.main-header {
    background: var(--color-background);
    padding: 5px 0;
}

.main-header .container {
    display: flex;
    justify-content: center; /* Center logo on mobile */
    align-items: center;
}

.logo img {
    height: 30px;
}



/* Hero Section */
.hero-section {
    background-color: var(--color-background);
    color: var(--color-text);
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-section .container {
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.rotating-hero-icon {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    transform: translate(-50%, -50%);
    opacity: 1; /* Increased opacity */
    z-index: 0;
    animation: spin 20s linear infinite;
}

.hero-section h1 {
    font-family: var(--font-primary);
    font-size: 2.5em;
    margin: 0 0 10px 0;
    /* Color is now handled by spans */
}

.h1-santo {
    color: var(--color-secondary); /* Purple */
}

.h1-sol {
    color: var(--color-primary); /* Orange */
}

.hero-section p {
    font-size: 1.1em;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: white;
}

/* Sections */
.product-section, .benefits-section {
    padding: 50px 0;
    text-align: center;
}

h2 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 2.2em;
    margin-bottom: 25px;
    color: var(--color-secondary);
}

h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Benefits */
.benefit-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.benefit-item i {
    font-size: 3em;
    margin-bottom: 15px;
}

/* Assign accent colors to each benefit icon */
.benefits-grid .benefit-item:nth-child(1) i {
    color: var(--color-accent-1); /* Magenta */
}

.benefits-grid .benefit-item:nth-child(2) i {
    color: var(--color-accent-2); /* Coral */
}

.benefits-grid .benefit-item:nth-child(3) i {
    color: var(--color-primary); /* Orange */
}

.benefit-item:last-child {
    margin-bottom: 0;
}

/* Footer */
.main-footer {
    background-color: #f2f2f2;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 20% auto; 
    padding: 25px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    max-height: 80vh; /* Limit height and enable scrolling */
    overflow-y: auto; /* Add vertical scrollbar when needed */
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content form input {
    width: calc(100% - 22px); /* Account for padding */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-content form button {
    width: 100%;
}

/* Reset hero button margin */
.hero-section .btn {
    margin-bottom: 0;
}

/* --- Image Scroller --- */
.scroller {
    max-width: 90%;
    margin: 0 auto;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller + .scroller {
    margin-top: 0.5rem;
}

.scroller__inner {
    padding-left: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    animation: scroll 20s linear infinite;
}

.scroller[data-direction="right"] .scroller__inner {
    animation-direction: reverse;
}


.scroller__inner li {
    list-style: none;
}

.scroller__inner img {
    height: 100px; /* Consistent height */
    width: auto;
    max-width: none; /* Override any potential max-width: 100% */
    object-fit: contain;
    border-radius: 8px;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem * 6)); /* 50% for the half, and half the gap for each of the 6 items */
    }
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}








/* --- Comparison Section --- */
.comparison-section {
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent-1), var(--color-secondary));
    color: var(--color-background);
    padding: 50px 0;
}

.comparison-section .container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.comparison-card {
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent background */
    padding: 25px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.comparison-card h2 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid;
    padding-bottom: 10px;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.comparison-card .fa-xmark {
    color: var(--color-accent-2); /* Coral */
}

.comparison-card .fa-check {
    color: var(--color-primary); /* Orange */
}

.card-no h2 {
    border-color: var(--color-accent-2);
}

.card-yes h2 {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* --- Slide-in Animation --- */
.slide-in-from-left, .slide-in-from-right {
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide-in-from-left {
    transform: translateX(-50px);
}

.slide-in-from-right {
    transform: translateX(50px) translateY(20px);
}

.slide-in-from-left.is-visible, .slide-in-from-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* --- Contact Form Section --- */
.contact-section {
    background-color: #fff;
    padding: 50px 0;
    text-align: left;
}

.contact-section .container {
    max-width: 800px;
}

.contact-section h2 {
    text-align: center;
}

.contact-section p {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(243, 151, 41, 0.4);
}

.g-recaptcha {
    margin-bottom: 20px;
}

#form-status {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
}


/* --- Tablet and Desktop Styles --- */
@media (min-width: 768px) {
    .container {
        width: 85%;
        max-width: 1100px;
    }

    /* Header */
    .main-header .container {
        justify-content: center;
    }

    

    /* Hero */
    .hero-section {
        padding: 0 20px;
    }

    .scroller__inner img {
        height: 150px;
    }
    
    .hero-section h1 {
        font-size: 4em;
    }

    .rotating-hero-icon{
        width: 300px;
        height: 300px;
        top: 40%;
    }

    /* Benefits */
    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-top: 40px;
    }

    .benefit-item {
        margin-bottom: 0;
    }

    /* Modal */
    .modal-content {
        margin: 15% auto;
        max-width: 900px; /* Increase width for desktop */
    }

    .comparison-section .container {
        flex-wrap: nowrap;
    }
}

/* --- Product Selection in Modal --- */
#product-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.product-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.product-option:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(243, 151, 41, 0.5);
}

.product-option.selected {
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(94, 49, 142, 0.5);
}

.product-option img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.product-option h3 {
    margin: 0;
    font-size: 1.2em;
}

.product-option p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.product-option span {
    margin-left: auto;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--color-primary);
}

.product-option__text {
    flex-grow: 1;
    min-width: 0; /* Prevents overflow in flex items */
}

#purchase-form.hidden {
    display: none;
}

@media (min-width: 768px) {
    #product-selection {
        flex-direction: row;
    }
}