/* ==========================================
   FEMACAL SA - Estilos Globales
   ========================================== */

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

:root {
    /* Colores de Marca FEMACAL - Basados en el logo oficial */
    --color-primary-green: #1d5d3c;
    /* Verde bosque del logo */
    --color-dark-green: #134428;
    /* Verde oscuro más profundo */
    --color-bright-green: #2b7a4a;
    /* Verde medio del logo */
    --color-yellow: #d4af37;
    /* Dorado del logo "FEMACAL" */
    --color-yellow-dark: #c4a036;
    /* Dorado más oscuro */
    --color-red: #c83c31;
    /* Rojo de la manzana */
    --color-orange: #ff6b35;
    /* Naranja acento */

    /* Gradientes con colores del logo */
    --gradient-primary: linear-gradient(135deg, #1d5d3c 0%, #2b7a4a 50%, #3a9658 100%);
    --gradient-accent: linear-gradient(45deg, #d4af37 0%, #c4a036 100%);

    /* Sombras */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 50px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* ==========================================
   HEADER Y NAVEGACIÓN
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    height: 110px;
    width: auto;
    max-width: 700px;
    transition: all 0.3s ease;
}

.header.scrolled .logo {
    height: 85px;
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    right: 2rem;
    top: 1.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary-green);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ==========================================
   SECCIONES GENERALES
   ========================================== */

.main-content {
    margin-top: 160px;
    min-height: calc(100vh - 160px);
}

.section {
    padding: 100px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    padding: 60px 2rem 50px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    margin-top: 140px;
}

/* ==========================================
   PAGE HEADER (Simple title section)
   ========================================== */

.page-header {
    padding: 80px 2rem 60px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    text-align: center;
    margin-top: 140px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-yellow);
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}


.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--color-primary-green);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   VIDEO CONTAINER
   ========================================== */

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   ABOUT CONTENT
   ========================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--color-primary-green);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    box-shadow: var(--shadow-medium);
}

/* ==========================================
   FEATURES
   ========================================== */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary-green);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* ==========================================
   MAP CONTAINER
   ========================================== */

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 500px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.address-info {
    max-width: 800px;
    margin: 3rem auto 0;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.address-info h3 {
    color: var(--color-primary-green);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.address-info p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* ==========================================
   LOCALES GRID
   ========================================== */

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

.local-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.local-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.local-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.local-content {
    padding: 2rem;
}

.local-content h3 {
    color: var(--color-primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.local-content p {
    color: #666;
    line-height: 1.7;
}

/* ==========================================
   HORARIOS
   ========================================== */

.horarios-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.horario-item {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.horario-item:last-child {
    border-bottom: none;
}

.horario-item:hover {
    padding-left: 1rem;
    background: rgba(76, 175, 80, 0.05);
}

.horario-day {
    font-weight: 700;
    color: var(--color-primary-green);
    font-size: 1.2rem;
}

.horario-time {
    color: #555;
    font-size: 1.2rem;
    font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--color-dark-green);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-yellow);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-yellow);
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link svg {
    width: 30px;
    height: 30px;
    fill: white;
    display: block;
}

.social-link:hover svg {
    fill: var(--color-yellow);
}



.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

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

    .nav-menu {
        position: fixed;
        top: 140px;
        right: -100%;
        width: 280px;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        height: calc(100vh - 140px);
        overflow-y: auto;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .section-title {
        font-size: 2.3rem;
    }

    .section {
        padding: 60px 1.5rem;
    }

    .logo {
        height: 70px;
    }

    .header.scrolled .logo {
        height: 55px;
    }

    .logo {
        height: 90px;
    }

    .header.scrolled .logo {
        height: 70px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 50px 1.5rem 40px;
        margin-top: 120px;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .horarios-container {
        padding: 2rem;
    }

    .horario-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo {
        height: 80px;
        max-width: 95%;
    }

    .header.scrolled .logo {
        height: 65px;
    }

    .nav-container {
        padding: 1rem 1.5rem 0.8rem;
        gap: 0.8rem;
    }

    .nav-menu {
        top: 120px;
        height: calc(100vh - 120px);
    }

    .main-content {
        margin-top: 140px;
    }
}

/* ==========================================
   IMAGE CAROUSEL
   ========================================== */

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #f5f5f5;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-yellow);
    width: 30px;
    border-radius: 5px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
}