/* ================= RESET BÁSICO ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= VARIABLES ================= */
:root {
    --orange-primary: #E67E22;
    --dark-orange: #D35400;
    --gray-l: #ECF0F1;
    --gray-m: #BDC3C7;
    --gray-d: #7F8C8D;
    --gray-dd: #2C3E50;
    --green-primary: #27AE60;
    --dark-green: #219653;
    --pastel-blue: #AED6F1;
    --pastel-pink: #ffffff;
    --pastel-yellow: #FDEBD0;
    --pastel-green: #D5F5E3;
    --white: #ffffff;
    --black: #333333;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================= BODY ================= */
body {
    font-family: var(--font-primary);
    color: var(--black);
    background-color: var(--gray-l);
    line-height: 1.6;
}

/* ================= CAROUSEL PRINCIPAL ================= */
.carousel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--white) !important;
    border-radius: 2rem;
    padding: 2rem 3rem;
    margin: 2rem;
    min-height: 260px;
    gap: 3rem;
}

.carousel-images {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-images img {
    display: none;
    max-width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.carousel-images img.active {
    display: block;
}

.carousel-content {
    flex: 1;
    display: flex;
    align-items: center;
    height: 250px;
    padding-left: 2rem;
}

.carousel-content h1 {
    font-size: 2rem;
    font-weight: 500;
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 1px;
    color: var(--black); /* Texto en negro */
}


.carousel-nav {
    cursor: pointer;
    color: var(--orange-primary);
    font-size: 2.5rem;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background 0.2s;
}

.carousel-nav:hover {
    background-color: var(--white) !important;
}

.nav-left { margin-right: 1rem; }
.nav-right { margin-left: 1rem; }

.imagen-ocuilan-p {
    text-align: center;
}

/* ================= SECCIÓN DE INFORMACIÓN ================= */
.feature-section {
    text-align: center;
    padding: 50px 20px;
    width: 100%;
}

.feature-section .section-title h2 {
    font-size: 2rem;
    color: var(--gray-dd);
    margin-bottom: 2rem;
}

/* ================= SECCIÓN DE EMERGENCIA ================= */
.emergency-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    margin: 3rem auto;
    max-width: 900px;
}

/* Caja fija naranja */
.emergency-box.orange {
    background-color: var(--orange-primary);
    color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    flex: 1 1 350px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.emergency-box.orange span {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Carrusel gris */
.emergency-carousel {
    position: relative;
    flex: 1 1 500px;
    background: #f1f1f1;
    color: #000;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Elementos del carrusel */
.emergency-carousel .carousel-item {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.emergency-carousel .carousel-item.active {
    display: flex;
}

.emergency-carousel h3 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.emergency-carousel .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--orange-primary);
}

/* Flechas del carrusel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 2px solid #ccc;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-control i {
    color: var(--orange-primary);
    font-size: 1.2rem;
}

.carousel-control:hover {
    background-color: var(--orange-primary);
    border-color: var(--orange-primary);
}

.carousel-control:hover i {
    color: #fff;
}

.carousel-control.prev { left: 1rem; }
.carousel-control.next { right: 1rem; }

/* ================= ACCESOS DIRECTOS ================= */
.quick-links-section {
    text-align: center;
    margin: 3rem auto;
    max-width: 1100px;
    padding: 2rem;
}

.quick-links-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--gray-dd);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.quick-link-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quick-link-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--orange-primary);
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ================= RESPONSIVO ================= */
@media (max-width: 1024px) {
    .emergency-section {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Carousel principal vertical */
    .carousel {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        min-height: auto;
    }

    .carousel-content {
        padding-left: 0;
        text-align: center;
        height: auto;
    }

    .carousel-content h1 {
        font-size: 1.6rem;
    }

    .carousel-images img {
        border-radius: 1rem;
    }

    /* Emergency Section apilada */
    .emergency-section {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .emergency-box.orange,
    .emergency-carousel {
        flex: 1 1 100%;
        width: 100%;
    }

    /* Quick Links más compactos */
    .quick-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-content h1 {
        font-size: 1.4rem;
    }

    .carousel-nav {
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .emergency-carousel .number {
        font-size: 2rem;
    }
}
