/* ==========================================
   css/instalaciones.css
   Estilos base para la página de Instalaciones
   ========================================== */

/* ==========================================
   1. ENVOLTORIO CENTRAL (MÁRGENES UNIFICADOS)
   ========================================== */
body {
    background-color: #ffffff;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el contenido en pantallas ultra anchas */
}
nav {
    width: 80%;
    background-color: var(--azul-nav);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10%; 
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 5px 10px;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--dorado);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
}

.page-wrapper {
    width: 100%;
    max-width: 1200px; /* Evita que el contenido se estire infinitamente */
    padding: 40px 10%; /* Mismo margen libre a los costados que Nosotros */
    display: flex;
    flex-direction: column;
    gap: 50px; /* Ritmo y separación constante entre bloques */
    box-sizing: border-box;
}

.section-padding {
    padding: 10px 0;
    width: 100%;
}

.bg-light {
    background-color: #f9f9f9;
    padding: 40px 5%;
    border-radius: 16px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
    width: 100%;
    box-sizing: border-box;
}

.title-guinda {
    font-size: 50px; /* Sincronizado con los títulos principales del sitio */
    color: var(--guinda);
    font-weight: bold;
    margin-bottom: 25px;
    text-align: left;
}

/* ==========================================
   2. COMPONENTES: CARRUSEL MULTI-INSTANCIA
   ========================================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Utiliza el ancho completo del contenedor alineado */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    border: 4px solid var(--dorado);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.carousel-slide {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    height: 480px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(13, 27, 51, 0.9) 30%, rgba(13, 27, 51, 0));
    color: white;
    padding: 35px 25px 20px 25px;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Botones de control de los carruseles */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(139, 35, 35, 0.85);
    border: 2px solid var(--dorado);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--azul-oscuro);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* ==========================================
   3. COMPONENTES: GRID DE TALLERES
   ========================================== */
.talleres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 15px;
    width: 100%;
}

.taller-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    text-align: center;
    transition: transform 0.3s ease;
}

.taller-card:hover {
    transform: translateY(-5px);
}

.taller-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.taller-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.taller-card p {
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--azul-oscuro);
}

/* ==========================================
   4. COMPONENTES: INNOVACIÓN
   ========================================== */
.innovacion-container {
    display: flex;
    gap: 30px;
    width: 100%;
}

.innovacion-item {
    flex: 1;
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border: 3px solid var(--azul-oscuro);
}

.innovacion-img {
    width: 100%;
    height: 100%;
}

.innovacion-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.innovacion-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--guinda);
    color: white;
    padding: 8px 18px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    border-left: 4px solid var(--dorado);
}
footer {
    background: var(--azul-oscuro);
    color: white;
    padding: 60px 10% 20px 10%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 15px;
}

.school-tagline {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--dorado);
    margin-bottom: 20px;
}

.footer-col h3 {
    color: var(--dorado);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--dorado);
    margin-top: 5px;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.social-icons a {
    color: white;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--dorado);
}