/* ==========================================
   ESTILOS GENERALES Y LIMPIEZA
   ========================================== */
* {
    margin: 0;
    padding: 0;
    list-style: none; /* estilo de lista */
    box-sizing: border-box; /* Ancho del elemento */
}

body {
    font-family: Arial, sans-serif;
    background-color: #c2ca4e;
}

/* ==========================================
   CABECERA PRINCIPAL
   ========================================== */
header {
    width: 1030px;
    height: 120px;
    background-color: #21e60f;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    border-bottom: 3px solid #6E0B14; /* Línea elegante institucional abajo */
}

/* Logo a la izquierda */
#logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

#logo img {
    height: 100%;
    width: auto;
    display: block;
}

/* Título de la institución perfectamente centrado */
.titulo-institucion {
    text-align: center;
    flex-grow: 1;
    padding: 0 15px;
}

.titulo-institucion h1 {
    font-family: Arial, sans-serif;
    color: #6E0B14; /* Color guindo institucional */
    font-size: 28px;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.titulo-institucion p {
    font-family: Arial, sans-serif;
    color: #020202;
    font-size: 20px;
    margin: 5px 0 0 0;
}

/* Redes sociales a la derecha (sin fondos extraños) */
.redes-sociales {
    display: flex;
    gap: 10px;
    align-items: center;
    background: transparent !important;
}

.redes-sociales img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    display: block;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Enlaces generales limpios (sin fondo rosado general) */
a {
    text-decoration: none;
    color: inherit;
}
/* ==========================================
   MENÚ DE NAVEGACIÓN (Color Guindo)
   ========================================== */
.historia {
    color: #03203d; 
    text-align: center;
}

nav {
    width: 1030px;
    height: 48px;
    background-color: #a31925; /* Color Guindo */
    position: relative;
    margin: auto;
}

nav ul li {
    list-style: none;
    margin-left: 25px;
    padding: 15px 0;
    display: inline-block;
}

nav ul li a {
    text-decoration: none;
    color: #15b7e9;
    font-weight: bold;
    background-color: #a31925; /* Color Guindo */
}

.botones {
    float: left;
    width: 196px;
    height: 43px;
    background-color: #a31925; /* Guindo oscuro para los botones */
    margin: 0 2px;
    padding-top: 5px;
    font-size: 14px;
    font-family: 'Century Gothic', sans-serif;
    text-align: center;
}

nav ul li a:hover {
    color: #0be929;
}

.menu-vertical {
    position: absolute;
    display: none;
    list-style: none;
    width: 200px;
    background-color: #a31925; /* Color Guindo */
}

li:hover .menu-vertical {
    display: block; 
    z-index: 3;
}

.menu-vertical li:hover {
    background-color: #f3ef17; 
}

.menu-vertical li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 15px 15px 20px;
}

/* ==========================================
   SECCIONES SUPERIORES (#top)
   ========================================== */
#top {
    width: 1030px;
    height: 220px;
    position: relative;
    margin: 20px auto;
}

#top ul li {
    float: left;
    width: 326px;
    height: 200px;
    margin-right: 10px;
}

#top ul {
    width: 1010px;
    height: 200px;
}

/* ==========================================
   SECCIONES GRANDES (Contenido central)
   ========================================== */
section {
    position: relative;
    width: 1030px;
    height: 750px;
    margin: 30px auto;
    background-color: #ffffff;
}

.izquierda {
    left: 0px;
    width: 300px;
    height: 750px;
    background-color: #0be241;
    position: absolute;
}

.centro {
    left: 300px;
    width: 400px;
    height: 750px;
    background-color: #0776E0;
    position: absolute;
}

.derecha {
    right: 0px;
    width: 335px;
    height: 750px;
    background-color: #e77416;
    position: absolute;
}

.texto-centro {
    padding: 20px;
    text-align: justify;
    color: white;
    font-family: 'Arial Black', sans-serif;
}

/* ==========================================
   PIE DE PÁGINA (Color Guindo)
   ========================================== */
footer {
    position: relative;
    background-color: #83051e; /* Color Guindo */
    width: 1030px;
    height: 100px;
    margin: 30px auto;
}

.texto-pie {
    padding: 5px;
    text-align: center;
    font-family: 'Bookman Old Style', serif;
    color: white;
}

/* ==========================================
   CHAT FLOTANTE (WHATSAPP)
   ========================================== */
#chat {
    position: fixed;
    width: 110px;
    height: 40px;
    background: #3505e4;
    bottom: 0;
    right: 20px;
    z-index: 2;
    text-align: center;
    line-height: 40px;
    font-family: cursive;
    font-size: 20px;
    border-radius: 20px 20px 0 0;
    cursor: pointer;
}

#chat a {
    text-decoration: none;
    color: white;
    background-color: #e60d1f;
}
/* ==========================================
   ESTILOS PARA PÁGINAS DE ÁREAS ACADÉMICAS
   ========================================== */
.contenido-area {
    width: 1030px;
    min-height: 453px;
    margin: 20px auto;
    background-color: #ffffff;
    padding: 40px;
    box-sizing: border-box;
    position: relative;
}

.titulo-area {
    color: #f10b16; /* Color Guindo institucional */
    text-align: center;
    margin-bottom: 25px;
    font-family: Arial, sans-serif;
    font-size: 24px;
}

.tarjeta-curso {
    background: #f4f6f9;
    padding: 25px;
    border-left: 5px solid #6E0B14; /* Franja lateral en color guindo */
    margin-bottom: 25px;
    border-radius: 4px;
}

.tarjeta-curso p {
    line-height: 1.6;
    color: #333333;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-align: justify;
}
/* ==========================================
   ESTILOS PARA SECCIÓN DE IMÁGENES Y VIDEO (#top)
   ========================================== */
#top {
    width: 1030px;
    margin: 20px auto;
    background-color: #ffffff;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
}

#top ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.secciones {
    flex: 1;
    height: 192px;
    overflow: hidden;
}

.secciones img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta y ajusta la imagen automáticamente para que no se deforme */
    display: block;
    border-radius: 6px;
    border: 2px solid #6E0B14; /* Marco guindo institucional */
}

.secciones iframe {
    width: 100%;
    height: 192px;
    border-radius: 6px;
    border: 2px solid #6E0B14; /* Marco guindo institucional */
}
/* ==========================================
/* ==========================================
   ESTILOS PARA ENLACES RÁPIDOS
   ========================================== */
.enlaces-rapidos {
    width: 1030px;
    margin: 20px auto;
    background-color: #ffffff !important;
    border: 2px solid #6E0B14;
    border-radius: 6px;
    padding: 20px;
    box-sizing: border-box;
}

.enlaces-rapidos h3 {
    color: #6E0B14 !important;
    font-family: Arial, sans-serif;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #6E0B14;
    padding-bottom: 8px;
    background: transparent !important;
}

.enlaces-rapidos ul.lista-enlaces-rapidos {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.enlaces-rapidos ul.lista-enlaces-rapidos li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.enlaces-rapidos ul.lista-enlaces-rapidos li a {
    display: inline-block !important;
    background-color: #6E0B14 !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: bold !important;
    transition: background-color 0.3s ease;
}

.enlaces-rapidos ul.lista-enlaces-rapidos li a:hover {
    background-color: #8a101b !important;
}
