/* Root Variables */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --accent-color: #ff6b35;
    --text-dark: #222222;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dddddd;
    --success-color: #27ae60;
    --font-sans: 'Segoe UI', Tahoma, Geneva, sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 100px 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.cta-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Section Base */
.section {
    padding: 80px 2rem;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background-color: var(--bg-white);
}

.about p {
    margin-bottom: 1.5rem;
}

/* Ventajas Section */
.ventajas {
    background-color: var(--bg-light);
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ventaja-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ventaja-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.ventaja-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ventaja-card p {
    color: var(--text-light);
}

/* Recursos Section */
.recursos {
    background-color: var(--bg-white);
}

.articulos-list {
    display: grid;
    gap: 2rem;
}

.articulo {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.articulo:hover {
    background-color: #f0f2f5;
}

.articulo h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.articulo p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Testimonios Section */
.testimonios {
    background-color: var(--bg-light);
}

.testimonios-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonio {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonio-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonio-autor {
    font-weight: 600;
    color: var(--primary-color);
}

/* FAQ Section */
.faq {
    background-color: var(--bg-white);
}

.faq-list {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.faq-question {
    color: var(--primary-color);
    margin-bottom: 1rem;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
}

/* Contacto Section */
.contacto {
    background-color: var(--bg-light);
}

.contacto p {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.hidden {
    display: none;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-group.checkbox label {
    margin: 0;
    font-weight: 400;
}

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

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.contact-info {
    text-align: center;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 3rem 2rem;
    text-align: center;
}

.newsletter h3 {
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-sans);
}

.newsletter-form button {
    padding: 0.75rem 2rem;
    background-color: var(--accent-color);
    color: var(--bg-white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #ff5520;
    transform: translateY(-2px);
}

/* Wellness Notice */
.wellness-notice {
    background-color: var(--bg-light);
    padding: 3rem 2rem;
}

.wellness-notice h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.wellness-notice p {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section small {
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: var(--bg-white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 2000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cookie-content a {
    color: var(--primary-color);
}

.cookie-btn {
    background-color: var(--success-color);
    color: var(--bg-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    background-color: #229954;
    transform: translateY(-2px);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 60px 1rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 40px 1rem;
    }

    .ventajas-grid,
    .testimonios-list {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
        height: auto;
        flex-wrap: wrap;
    }

    .nav-menu {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .section {
        padding: 30px 1rem;
    }

    .hero {
        padding: 40px 1rem;
    }

    .cta-btn,
    .submit-btn {
        padding: 0.75rem 1.5rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
}
