/* ============================================================
   RESET Y CONFIGURACIONES GENERALES
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-oscuro: #0a2a57;
    --azul-claro: #1e90ff;
    --azul-medio: #004aad;
    --azul-gradient: linear-gradient(135deg, var(--azul-medio) 0%, var(--azul-oscuro) 100%);
    --gris-claro: #f8f9fa;
    --gris-medio: #e9ecef;
    --gris-texto: #495057;
    --negro: #212529;
    --blanco: #ffffff;
    --sombra: 0 10px 30px rgba(0,0,0,0.08);
    --sombra-hover: 0 15px 40px rgba(0,0,0,0.12);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --border-radius: 16px;
    --borde: 1px solid rgba(0,0,0,0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gris-texto);
    line-height: 1.7;
    background-color: var(--blanco);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(26, 115, 232, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(10, 42, 87, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ============================================================
   BARRA SUPERIOR - FECHA
   ============================================================ */
.barra-superior {
    width: 100%;
    background: var(--azul-gradient);
    color: var(--blanco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    font-size: 15px;
    font-weight: 600;
    height: 60px;
    box-shadow: 0 4px 20px rgba(10, 42, 87, 0.15);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(10, 42, 87, 0.95);
}

.barra-superior:hover {
    box-shadow: 0 6px 25px rgba(10, 42, 87, 0.25);
}

#fecha-hora {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#fecha-hora::before {
    content: '📅';
    font-size: 18px;
    flex-shrink: 0;
}

.iconos-redes {
    display: flex;
    gap: 20px;
}

.redes-link {
    color: var(--blanco);
    text-decoration: none;
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.redes-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.redes-link:hover::before {
    left: 100%;
}

.redes-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* ============================================================
   LOGO Y TÍTULO PRINCIPAL
   ============================================================ */
.logo-title-container {
    position: relative;
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: var(--blanco);
    box-shadow: var(--sombra);
    border-bottom: 1px solid var(--gris-medio);
    overflow: hidden;
    min-height: auto;
    flex-wrap: nowrap;
    gap: 20px;
}

.logo-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--azul-claro), var(--azul-medio), var(--azul-claro));
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo {
    width: 200px;
    height: auto;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    z-index: 2;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.logo-left {
    order: 1;
}

.logo-right {
    order: 3;
}

.main-title {
    font-family: 'Raleway', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--azul-oscuro);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1;
    order: 2;
    flex: 1;
    min-width: auto;
}

.title-line {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-medio) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--azul-claro);
    border-radius: 2px;
}

/* ============================================================
   BARRA DE NAVEGACIÓN 
   ============================================================ */
.nav2 {
    background: linear-gradient(135deg, rgba(10, 42, 87, 0.98) 0%, rgba(0, 74, 173, 0.98) 100%);
    position: sticky;
    top: 60px;
    z-index: 999;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.nav2.scrolled {
    top: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--blanco);
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    z-index: 1002;
    transition: var(--transition);
    border-radius: 6px;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle.active i {
    transform: rotate(90deg);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    margin: 0;
    transition: var(--transition);
}

.nav-menu li {
    flex-shrink: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--blanco);
    font-weight: 600;
    padding: 12px 18px;
    transition: var(--transition);
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    font-family: 'Raleway', sans-serif;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--blanco);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 70%;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.nav-menu a i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.nav-menu a:hover i {
    transform: scale(1.2);
}

/* ============================================================
   CONTENIDO PRINCIPAL
   ============================================================ */
main {
    width: 95%;
    max-width: 1400px;
    margin: 30px auto;
    padding: 20px 0;
}

/* ============================================================
   SECCIÓN HERO
   ============================================================ */
.reseña-hero {
    background: var(--blanco);
    padding: 30px 20px;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--sombra);
    position: relative;
    overflow: hidden;
    border: var(--borde);
    transition: var(--transition);
}

.reseña-hero:hover {
    box-shadow: var(--sombra-hover);
}

.reseña-etiqueta {
    position: relative;
    background: var(--azul-gradient);
    color: var(--blanco);
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(10, 42, 87, 0.2);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Raleway', sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 30px;
    text-align: center;
    width: auto;
    left: 0;
    top: 0;
    transform: none;
}

.reseña-titulo {
    margin-top: 20px;
    font-size: 28px;
    font-weight: 600;
    color: var(--negro);
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding: 20px 15px;
    font-family: 'Raleway', sans-serif;
    border-left: 4px solid var(--azul-claro);
    border-right: 4px solid var(--azul-claro);
}

.reseña-titulo::before {
    content: '❝';
    font-size: 40px;
    color: var(--azul-claro);
    position: absolute;
    top: 0;
    left: 10px;
    opacity: 0.7;
}

.reseña-titulo::after {
    content: '❞';
    font-size: 40px;
    color: var(--azul-claro);
    position: absolute;
    bottom: -20px;
    right: 10px;
    opacity: 0.7;
}

.hero-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 20px;
    border: 2px solid var(--azul-claro);
    height: 400px;
}

.reseña-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hero-image-container:hover .reseña-imagen {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 42, 87, 0.9), transparent);
    padding: 20px;
    color: var(--blanco);
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 100px;
}

.stat i {
    font-size: 28px;
    color: var(--azul-claro);
    margin-bottom: 5px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Raleway', sans-serif;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-align: center;
}

/* ============================================================
   TÍTULOS DE SECCIÓN
   ============================================================ */
.section-title {
    color: var(--azul-oscuro);
    margin-bottom: 30px;
    text-align: center;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--azul-claro);
    border-radius: 2px;
}

/* ============================================================
   CONTENEDORES DE 2 COLUMNAS
   ============================================================ */
.reseña-ubicacion-container,
.mision-vision-container,
.funciones-estructura-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.reseña-box, .ubicacion-box,
.mision-box, .vision-box,
.funciones-box, .estructura-box {
    background: var(--blanco);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--sombra);
    transition: var(--transition);
    border: var(--borde);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.reseña-box::before,
.ubicacion-box::before,
.mision-box::before,
.vision-box::before,
.funciones-box::before,
.estructura-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--azul-gradient);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-hover);
    border-color: var(--azul-claro);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--azul-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--blanco);
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(10, 42, 87, 0.25);
    transition: var(--transition);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.card-hover:hover .card-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 25px rgba(10, 42, 87, 0.3);
}

.reseña-box h3, .ubicacion-box h3,
.mision-box h3, .vision-box h3,
.funciones-box h3, .estructura-box h3 {
    color: var(--azul-oscuro);
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Raleway', sans-serif;
}

.reseña-box h3::after, .ubicacion-box h3::after,
.mision-box h3::after, .vision-box h3::after,
.funciones-box h3::after, .estructura-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--azul-claro);
}

.reseñ-titulo, .ubicacion-titulo,
.mision-titulo, .vision-titulo {
    margin-top: 20px;
    text-align: justify;
    font-size: 16px;
    color: var(--negro);
    line-height: 1.7;
    font-family: 'Poppins', sans-serif;
}

.ubicacion-imagen-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: var(--transition);
    height: 250px;
}

.ubicacion-imagen-container:hover .ubicacion-overlay {
    opacity: 1;
    transform: translateY(0);
}

.ubicacion-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ubicacion-imagen-container:hover .ubicacion-imagen {
    transform: scale(1.05);
}

.ubicacion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 42, 87, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.ubicacion-overlay i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--azul-claro);
}

.ubicacion-overlay span {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
}

/* ============================================================
   LISTAS ESTILIZADAS
   ============================================================ */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.styled-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    transition: var(--transition);
}

.styled-list li:hover {
    background: rgba(10, 42, 87, 0.03);
    padding-left: 10px;
    border-radius: 8px;
}

.styled-list li:last-child {
    border-bottom: none;
}

.styled-list li i {
    color: var(--azul-claro);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 16px;
}

.transformacion {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 74, 173, 0.2);
}

.transformacion h3 {
    font-size: 20px;
    margin-top: 15px;
    color: var(--azul-oscuro);
    font-family: 'Raleway', sans-serif;
}

/* ============================================================
   ORGANIGRAMA
   ============================================================ */
.organigrama-container {
    background: var(--gris-claro);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    border: 2px dashed var(--azul-medio);
    position: relative;
    overflow: hidden;
}

.organigrama-imagen {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.organigrama-container:hover .organigrama-imagen {
    transform: scale(1.01);
}

/* ============================================================
   CARRUSEL GENERAL
   ============================================================ */
.carousel-container {
    position: relative;
    width: 100%;
    padding: 30px 0;
    overflow: hidden;
    background: var(--blanco);
    border-radius: var(--border-radius);
    margin: 40px 0;
    box-shadow: var(--sombra);
    border: var(--borde);
}

.carousel-wrapper {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 auto;
    width: 350px;
    background: var(--blanco);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: var(--borde);
    position: relative;
}

.carousel-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--azul-gradient);
}

.item-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    background: var(--gris-claro);
    transition: transform 0.6s ease;
}

.carousel-item:hover .item-img {
    transform: scale(1.08);
}

.item-title {
    padding: 20px 20px 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--azul-oscuro);
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

.item-desc {
    padding: 0 20px 20px;
    color: var(--gris-texto);
    text-align: center;
    line-height: 1.6;
    font-size: 14px;
    min-height: 60px;
}

/* ============================================================
   BOTONES DEL CARRUSEL
   ============================================================ */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--azul-gradient);
    border: none;
    color: var(--blanco);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(10, 42, 87, 0.3);
    z-index: 50;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: none;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--azul-medio) 100%);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 10px 25px rgba(10, 42, 87, 0.4);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gris-medio);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active {
    background: var(--azul-claro);
    transform: scale(1.3);
    border-color: var(--azul-medio);
}

.dot:hover {
    background: var(--azul-medio);
    transform: scale(1.2);
}

/* ============================================================
   SECCIONES DE IMÁGENES
   ============================================================ */
.pna-contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: var(--transition);
    position: relative;
    height: 250px;
}

.image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover);
}

.image-wrapper:hover .image-caption {
    opacity: 1;
    transform: translateY(0);
}

.cap-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.image-wrapper:hover .cap-img {
    transform: scale(1.1);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 42, 87, 0.9), transparent);
    color: var(--blanco);
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.image-caption h4 {
    font-size: 20px;
    margin-bottom: 5px;
    font-family: 'Raleway', sans-serif;
}

.pna-description {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--gris-claro) 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    position: relative;
    border: 2px solid rgba(10, 42, 87, 0.1);
}

.description-icon {
    font-size: 40px;
    color: var(--azul-claro);
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.pna-titulo {
    font-size: 18px;
    color: var(--negro);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 800px;
    font-weight: 500;
}

/* ============================================================
   SECCIÓN PFC
   ============================================================ */
.pfc-content {
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    border-left: 6px solid var(--azul-medio);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.pfc-content:hover {
    transform: translateX(8px);
    box-shadow: var(--sombra-hover);
}

.pfc-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.pfc-icon {
    font-size: 50px;
    color: var(--azul-claro);
    text-align: center;
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pfc-titulo {
    font-size: 18px;
    font-weight: 500;
    text-align: justify;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
}

/* ============================================================
   PRODUCTOS Y SERVICIOS
   ============================================================ */
.productos-servicios-contenedor {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.producto-img-container {
    width: 100%;
    max-width: 800px;
    height: 400px;
    overflow: hidden;
    background: var(--gris-claro);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    border: 3px solid var(--azul-claro);
}

.producto-img-container:hover .productos-overlay {
    opacity: 1;
}

.producto-servicio-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.8s ease;
}

.producto-img-container:hover .producto-servicio-img {
    transform: scale(1.05);
}

.productos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 42, 87, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    opacity: 0;
    transition: var(--transition);
    padding: 30px;
    text-align: center;
}

.productos-overlay h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-family: 'Raleway', sans-serif;
}

.productos-overlay p {
    font-size: 18px;
    opacity: 0.9;
}

.productos-description {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--gris-claro) 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    border: 2px solid rgba(10, 42, 87, 0.1);
}

.productos-servicios-titulo {
    font-size: 18px;
    color: var(--negro);
    line-height: 1.7;
    margin: 20px auto 0;
    max-width: 800px;
    font-weight: 500;
}

/* ============================================================
   SECCIÓN COMEDOR
   ============================================================ */
.comedor-section {
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--azul-oscuro) 100%);
    border-radius: var(--border-radius);
    margin: 50px 0;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    border: none;
}

.comedor-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.comedor-section .section-title {
    color: var(--blanco);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.comedor-carousel {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    border-radius: 20px;
}

.comedor-item {
    background: var(--blanco);
    width: 350px;
    height: 450px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gris-medio);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.comedor-img-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--gris-claro);
    display: flex;
    align-items: center;
    justify-content: center;
}

.comedor-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 15px;
    transition: transform 0.6s ease;
}

.comedor-item:hover .comedor-img {
    transform: scale(1.1);
}

.comedor-slogan {
    text-align: center;
    margin-top: 40px;
    color: var(--blanco);
    position: relative;
}

.comedor-slogan i {
    font-size: 40px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.comedor-titulo {
    font-size: 28px;
    color: var(--blanco);
    font-style: italic;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.5);
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.4;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    position: relative;
    padding: 15px;
}

.comedor-titulo::before,
.comedor-titulo::after {
    content: '"';
    font-size: 40px;
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    top: 0;
}

.comedor-titulo::before {
    left: 0;
}

.comedor-titulo::after {
    right: 0;
    top: auto;
    bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-medio) 100%);
    color: var(--blanco);
    padding: 40px 20px 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--azul-claro), var(--blanco), var(--azul-claro));
    animation: gradientMove 3s ease infinite;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    align-items: start;
}

.footer-logo {
    text-align: center;
}

.footer-logo-img {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    margin-bottom: 15px;
    transition: var(--transition);
}

.footer-logo-img:hover {
    transform: scale(1.05);
    opacity: 1;
}

.footer-logo h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.9;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.6;
}

.footer-contact {
    font-size: 14px !important;
    opacity: 0.9;
}

.footer-social {
    text-align: center;
}

.footer-social h4 {
    font-size: 20px;
    margin-bottom: 20px;
    font-family: 'Raleway', sans-serif;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-social-link {
    color: var(--blanco);
    font-size: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-link:hover {
    background: var(--blanco);
    color: var(--azul-oscuro);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    opacity: 0.8;
}

.footer-bottom i {
    color: #ff6b6b;
    margin: 0 5px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================================
   BOTÓN VOLVER ARRIBA
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--azul-gradient);
    color: var(--blanco);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(10, 42, 87, 0.3);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--azul-medio) 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 42, 87, 0.4);
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 1200px) {
    .logo-title-container {
        padding: 25px 30px;
    }
    
    .logo {
        width: 180px;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .carousel-item {
        width: 320px;
    }
    
    .comedor-item {
        width: 320px;
        height: 420px;
    }
    
    .comedor-img-container {
        height: 250px;
    }
    
    .producto-img-container {
        height: 350px;
    }
}


@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(10, 42, 87, 0.98) 0%, rgba(0, 74, 173, 0.98) 100%);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 0;
        transition: right 0.4s ease;
        z-index: 1001;
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
        overflow-y: auto;
    }
    

    .nav-menu.active {
        display: flex;
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 18px 30px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
        font-size: 16px;
        width: 100%;
    }
    

    .logo-title-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        gap: 15px;
    }
    
    .main-title {
        order: 2;
        font-size: 28px;
        flex: 1;
    }
    
    .logo-left, .logo-right {
        position: relative;
        left: auto;
        right: auto;
        margin: 0;
        width: 150px;
    }
    
    .logo-left {
        order: 1;
    }
    
    .logo-right {
        order: 3;
    }
    
    .reseña-ubicacion-container,
    .mision-vision-container,
    .funciones-estructura-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .comedor-item {
        width: 300px;
        height: 400px;
    }
    
    .comedor-img-container {
        height: 230px;
    }
    
    .barra-superior {
        padding: 10px 20px;
        height: 50px;
        font-size: 14px;
        justify-content: space-between;
    }
    
    #fecha-hora {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
    
    .iconos-redes {
        gap: 15px;
    }
    
    .redes-link {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .carousel-btn {
        display: flex;
    }
}


@media (max-width: 768px) {
    .barra-superior {
        position: fixed;
        top: 0;
        flex-direction: row;
        height: 50px;
        padding: 10px 15px;
        justify-content: space-between;
        align-items: center;
    }
    
    #fecha-hora {
        font-size: 13px;
        justify-content: flex-start;
        flex: 1;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
    
    .iconos-redes {
        justify-content: flex-end;
        flex: 1;
        gap: 10px;
    }
    
    .nav2 {
        top: 50px;
    }
    
    .nav2.scrolled {
        top: 0;
    }
    

    .logo-title-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        gap: 10px;
        margin-top: 50px;
    }
    
    .main-title {
        font-size: 22px;
        flex: 1;
        order: 2;
    }
    
    .logo {
        width: 100px;
    }
    
    .logo-left {
        order: 1;
    }
    
    .logo-right {
        order: 3;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .carousel-item {
        width: 280px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        display: flex;
    }
    
    .seccion {
        padding: 15px;
    }
    
    .reseña-hero {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .reseña-titulo {
        font-size: 18px;
        margin-top: 15px;
        padding: 15px;
        line-height: 1.5;
    }
    
    .reseña-etiqueta {
        font-size: 14px;
        padding: 10px 20px;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }
    
    .hero-image-container {
        height: 300px;
    }
    
    .reseña-imagen {
        height: 300px;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
    }
    
    .stat {
        margin-bottom: 0;
        min-width: 80px;
    }
    
    .stat i {
        font-size: 22px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .comedor-section {
        padding: 30px 15px;
        margin: 40px 0;
    }
    
    .comedor-section h2 {
        font-size: 26px;
    }
    
    .comedor-item {
        width: 280px;
        height: 380px;
    }
    
    .comedor-img-container {
        height: 220px;
    }
    
    .producto-img-container {
        height: 300px;
        padding: 15px;
    }
    
    .comedor-titulo {
        font-size: 22px;
        padding: 10px;
    }
    
    .pfc-titulo,
    .productos-servicios-titulo {
        font-size: 16px;
        padding: 15px;
        line-height: 1.6;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo-img {
        width: 100px;
    }
}


@media (max-width: 576px) {
    .barra-superior {
        padding: 8px 10px;
        height: 45px;
    }
    
    #fecha-hora {
        font-size: 12px;
        flex: 2;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    #fecha-hora::before {
        font-size: 16px;
    }
    
    .iconos-redes {
        gap: 8px;
        flex: 1;
        justify-content: flex-end;
    }
    
    .redes-link {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .logo-title-container {
        margin-top: 45px;
        padding: 12px 15px;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .main-title {
        font-size: 18px;
        flex: 1;
    }
    
    .title-line {
        font-size: 16px;
    }
    
    .logo {
        width: 80px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .carousel-item {
        width: 250px;
    }
    
    .item-img {
        height: 180px;
    }
    
    .item-title {
        font-size: 18px;
        padding: 15px;
    }
    
    .item-desc {
        padding: 0 15px 15px;
        font-size: 13px;
    }
    
    .cap-img {
        height: 200px;
    }
    
    .pna-contenedor {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .image-wrapper {
        height: 220px;
    }
    
    .comedor-item {
        width: 250px;
        height: 350px;
    }
    
    .comedor-img-container {
        height: 200px;
    }
    
    .producto-img-container {
        height: 250px;
        padding: 10px;
    }
    
    .comedor-titulo {
        font-size: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
    
    .nav-menu {
        width: 280px;
    }
    
    .reseña-box, .ubicacion-box,
    .mision-box, .vision-box,
    .funciones-box, .estructura-box {
        padding: 25px 20px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .reseña-box h3, .ubicacion-box h3,
    .mision-box h3, .vision-box h3,
    .funciones-box h3, .estructura-box h3 {
        font-size: 20px;
    }
    
    .reseñ-titulo, .ubicacion-titulo,
    .mision-titulo, .vision-titulo {
        font-size: 15px;
    }
    
    footer {
        padding: 30px 15px 15px;
        margin-top: 40px;
    }
    
    .footer-logo-img {
        width: 80px;
    }
    
    .footer-logo h3 {
        font-size: 18px;
    }
    
    .footer-social-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}


@media (max-width: 400px) {
    .barra-superior {
        padding: 6px 8px;
        height: 40px;
    }
    
    #fecha-hora {
        font-size: 11px;
        flex: 2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 130px;
    }
    
    .iconos-redes {
        gap: 6px;
        flex: 1;
    }
    
    .redes-link {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .logo-title-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
        gap: 6px;
        margin-top: 40px;
    }
    
    .main-title {
        font-size: 16px;
        flex: 1;
    }
    
    .title-line {
        font-size: 14px;
    }
    
    .logo {
        width: 70px;
    }
    
    .reseña-etiqueta {
        font-size: 12px;
        padding: 8px 15px;
    }
    
    .reseña-titulo {
        font-size: 16px;
        padding: 12px;
    }
    
    .hero-image-container {
        height: 250px;
    }
    
    .reseña-imagen {
        height: 250px;
    }
    
    .stat i {
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .carousel-item {
        width: 220px;
    }
    
    .comedor-item {
        width: 220px;
        height: 320px;
    }
    
    .comedor-img-container {
        height: 180px;
    }
    
    .producto-img-container {
        height: 220px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
}


@media (max-height: 600px) and (orientation: landscape) {
    .nav-menu {
        padding-top: 60px;
        overflow-y: auto;
        max-height: 100vh;
    }
    
    .nav-menu li {
        height: auto;
    }
    
    .nav-menu a {
        padding: 12px 25px;
    }
    
    .logo-title-container {
        padding: 15px;
        min-height: auto;
    }
    
    .hero-image-container {
        height: 200px;
    }
}