/* ==================================== */
/* 1. RESET Y CONFIGURACIÓN GENERAL */
/* ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
}

/* Contenedor principal con Scroll Snap */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;

    scroll-snap-type: y mandatory; /* El ajuste es obligatorio */
}

/* Base de cada sección */
.section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start; /* Se alinea al inicio del viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; /* Oculta elementos fuera de la vista antes de la animación */
    padding: 20px;
    transition: background-color 0.5s;
}

/* Colores de ejemplo (Ajustar según la marca) */
.bg-dark { background-color: #2c3e50; color: white; }
.bg-light { background-color: #ecf0f1; color: #2c3e50; }
.bg-medium { background-color: #3498db; color: white; }
.bg-darker { background-color: #1a242f; color: white; }
.bg-light-soft { background-color: #f4f6f7; color: #2c3e50; }
.bg-medium-soft { background-color: #bdc3c7; color: #2c3e50; }


/* ==================================== */
/* 2. NAVBAR Y BOTÓN COTIZAR */
/* ==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(44, 62, 80, 0.9);
}
.navbar nav {
    display: flex;
    align-items: center;   
    gap: 20px;
    z-index: 1000;
    padding: 20px;
    
}
.navbar nav a {
    color: white;
    display: flex;         
    align-items: center;   
    height: 60px;         
    padding: 0 12px;
    text-decoration: none;
}
.navbar nav a.logo {
    padding: 0;           
}
.navbar nav a.logo img {
    height: 40px;         
    width: auto;
    display: block;
}
.navbar a:hover {
    color: #3498db;
    transform: scale(1.05);
}
.btn-cotizar {
    background: #e74c3c;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    animation: pulse 2s infinite; 
}
.menu-toggle {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}
.menu {
    display: flex;
    gap: 20px;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* ==================================== */
/* 3. CLASES DE ANIMACIÓN (ESTADO INICIAL) */
/* ==================================== */
/* Todos los elementos animables inician ocultos */
.animable {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Animaciones específicas (estado oculto) */
.slide-right-h2 { transform: translateX(100%); position: absolute; right: 10%; }
.slide-left-h2 { transform: translateX(-100%); position: absolute; left: 10%; }
.slide-up-p { transform: translateY(50px); }
.slide-left-img { transform: translateX(-100px); }
.slide-right-img { transform: translateX(100px); }
.fade-in-h2 { transform: translateY(-20px); }
.slide-down-h2-right { transform: translateY(-100%) translateX(10%); position: absolute; top: 10%; right: 10%; }
.slide-left-h2-top { transform: translateY(-100%) translateX(-10%); position: absolute; top: 10%; left: 10%; }


/* ==================================== */
/* 4. CLASES DE ANIMACIÓN (ESTADO VISIBLE) */
/* ==================================== */
/* Esta clase es añadida por animaciones.js para disparar el efecto */
.animable.visible {
    opacity: 1;
    transform: none;
}
/* La transición ya está definida en .animable, solo es necesario aplicar 'visible' */


/* ==================================== */
/* 5. SECCIONES ESPECÍFICAS Y EFECTOS CONTINUOS */
/* ==================================== */

/* Misión y Visión */
.content-mision, .content-vision {
    display: flex;
    width: 80%;
    justify-content: space-around;
    align-items: center;
}
.mision-image, .vision-image {
    width: 35%;
}
.mision-text, .vision-text {
    width: 45%;
}

/* Animación continua de imagen (Misión/Visión) */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}
.float-animation.visible {
    animation: float 3s ease-in-out infinite;
}
.float-animation-slow.visible {
    animation: float 5s ease-in-out infinite; /* Tiempo diferente */
}

/* Valores Institucionales */
.valores-container {
    width: 100%;
    display: flex;
    height: 100%;
}
.fijo-izquierda {
    flex: 0 0 30%;
    background-color: #000;
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cuadro-explicativo {
    background-color: #333;
    padding: 20px;
    border-bottom-right-radius: 50px;
}
.dinamico-derecha {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.valor-card {
    background-color: white;
    color: #2c3e50;
    border-radius: 15px;
    padding: 20px;
    width: 28%;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.valor-card strong {
    font-size: 1.2em;
    color: #e74c3c; /* Resaltado */
}
.valor-card:hover, .valor-card:focus {
    transform: scale(1.08); /* Aumenta el tamaño */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); 
}

/* Reseña Histórica */
.resena-content {
    column-count: 2; /* Dos columnas */
    column-gap: 30px;
    width: 70%;
    margin-top: 20px;
}
.resena-content p {
    margin-bottom: 20px;
    transition: background-color 0.3s, transform 0.3s;
}
.resena-content p:hover, .resena-content p:active {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px); /* Resaltar un poco */
}
.resena-imagenes {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 por fila */
    gap: 10px;
    width: 80%;
    margin-top: 30px;
}
.resena-imagenes img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s;
}
.hover-zoom:hover, .hover-zoom:active {
    transform: scale(1.1); /* Zoom al pasar el ratón */
    z-index: 5;
}

/* Premios y Certificaciones */
.premios-imagenes {
    display: flex;
    justify-content: space-between;
    width: 80%; /* 80% del ancho */
}
.premios-imagenes img {
    width: 25%; /* Para que 3 ocupen el 80% con separación */
    height: auto;
    margin: 0 2.5%;
    transition: transform 0.3s;
}
.hover-enlarge:hover, .hover-enlarge:active {
    transform: scale(1.05); /* Ampliar un poco sin deformar */
    z-index: 5;
}

/* Aliados Estratégicos */
.aliados-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 80%;
}
.aliado-img {
    width: 100px; /* Tamaño pequeño */
    height: 100px;
    filter: grayscale(100%); /* B/N inicial */
    transition: filter 0.5s ease, transform 0.3s ease;
}
.aliado-img:hover, .aliado-img:active {
    filter: grayscale(0%); /* Color */
    transform: scale(1.2); /* Aumenta un poco */
}

/* Equipo de Trabajo */
.equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 por fila */
    gap: 30px;
    width: 50%;
    margin-top: 30px;
}
.equipo-card {
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}
.equipo-card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
}
.equipo-card:hover img, .equipo-card:active img {
    transform: scale(1.5); /* Ampliar un poco la imagen */
}

/* ==================================== */
/* 6. RESPONSIVE (DISPOSITIVO MÓVIL) */
/* ==================================== */
@media (max-width: 768px) {
/* ===== NAVBAR MOBILE ===== */
    .navbar nav {
        justify-content: space-between;
        align-items: center;
    }
    .menu-toggle {
        display: block;
    }
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(44, 62, 80, 0.95);
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 20px 0;
    }
    .menu a {
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }
    /* menú activo */
    .menu.active {
        display: flex;
    }

    /* Misión y Visión: Contenido uno a uno */
    .content-mision, .content-vision {
        flex-direction: column;
        width: 95%;
    }
    .mision-image, .vision-image, .mision-text, .vision-text {
        width: 100%;
        margin-bottom: 20px;
        position: static !important; /* Anula la posición absoluta en móvil */
        text-align: center;
    }
    
    /* Valores: Contenido uno a uno */
    .valores-container {
        flex-direction: column;
        height: auto;
    }
    .fijo-izquierda {
        flex: none;
        width: 100%;
        padding: 20px;
        text-align: center;
    }
    .dinamico-derecha {
        flex-direction: column;
        padding: 20px;
    }
    .valor-card {
        width: 90%;
        margin-bottom: 20px;
    }

    /* Reseña Histórica: Una columna y las imágenes debajo */
    .resena-content {
        column-count: 1;
        width: 95%;
    }
    .resena-imagenes {
        grid-template-columns: repeat(2, 1fr); /* 2 por fila en móvil */
    }

    /* Premios/Certificaciones: Imágenes una a una */
    .premios-imagenes {
        flex-direction: column;
        align-items: center;
    }
    .premios-imagenes img {
        width: 60%;
        margin-bottom: 20px;
    }

    /* Equipo de Trabajo: 2 por fila */
    .equipo-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 95%;
    }
}


/* ==================================== */
/* 7. pie de página (footer) */
/* ==================================== */

.footer {
  background: rgba(44, 62, 80, 0.9);
  color: #fff;
  padding: 40px 0 20px;
  font-family: "Segoe UI", sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.footer-col {
  align-items: center;
  justify-content: center;
  flex: 1 1 250px;
  margin: 10px 20px;
}

.footer-col h3, 
.footer-col h4 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #ecf0f1;
}

.footer-col p {
  font-size: 15px;
  color: #dcdcdc;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 8px 0;
}

.footer-col ul li a {
  color: #dcdcdc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #1abc9c; /* color de hover */
}

.social a {
  margin-right: 10px;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.social img{
    width: 32;
}

.social a:hover {
  color: #1abc9c;
}

.footer-copy {
  text-align: center;
  color: #ccc;
  font-size: 14px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .social a {
    margin: 0 8px;
  }
}
