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

/* ==================== RESET Y BASE ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --accent-color: #667eea;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== CONTENEDOR PRINCIPAL ==================== */
.container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-white);
    min-height: 100vh;
    position: relative;
    padding-bottom: 40px;
}

/* ==================== BUTTONS (FLAT DESIGN) ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    width: 100%;
    margin-top: 16px;
}

.btn-primary {
    background-color: var(--whatsapp-green);
    color: white;
}

.btn-primary:hover {
    background-color: var(--whatsapp-dark);
}

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

.btn-secondary:hover {
    background-color: #5a6fd6;
}

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

.btn-outline:hover {
    background-color: rgba(37, 211, 102, 0.1);
}

/* ==================== HEADER ==================== */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-dark);
}

.hero-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.5;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    display: block;
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 30px 24px;
    background: var(--bg-light);
}

.stat-item {
    text-align: center;
    background: var(--bg-white);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--whatsapp-green);
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    padding: 40px 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    text-align: center;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(37, 211, 102, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--whatsapp-green);
    font-size: 20px;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ==================== IMAGE GALLERY ==================== */
.image-gallery {
    padding: 30px 24px;
    background-color: var(--bg-light);
}

.gallery-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.gallery-item img:hover {
    opacity: 0.9;
}

/* ==================== BENEFITS SECTION ==================== */
.benefits-section {
    padding: 40px 24px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.benefit-item {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.benefit-icon {
    font-size: 28px;
    color: var(--whatsapp-green);
    margin-bottom: 12px;
}

.benefit-text {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 50px 24px;
    background-color: var(--bg-white);
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.cta-content {
    margin-bottom: 30px;
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cta-subtitle {
    font-size: 14px;
    color: var(--text-gray);
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: var(--whatsapp-green);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.whatsapp-button:hover {
    background-color: var(--whatsapp-dark);
}

.whatsapp-button i {
    font-size: 24px;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
}

.cta-benefits li i {
    color: var(--whatsapp-green);
    font-size: 16px;
}

/* ==================== FOOTER ==================== */
.footer-section {
    padding: 40px 24px 32px;
    background: var(--bg-light);
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.footer-disclaimer {
    background: var(--bg-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 28px;
    text-align: left;
}

.disclaimer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.disclaimer-title i {
    color: var(--accent-color);
    font-size: 14px;
}

.disclaimer-text {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.7;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-link {
    font-size: 13px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-sep {
    color: #ccc;
    margin: 0 12px;
    font-size: 13px;
}

.footer-copy {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== LOADING STATE ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--whatsapp-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== LEGAL PAGES ==================== */
.legal-section {
    padding: 40px 24px;
}

.legal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.legal-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 28px;
}

.legal-card {
    background: var(--bg-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.legal-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.legal-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

.legal-text + .legal-text {
    margin-top: 12px;
}

.legal-subheading {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.legal-list li {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.legal-list li::before {
    content: "\2022";
    position: absolute;
    left: 6px;
    color: var(--accent-color);
    font-weight: bold;
}

.cookie-table-wrap {
    overflow-x: auto;
    margin: 12px 0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--text-gray);
}

.cookie-table th {
    background: var(--bg-light);
    font-weight: 700;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    color: var(--text-dark);
}

.cookie-table td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
}

.legal-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.legal-link:hover {
    text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item img {
        height: 110px;
    }
}
