/* ========================================================= */
/* GUÍA DE IMÁGENES RECOMENDADAS PARA EL PROYECTO           */
/* ========================================================= */
/* 
   1. hero-doctor.jpg:
      - Carpeta: images/
      - Tamaño recomendado: 800 x 600 px (Horizontal)
      
   2. medico-1.jpg, medico-2.jpg, medico-3.jpg:
      - Carpeta: images/
      - Tamaño recomendado: 500 x 500 px (Cuadrado / Retrato)

   3. about-team.jpg:
      - Carpeta: images/
      - Tamaño recomendado: 800 x 600 px (Horizontal)

   4. logo.png:
      - Carpeta: images/
      - Tamaño recomendado: 200 x 200 px (PNG transparente con logo/favicon)
*/

:root {
    --primary-color: #0284c7;
    --primary-dark: #0369a1;
    --accent-color: #10b981;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --border-color: #cbd5e1;
}

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

body {
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

/* Header / Navbar */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.btn-cta-nav {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 10rem 2rem 5rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
}

.hero-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: transform 0.2s;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-title p {
    color: #64748b;
    font-size: 1.1rem;
}

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

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-color);
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Team Section */
.team-section {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background: var(--light-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    text-align: center;
    padding-bottom: 2rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

.team-card h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.2rem;
}

.team-role {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-card p {
    font-size: 0.9rem;
    color: #64748b;
    padding: 0 1.5rem;
}

/* About Us Section */
.about {
    background-color: var(--light-color);
    padding: 6rem 2rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.about-content h2 {
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.about-content p {
    color: #475569;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.features-list i {
    color: var(--accent-color);
}

/* EDENT Contact Section */
.edent-contact-section {
    background-color: #0b1329;
    color: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
}

.edent-contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.edent-contact-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.edent-contact-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 3.5rem;
}

.edent-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.edent-contact-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    transition: background-color 0.3s, border-color 0.3s;
    overflow: hidden; /* Prevent overflow */
}

.edent-contact-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.edent-contact-card i {
    font-size: 1.8rem;
    color: #38bdf8;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.edent-contact-card div {
    min-width: 0; /* Enable text truncation/wrapping inside flex child */
    flex: 1;
}

.edent-contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.edent-contact-card p {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
    word-break: break-word; /* Fix email overflow */
    overflow-wrap: break-word;
}

.edent-contact-card small {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.edent-socials-wrapper h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.edent-social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.edent-social-btn {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s, border-color 0.3s;
}

.edent-social-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Citas Page Styles */
.citas-section {
    padding: 9rem 1rem 5rem;
    max-width: 750px;
    margin: 0 auto;
}

.citas-header-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.citas-header-title h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.citas-header-title p {
    color: #64748b;
    font-size: 0.95rem;
}

.citas-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.form-group-section h3 {
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 1rem;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-box.full-width {
    width: 100%;
}

.input-box label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.input-box input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    background-color: #fff;
}

.input-box input:focus {
    border-color: var(--primary-color);
}

.day-label {
    font-size: 0.9rem;
    color: #475569;
    margin-top: 0.2rem;
    font-weight: 500;
    text-transform: capitalize;
}

.schedule-notice {
    background-color: #f1f5f9;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #475569;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.schedule-notice i {
    color: var(--primary-color);
    margin-top: 2px;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}

.hour-btn {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.hour-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hour-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(2, 132, 199, 0.3);
}

.selected-time-display {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 600;
    margin-top: 0.5rem;
}

.selected-time-display span {
    color: var(--primary-color);
}

.summary-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.summary-box h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.summary-box p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.4rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-volver {
    background-color: #ffffff;
    color: #334155;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.8rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    text-align: center;
}

.btn-volver:hover {
    background-color: #f1f5f9;
}

.btn-whatsapp {
    background-color: #0f172a;
    color: white;
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-whatsapp i {
    color: #25d366;
    font-size: 1.2rem;
}

.btn-whatsapp:hover {
    background-color: #1e293b;
}

/* Footer */
footer {
    background-color: #0b1120;
    color: #94a3b8;
    padding: 3rem 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container, .about-container, .footer-container, .form-grid, .edent-cards-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.3rem;
    }
    .nav-links {
        display: none;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hours-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .form-actions {
        flex-direction: column-reverse;
    }
    .edent-contact-card {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    .btn-volver, .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
    .footer-nav {
        justify-content: center;
    }
}

/* ========================================================= */
/* SECCIÓN CORPORATIVA / EMPRESAS (B2B)                      */
/* ========================================================= */
.corporate-section {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.corporate-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.corporate-content h2 {
    font-size: 2.3rem;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.corporate-content p {
    color: #475569;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.corporate-box-highlight {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.2);
    text-align: center;
}

.corporate-box-highlight i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #38bdf8;
}

.corporate-box-highlight h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.corporate-box-highlight p {
    color: #f1f5f9;
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================================= */
/* SECCIÓN DE TESTIMONIOS                                    */
/* ========================================================= */
.testimonials-section {
    padding: 6rem 2rem;
    background-color: #f8fafc;
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .stars {
    color: #f59e0b;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    display: flex;
    gap: 4px;
}

.testimonial-card p {
    color: #334155;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.client-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ========================================================= */
/* SECCIÓN DE PREGUNTAS FRECUENTES (FAQ)                     */
/* ========================================================= */
.faq-section {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 12px;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-item h3 {
    font-size: 1.15rem;
    color: var(--dark-color);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.faq-item p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .corporate-container {
        grid-template-columns: 1fr;
    }
}

/* ========================================================= */
/* ESTILO NUEVO FAQ - TARJETAS MODERNAS DE DOS COLUMNAS      */
/* ========================================================= */
.faq-section-modern {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.faq-grid-modern {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.faq-card-modern {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.faq-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.08);
    border-color: var(--primary-color);
}

.faq-icon {
    background-color: rgba(2, 132, 199, 0.1);
    color: var(--primary-color);
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.faq-content-mod h3 {
    font-size: 1.15rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-content-mod p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .faq-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* Remove underlines completely from edent-contact-card links and text */
.edent-contact-card,
.edent-contact-card:link,
.edent-contact-card:visited,
.edent-contact-card:hover,
.edent-contact-card:active {
    text-decoration: none !important;
}

.edent-contact-card * {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* ========================================================= */
/* MENÚ HAMBURGUESA Y CAJÓN DESLIZABLE (DRAWER LATERAL)      */
/* ========================================================= */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.4rem;
}

/* Estilos del cajón lateral que se desliza de derecha a izquierda */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    z-index: 1002;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #f1f5f9;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.close-drawer:hover {
    color: var(--primary-color);
}

.drawer-links {
    list-style: none;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.drawer-links li {
    border-bottom: 1px solid #f1f5f9;
}

.drawer-links a {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.drawer-links a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.drawer-btn-cta {
    background-color: var(--primary-color) !important;
    color: white !important;
    text-align: center;
    margin: 2rem 2rem 0 2rem;
    border-radius: 8px;
    padding: 1rem !important;
    font-weight: 600 !important;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .desktop-menu {
        display: none !important;
    }
}

/* ========================================================= */
/* MENÚ HAMBURGUESA Y CAJÓN DESLIZABLE (DRAWER LATERAL)      */
/* ========================================================= */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.4rem;
}

/* Estilos del cajón lateral que se desliza de derecha a izquierda */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    z-index: 1002;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #f1f5f9;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.close-drawer:hover {
    color: var(--primary-color);
}

.drawer-links {
    list-style: none;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.drawer-links li {
    border-bottom: 1px solid #f1f5f9;
}

.drawer-links a {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.drawer-links a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.drawer-btn-cta {
    background-color: var(--primary-color) !important;
    color: white !important;
    text-align: center;
    margin: 2rem 2rem 0 2rem;
    border-radius: 8px;
    padding: 1rem !important;
    font-weight: 600 !important;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block !important;
    }

    .desktop-menu {
        display: none !important;
    }
}

/* ========================================================= */
/* CORRECCIÓN DE ANCHO MÓVIL Y POSICIÓN DEL MENÚ HAMBURGUESA */
/* ========================================================= */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: block !important; /* Visible en todo momento en móviles y tablets */
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.4rem;
    margin-left: auto; /* Empuja el icono hacia la derecha correctamente */
}

.desktop-menu {
    display: none !important; /* Oculta el menú horizontal para usar el cajón deslizable */
}

/* ========================================================= */
/* CORRECCIÓN DE DISEÑO DEL FOOTER EN MÓVIL                  */
/* ========================================================= */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column !important;
        gap: 1.5rem;
        text-align: center !important;
    }
    
    .footer-nav {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 1rem !important;
    }
}

/* ========================================================= */
/* CORRECCIÓN DEFINITIVA DE NAVEGACIÓN (PC vs MÓVIL)         */
/* ========================================================= */

.menu-toggle {
    display: none !important; /* Oculto por defecto en ordenadores y laptops */
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.4rem;
}

.nav-links {
    display: flex !important; /* Visible por defecto en ordenadores (como Imagen 2) */
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Estilos del cajón lateral que se desliza solo en móviles */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    z-index: 1002;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #f1f5f9;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.close-drawer:hover {
    color: var(--primary-color);
}

.drawer-links {
    list-style: none;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.drawer-links li {
    border-bottom: 1px solid #f1f5f9;
}

.drawer-links a {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.drawer-links a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.drawer-btn-cta {
    background-color: var(--primary-color) !important;
    color: white !important;
    text-align: center;
    margin: 2rem 2rem 0 2rem;
    border-radius: 8px;
    padding: 1rem !important;
    font-weight: 600 !important;
}

/* Regla estricta para pantallas móviles (ancho menor o igual a 900px) */
@media (max-width: 900px) {
    .menu-toggle {
        display: block !important; /* Muestra las 3 líneas solo en celulares/tablets */
    }

    .nav-links {
        display: none !important; /* Oculta el menú horizontal en celulares */
    }
}
