/* ============================================
   ESTILOS GENERALES - Farma Azteca Grupo
   Paleta de colores:
   - Azul: #1a3a8a
   - Naranja: #f47b20
   - Amarillo: #ffd700
   ============================================ */

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* ============================================
   MENÚ
   ============================================ */
nav {
    background: #1a3a8a;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: #f47b20;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.menu li a:hover,
.menu li a.active {
    border-bottom-color: #f47b20;
    color: #f47b20;
}

/* ============================================
   CARRUSEL
   ============================================ */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slide 15s infinite;
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #0b1b44;
}

@keyframes slide {
    0% { transform: translateX(0); }
    25% { transform: translateX(0); }
    33.33% { transform: translateX(-33.333%); }
    58.33% { transform: translateX(-33.333%); }
    66.66% { transform: translateX(-66.666%); }
    91.66% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.carousel-dot:hover {
    background: #f47b20;
    transform: scale(1.2);
}

/* ============================================
   ENCABEZADO DE PÁGINA (Todas las páginas)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #1a3a8a 0%, #f47b20 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header .container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.page-header h1 span {
    color: #ffd700;
}

.page-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    color: #ffffff;
}

/* ============================================
   QUIENES SOMOS
   ============================================ */
.about {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.about h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #1a3a8a;
    margin-bottom: 0.5rem;
}

.about h2 span {
    color: #f47b20;
}

.about .subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    text-align: center;
    border-top: 4px solid #1a3a8a;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(26, 58, 138, 0.12);
}

.about-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1a3a8a;
}

.about-card h3 {
    color: #1a3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.about-card p {
    color: #555;
    font-size: 0.95rem;
}

.about-card:nth-child(2) {
    border-top-color: #f47b20;
}

.about-card:nth-child(3) {
    border-top-color: #f47b20;
}

/* ============================================
   SERVICIOS - 3 COLUMNAS
   ============================================ */

.services {
    background: #ffffff;
    padding: 4rem 2rem;
}

.services .container {
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #1a3a8a;
    margin-bottom: 0.5rem;
}

.services h2 span {
    color: #f47b20;
}

.services .subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.service-card {
    background: #f8faff;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9edf4;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(244, 123, 32, 0.15);
    border-color: #f47b20;
}

.service-card .icon {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: #1a3a8a;
}

.service-card .icon i {
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .icon i {
    transform: scale(1.15);
    color: #f47b20;
}

.service-card h3 {
    color: #1a3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .services h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 2.5rem 1rem;
    }

    .services h2 {
        font-size: 1.6rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   TESTIMONIOS CON FOTO
   ============================================ */

.testimonials {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.testimonials h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #1a3a8a;
    margin-bottom: 0.5rem;
}

.testimonials h2 span {
    color: #f47b20;
}

.testimonials .subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: #f47b20;
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(26, 58, 138, 0.10);
}

/* ===== FOTO DEL TESTIMONIO ===== */
.testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid #f47b20;
    background: #f0f0f0;
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== ESTRELLAS ===== */
.testimonial-stars {
    color: #f47b20;
    font-size: 1.3rem;
    margin: 0.5rem 0;
    letter-spacing: 2px;
}

/* ===== TEXTO ===== */
.testimonial-card blockquote {
    font-style: italic;
    color: #444;
    font-size: 1rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 700;
    color: #1a3a8a;
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

.testimonial-role {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .testimonial-photo {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 480px) {
    .testimonials h2 {
        font-size: 1.8rem;
    }

    .testimonial-photo {
        width: 55px;
        height: 55px;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}
/* ============================================
   LANDING PAGE
   ============================================ */
.landing {
    background: linear-gradient(135deg, #1a3a8a 0%, #f47b20 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

.landing .container {
    max-width: 800px;
    margin: 0 auto;
}

.landing h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.landing h2 span {
    color: #ffd700;
}

.landing p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.landing-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.landing-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    background: #ffffff;
}

.landing-form input:focus {
    box-shadow: 0 0 0 2px #ffd700;
}

.landing-form button {
    padding: 0.9rem 2.5rem;
    background: #ffd700;
    color: #1a3a8a;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-form button:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.landing .legal-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #0d1b2a;
    color: #b0c4de;
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col h4 span {
    color: #f47b20;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #b0c4de;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #f47b20;
}

.footer-col .social {
    display: flex;
    gap: 1rem;
    font-size: 1.8rem;
}

.footer-col .social a {
    color: #b0c4de;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col .social a:hover {
    color: #f47b20;
}

.footer-col .contact-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #b0c4de;
}

.footer-col .contact-info p {
    margin-bottom: 0.3rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1a2a3a;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #b0c4de;
}

.footer-bottom span {
    color: #f47b20;
}

/* ============================================
   PÁGINAS LEGALES
   ============================================ */
.legal-content {
    padding: 4rem 2rem;
    background: #ffffff;
}

.legal-content .container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-wrapper {
    background: #f8faff;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid #e9edf4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.legal-intro {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9edf4;
}

.legal-intro p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-intro p strong {
    color: #1a3a8a;
}

.legal-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9edf4;
}

.legal-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-block h2 {
    font-size: 1.3rem;
    color: #1a3a8a;
    margin-bottom: 0.8rem;
}

.legal-block h2 i {
    color: #f47b20;
    margin-right: 0.8rem;
}

.legal-block h3 {
    color: #1a3a8a;
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal-block p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.legal-block ul {
    list-style: none;
    padding-left: 2rem;
}

.legal-block ul li {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    padding: 0.2rem 0;
}

.legal-block ul li::before {
    content: "▸ ";
    color: #f47b20;
    font-weight: 700;
}

.legal-block a {
    color: #1a3a8a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-block a:hover {
    color: #f47b20;
    text-decoration: underline;
}

/* ============================================
   BENEFICIOS ZIGZAG (Afilia tu farmacia)
   ============================================ */
.benefits-zigzag {
    padding: 4rem 2rem;
    background: #ffffff;
}

.benefits-zigzag .container {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.benefits-header h2 {
    font-size: 2.5rem;
    color: #1a3a8a;
    margin-bottom: 0.3rem;
}

.benefits-header .benefits-sub {
    font-size: 1.2rem;
    color: #f47b20;
    font-weight: 600;
}

.benefit-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: 16px;
    background: #f8faff;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9edf4;
}

.benefit-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(26, 58, 138, 0.10);
    border-color: #f47b20;
}

.benefit-row:last-child {
    margin-bottom: 0;
}

.benefit-image {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.benefit-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.benefit-row:hover .benefit-image img {
    transform: scale(1.03);
}

.benefit-text {
    flex: 1;
    padding: 1rem;
}

.benefit-text .benefit-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #1a3a8a;
}

.benefit-text h3 {
    font-size: 1.5rem;
    color: #1a3a8a;
    margin-bottom: 0.8rem;
}

.benefit-text p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.benefit-text p strong {
    color: #1a3a8a;
}

.benefit-row.reverse {
    flex-direction: row-reverse;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CTA AFILIACIÓN
   ============================================ */
.cta-afiliacion {
    background: linear-gradient(135deg, #1a3a8a 0%, #f47b20 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-afiliacion .container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-afiliacion .cta-content h2 {
    font-size: 2.6rem;
    margin-bottom: 0.8rem;
}

.cta-afiliacion .cta-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.btn-cta-afiliacion {
    display: inline-block;
    background: #ffd700;
    color: #1a3a8a;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-cta-afiliacion:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

/* ============================================
   SLOGAN "SIEMPRE CERCA DE TI"
   ============================================ */
.slogan-section {
    background: #f8faff;
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 3px solid #f47b20;
}

.slogan-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.slogan-section h2 {
    font-size: 2.5rem;
    color: #1a3a8a;
    margin-bottom: 0.3rem;
}

.slogan-section .slogan-sub {
    font-size: 1.3rem;
    color: #f47b20;
    font-weight: 600;
    margin-bottom: 1rem;
}

.slogan-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* ============================================
   DONDE COMPRAR - FARMACIAS
   ============================================ */
.location-section {
    padding: 4rem 2rem;
}

.location-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.location-section .location-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.location-section .location-header h2 {
    font-size: 2.2rem;
    color: #1a3a8a;
    margin-bottom: 1rem;
}

.location-section .location-header h2 span {
    color: #f47b20;
}

.location-section .location-header p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.cdmx-section {
    background: #ffffff;
}

.edomex-section {
    background: #f5f7fa;
}

.municipio-block {
    margin-top: 3rem;
}

.municipio-block:first-of-type {
    margin-top: 0;
}

.municipio-title {
    font-size: 1.8rem;
    color: #1a3a8a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #f47b20;
    display: inline-block;
}

.pharmacies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pharmacy-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9edf4;
}

.pharmacy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(26, 58, 138, 0.12);
}

.pharmacy-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e9edf4;
}

.pharmacy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.pharmacy-card:hover .pharmacy-image img {
    transform: scale(1.03);
}

.pharmacy-body {
    padding: 1.5rem;
}

.pharmacy-body h3 {
    color: #1a3a8a;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.pharmacy-body p {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #444;
}

.pharmacy-body .label {
    font-weight: 600;
    color: #1a3a8a;
}

.pharmacy-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9edf4;
    text-align: right;
}

.btn-ver-mas {
    display: inline-block;
    background: #1a3a8a;
    color: #ffffff;
    padding: 0.5rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.2s;
}

.btn-ver-mas:hover {
    background: #f47b20;
    transform: scale(1.03);
}

.btn-cta {
    display: inline-block;
    background: #ffd700;
    color: #1a3a8a;
    padding: 0.9rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}

.btn-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.add-municipio {
    margin-top: 3rem;
}

.add-placeholder {
    background: #ffffff;
    border: 2px dashed #d0d7e3;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: border-color 0.3s;
}

.add-placeholder:hover {
    border-color: #f47b20;
}

.add-placeholder .add-icon {
    font-size: 3rem;
    color: #1a3a8a;
    margin-bottom: 0.5rem;
}

.add-placeholder p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.add-placeholder .add-note {
    display: block;
    color: #b0b8c4;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.btn-agregar {
    display: inline-block;
    background: #f47b20;
    color: #ffffff;
    padding: 0.6rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.btn-agregar:hover {
    background: #1a3a8a;
    transform: scale(1.03);
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-section {
    padding: 4rem 2rem;
    background: #ffffff;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form h2 {
    font-size: 2rem;
    color: #1a3a8a;
    margin-bottom: 0.3rem;
}

.contact-form h2 span {
    color: #f47b20;
}

.contact-form > p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.contact-form form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.contact-form .form-group {
    flex: 1;
    min-width: 200px;
}

.contact-form .form-group.full-width {
    width: 100%;
    flex: 1 1 100%;
}

.contact-form .form-group label {
    display: block;
    font-weight: 600;
    color: #1a3a8a;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d0d7e3;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafbfc;
    color: #2c3e50;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    border-color: #f47b20;
    box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.15);
    outline: none;
    background: #ffffff;
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: #1a3a8a;
}

.contact-form .checkbox-group label {
    font-weight: 400;
    color: #555;
    font-size: 0.95rem;
}

.contact-form .checkbox-group label a {
    color: #1a3a8a;
    text-decoration: none;
    font-weight: 600;
}

.contact-form .checkbox-group label a:hover {
    color: #f47b20;
    text-decoration: underline;
}

.contact-form .btn-enviar {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #1a3a8a 0%, #f47b20 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-form .btn-enviar:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(26, 58, 138, 0.25);
}

.contact-info-sidebar {
    background: #f8faff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9edf4;
}

.contact-info-sidebar h3 {
    font-size: 1.6rem;
    color: #1a3a8a;
    margin-bottom: 1.5rem;
}

.contact-info-sidebar h3 span {
    color: #f47b20;
}

.contact-info-sidebar .info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-info-sidebar .info-item:last-child {
    margin-bottom: 0;
}

.contact-info-sidebar .info-icon {
    font-size: 1.8rem;
    color: #1a3a8a;
    min-width: 40px;
    margin-top: 0.2rem;
}

.contact-info-sidebar .info-item h4 {
    color: #1a3a8a;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.contact-info-sidebar .info-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.contact-info-sidebar .info-social {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9edf4;
}

.contact-info-sidebar .info-social h4 {
    color: #1a3a8a;
    margin-bottom: 0.8rem;
}

.contact-info-sidebar .social-links {
    display: flex;
    gap: 1rem;
}

.contact-info-sidebar .social-links a {
    display: inline-block;
    background: #1a3a8a;
    color: #ffffff;
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.contact-info-sidebar .social-links a:hover {
    background: #f47b20;
    transform: scale(1.05);
}

/* ============================================
   MAPA
   ============================================ */
.map-section {
    padding: 4rem 2rem;
    background: #f5f7fa;
}

.map-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-section h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #1a3a8a;
    margin-bottom: 0.3rem;
}

.map-section h2 span {
    color: #f47b20;
}

.map-section .map-subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.map-placeholder {
    background: #ffffff;
    border: 2px dashed #d0d7e3;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content .map-icon {
    font-size: 4rem;
    color: #1a3a8a;
    margin-bottom: 0.5rem;
}

.map-content h3 {
    color: #1a3a8a;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.map-content p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.map-content .map-note {
    display: inline-block;
    background: #f47b20;
    color: #ffffff;
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* ============================================
   BLOG
   ============================================ */
.blog-section {
    padding: 4rem 2rem;
    background: #ffffff;
}

.blog-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.blog-post {
    background: #f8faff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid #e9edf4;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 58, 138, 0.10);
    border-color: #f47b20;
}

.blog-post.featured {
    border-left: 4px solid #f47b20;
}

.post-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e9edf4;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.03);
}

.post-image .post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f47b20;
    color: #ffffff;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.post-meta .post-date {
    color: #7f8c8d;
}

.post-meta .post-author {
    color: #1a3a8a;
    font-weight: 500;
}

.post-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-content h2 a {
    color: #1a3a8a;
    text-decoration: none;
    transition: color 0.3s;
}

.post-content h2 a:hover {
    color: #f47b20;
}

.post-content p {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.btn-leer-mas {
    display: inline-block;
    color: #1a3a8a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.btn-leer-mas:hover {
    color: #f47b20;
}

.btn-leer-mas::after {
    content: " →";
    transition: transform 0.3s;
    display: inline-block;
}

.btn-leer-mas:hover::after {
    transform: translateX(5px);
}

.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #1a3a8a;
    text-decoration: none;
    border: 1px solid #e9edf4;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.pagination a:hover {
    background: #f8faff;
    border-color: #f47b20;
}

.pagination a.active {
    background: #1a3a8a;
    color: #ffffff;
    border-color: #1a3a8a;
}

.pagination a.active:hover {
    background: #f47b20;
    border-color: #f47b20;
}

.pagination a.next {
    padding: 0.5rem 1.5rem;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: #f8faff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9edf4;
}

.sidebar-widget h3 {
    color: #1a3a8a;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f47b20;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid #d0d7e3;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #ffffff;
    transition: border-color 0.3s;
}

.search-form input:focus {
    border-color: #f47b20;
    outline: none;
}

.search-form button {
    padding: 0.7rem 1.2rem;
    background: #1a3a8a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #f47b20;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    color: #555;
    text-decoration: none;
    padding: 0.3rem 0;
    transition: color 0.3s;
    border-bottom: 1px solid #e9edf4;
}

.category-list li a:hover {
    color: #f47b20;
}

.category-list li a span {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 0.8rem;
}

.recent-posts li a {
    display: block;
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
}

.recent-posts li a:hover {
    color: #f47b20;
}

.recent-posts .recent-title {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
}

.recent-posts .recent-date {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.newsletter-widget {
    background: linear-gradient(135deg, #1a3a8a 0%, #f47b20 100%);
    color: #ffffff;
    border: none;
}

.newsletter-widget h3 {
    color: #ffffff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.newsletter-widget p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.newsletter-widget form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.newsletter-widget input {
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
}

.newsletter-widget input:focus {
    outline: none;
}

.newsletter-widget button {
    padding: 0.7rem;
    background: #ffd700;
    color: #1a3a8a;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.newsletter-widget button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ============================================
   FARMACIAS DETALLE
   ============================================ */
.pharmacy-detail {
    padding: 4rem 2rem;
    background: #ffffff;
}

.pharmacy-detail .container {
    max-width: 1200px;
    margin: 0 auto;
}

.detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.detail-info h2 {
    font-size: 2rem;
    color: #1a3a8a;
    margin-bottom: 1.5rem;
}

.detail-item {
    background: #f8faff;
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9edf4;
    margin-bottom: 1.2rem;
    transition: border-color 0.3s;
}

.detail-item:hover {
    border-color: #f47b20;
}

.detail-item .detail-label {
    display: block;
    font-weight: 700;
    color: #1a3a8a;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.detail-item p {
    color: #444;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

.detail-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.btn-mapa {
    display: inline-block;
    background: #1a3a8a;
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    font-size: 0.95rem;
}

.btn-mapa:hover {
    background: #f47b20;
    transform: scale(1.03);
}

.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    font-size: 0.95rem;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: scale(1.03);
}

.btn-volver {
    display: inline-block;
    color: #1a3a8a;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.btn-volver:hover {
    color: #f47b20;
}

/* ============================================
   OFERTAS
   ============================================ */
.flyer-section {
    padding: 4rem 2rem;
    background: #f5f7fa;
}

.flyer-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.flyer-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9edf4;
    transition: transform 0.3s, box-shadow 0.3s;
}

.flyer-single:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(26, 58, 138, 0.12);
}

.flyer-single-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
}

.flyer-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.flyer-single:hover .flyer-single-image img {
    transform: scale(1.03);
}

.flyer-single-content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flyer-single-content h2 {
    font-size: 2.2rem;
    color: #1a3a8a;
    margin-bottom: 0.5rem;
}

.flyer-single-content h2 span {
    color: #f47b20;
}

.flyer-single-content p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.btn-ver-ofertas {
    display: inline-block;
    background: linear-gradient(135deg, #1a3a8a 0%, #f47b20 100%);
    color: #ffffff;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(26, 58, 138, 0.2);
}

.btn-ver-ofertas:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(26, 58, 138, 0.3);
}

.promocion-septiembre {
    padding: 4rem 2rem;
    background: #f5f7fa;
}

.promocion-septiembre .container {
    max-width: 1100px;
    margin: 0 auto;
}

.promocion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e9edf4;
}

.promocion-imagen {
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.promocion-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promocion-texto {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promocion-texto h2 {
    font-size: 2rem;
    color: #1a3a8a;
    margin-bottom: 0.3rem;
}

.promocion-texto h2 span {
    color: #f47b20;
}

.promocion-texto p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.promocion-marca {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.promocion-marca span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a3a8a;
    letter-spacing: 2px;
}

.promocion-marca .destacado {
    color: #f47b20;
    font-size: 2rem;
}

.btn-whatsapp-promo {
    display: inline-block;
    background: #25D366;
    color: #ffffff;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    align-self: flex-start;
}

.btn-whatsapp-promo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.visitanos {
    background: linear-gradient(135deg, #f47b20 0%, #1a3a8a 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: #ffffff;
}

.visitanos .container {
    max-width: 700px;
    margin: 0 auto;
}

.visitanos h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.visitanos h2 span {
    color: #ffd700;
}

.visitanos p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.btn-visitanos {
    display: inline-block;
    background: #ffd700;
    color: #1a3a8a;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-visitanos:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

/* ============================================
   ALIADOS EN FOOTER
   ============================================ */
.aliados-list {
    list-style: none;
}

.aliados-list li {
    margin-bottom: 0.6rem;
}

.aliado-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #b0c4de;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
}

.aliado-link:hover {
    color: #f47b20;
    transform: translateX(4px);
}

.aliado-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-info-sidebar {
        order: -1;
    }
    .blog-wrapper {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .newsletter-widget {
        grid-column: 1 / -1;
    }
    .detail-wrapper {
        grid-template-columns: 1fr;
    }
    .benefit-row {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .benefit-row.reverse {
        flex-direction: column;
    }
    .benefit-image {
        min-width: 100%;
        width: 100%;
    }
    .benefit-image img {
        height: 220px;
    }
    .benefit-text {
        text-align: center;
        padding: 0;
    }
    .promocion-content {
        grid-template-columns: 1fr;
    }
    .flyer-single {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }
    .menu {
        justify-content: center;
        gap: 1.2rem;
    }
    .menu li a {
        font-size: 0.85rem;
    }
    .logo img {
        height: 45px;
    }
    .carousel-container {
        height: 300px;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    .page-header {
        padding: 3rem 1rem;
    }
    .about h2,
    .services h2,
    .testimonials h2 {
        font-size: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-info p {
        justify-content: center;
    }
    .social {
        justify-content: center;
    }
    .aliado-link {
        justify-content: center;
    }
    .aliado-link:hover {
        transform: none;
    }
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    .pharmacies-grid {
        grid-template-columns: 1fr;
    }
    .contact-form .form-row {
        flex-direction: column;
    }
    .contact-form .form-group {
        min-width: 100%;
    }
    .detail-image img {
        height: 300px;
    }
    .promocion-imagen {
        min-height: 200px;
        max-height: 250px;
    }
    .flyer-single-image {
        min-height: 200px;
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.8rem 1rem;
    }
    .menu {
        gap: 0.8rem;
    }
    .menu li a {
        font-size: 0.75rem;
    }
    .logo img {
        height: 35px;
    }
    .carousel-container {
        height: 200px;
    }
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .page-header {
        padding: 2.5rem 1rem;
    }
    .about h2,
    .services h2,
    .testimonials h2 {
        font-size: 1.6rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .landing h2 {
        font-size: 1.6rem;
    }
    .landing-form input {
        min-width: 100%;
    }
    .landing-form button {
        width: 100%;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col .social {
        justify-content: center;
    }
    .footer-col .contact-info {
        text-align: center;
    }
    .footer-col ul {
        text-align: center;
    }
    .footer-col h4 {
        text-align: center;
    }
    .post-image {
        height: 150px;
    }
    .contact-info-sidebar {
        padding: 1.5rem;
    }
    .map-placeholder {
        min-height: 200px;
        padding: 2rem 1rem;
    }
    .detail-image img {
        height: 200px;
    }
    .promocion-texto {
        padding: 1.5rem;
    }
    .promocion-texto h2 {
        font-size: 1.3rem;
    }
    .flyer-single-content {
        padding: 1.5rem;
    }
    .flyer-single-content h2 {
        font-size: 1.3rem;
    }
    .benefit-image img {
        height: 150px;
    }
    .benefit-text h3 {
        font-size: 1.1rem;
    }
}
/* ============================================
   MENÚ HAMBURGUESA - SLIDE-IN IZQUIERDA
   ============================================ */

/* ===== BOTÓN HAMBURGUESA - OCULTO EN PC ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== ANIMACIÓN DEL HAMBURGUESA (CUANDO ESTÁ ABIERTO) ===== */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== MENÚ EN PC - HORIZONTAL ===== */
@media (min-width: 769px) {
    .menu {
        display: flex !important;
        flex-direction: row;
        gap: 2rem;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
        width: auto;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }

    .menu li {
        width: auto;
        border-bottom: none;
        padding: 0;
    }

    .menu li a {
        display: inline-block;
        padding: 0.5rem 0;
        border-bottom: 3px solid transparent;
    }

    .menu li a:hover {
        background: transparent;
    }
}

/* ===== MENÚ EN MÓVIL - SLIDE-IN DESDE IZQUIERDA ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .menu {
        display: flex !important;
        flex-direction: column;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background: #1a3a8a;
        padding: 2rem 1.5rem;
        position: fixed;
        top: 0;
        left: 0;
        box-shadow: 4px 0 24px rgba(0,0,0,0.3);
        gap: 0.5rem;
        z-index: 1000;
        transform: translateX(-110%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
    }

    .menu.active {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
    }

    /* ===== OVERLAY (fondo oscuro al abrir menú) ===== */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .menu li {
        width: 100%;
        text-align: left;
        padding: 0.3rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .menu li:last-child {
        border-bottom: none;
    }

    .menu li a {
        display: block;
        padding: 0.8rem 1rem;
        font-size: 1.1rem;
        border-bottom: none;
        transition: background 0.3s, padding-left 0.3s;
        border-radius: 8px;
        color: #ffffff;
        font-weight: 500;
    }

    .menu li a:hover {
        background: rgba(244, 123, 32, 0.2);
        color: #f47b20;
        padding-left: 1.5rem;
    }

    .menu li a.active {
        background: rgba(244, 123, 32, 0.15);
        color: #f47b20;
        border-left: 4px solid #f47b20;
    }

    /* ===== LOGO EN EL MENÚ (opcional) ===== */
    .menu .menu-logo {
        display: block;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid rgba(255,255,255,0.1);
    }

    .menu .menu-logo img {
        height: 40px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .menu {
        width: 260px;
        max-width: 85%;
        padding: 1.5rem 1.2rem;
    }

    .menu li a {
        font-size: 1rem;
        padding: 0.7rem 0.8rem;
    }
}
