:root {
    --primary: #4E35A3;
    --secondary: #2C7EB9;
    --accent: #1F3D8A;
    --dark: #10162D;
    --light: #F8FAFC;
    --text-light: #E6EDF7;
    --overlay: rgba(30, 45, 90, 0.85);
    --footer-bg: #2D3748;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: var(--dark);
    line-height: 1.6;
    background: #F9FBFF;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 15px rgba(16, 22, 45, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.logo-img {
    max-width: 100%;
    height: auto;
    width: 150px; /* Ajusta el tamaño base del logo */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: white !important;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(78, 53, 163, 0.2);
}

.cta-button:hover {
    background: #3D2982;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(78, 53, 163, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Video Section */
.hero-video {
    margin-top: 100px;
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.search-container {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    margin: 0 auto;
    max-width: 900px;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
}

.search-input {
    padding: 1.2rem 1.5rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(44,126,185,0.2);
    outline: none;
}

/* Nuevos Nutriólogos */
.new-profiles {
    padding: 4rem 1rem;
    background: white;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 3rem;
}

.profiles-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.profile-card {
    text-align: center;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary);
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(44,126,185,0.2);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-name {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.profile-specialty {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.profile-bio {
    color: #64748B;
    font-size: 0.95rem;
}

/* Testimonios */
.testimonials {
    padding: 6rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.testimonial-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--text-light);
    padding: 5rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        flex-direction: column;
        gap: 1.5rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .hero-video {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .logo-img {
        width: 120px; /* Tamaño reducido en pantallas pequeñas */
    }
}

/* Estilos legales */
.legal-container {
    max-width: 900px;
    margin: 100px auto 3rem;
    padding: 2rem;
    color: #333;
    line-height: 1.8;
}

.legal-container h1 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.last-updated {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.legal-container h2 {
    color: var(--dark);
    margin-top: 2.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.legal-container h3 {
    color: var(--secondary);
    margin-top: 1.5rem;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-card {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.cookies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cookie-card {
    padding: 1.5rem;
    border-radius: 8px;
    color: white;
}

.cookie-card.essential { background: var(--primary); }
.cookie-card.analytics { background: var(--secondary); }
.cookie-card.marketing { background: var(--accent); }

.browser-guide {
    margin: 2rem 0;
}

.browser-link {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    background: #F1F5F9;
    border-radius: 6px;
    color: var(--dark);
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.cookies-table th, .cookies-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.contact-card {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.contact-card.security {
    border-left-color: var(--accent);
}

.consent-section {
    background: #F1F5F9;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

.disclaimer {
    background: #FFF8E6;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #FF9F1C;
}
