/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   VARIABLES CSS (Colores oficiales SENA)
   ======================================== */
:root {
    --green-primary:   #39A900;
    --green-secondary: #007832;
    --blue-primary:    #00304D;

    --green-dark:      #007832;
    --green-mid:       #39A900;
    --green-light:     #007832;
    --green-hero:      #00304D;
    --green-title:     #007832;

    --bg-light:        #F6F6F6;
    --white:           #FFFFFF;
    --black:           #000000;
    --text-dark:       #000000;
    --text-muted:      #555555;

    --shadow-card:     0 5px 15px rgba(0, 0, 0, 0.10);
    --shadow-btn:      0 10px 20px rgba(57, 169, 0, 0.30);
    --radius-card:     15px;
    --radius-btn:      30px;
    --transition:      0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========================================
   HEADER / LOGO + MENÚ
   ======================================== */
.gridlogo {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    background-color: var(--green-primary);
}

.imagenlogogrid {
    width: 50px;
    height: 50px;
}

.imagenlogogrid img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

/* ========================================
   MENÚ DE NAVEGACIÓN
   ======================================== */
.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    background: transparent;
    padding: 0;
}

.menu-item {
    position: relative;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color var(--transition), color var(--transition);
    font-weight: 500;
    color: var(--white);
}

.menu-item a {
    color: inherit;
    text-decoration: none;
}

.menu-item:hover {
    background-color: #2e8603;
    color: var(--white);
}

/* Separador entre items del menú */
.menu-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -30px;
    top: 20%;
    height: 65%;
    width: 1px;
    background-color: #329301;
}

/* ========================================
   DROPDOWN
   ======================================== */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 190px;
    min-height: 45px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    overflow: hidden;
}

.menu-item:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    animation: slideDown var(--transition);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========================================
   MEDIA (VIDEO EN DROPDOWN)
   ======================================== */
.media-container {
    width: 100%;
    height: 220px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.media-container video,
.media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dropdown-text {
    padding: 15px;
    text-align: center;
    background: linear-gradient(135deg, var(--green-secondary) 0%, var(--green-primary) 100%);
    color: var(--white);
    flex-shrink: 0;
}

.dropdown-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.dropdown-text p {
    font-size: 13px;
    opacity: 0.9;
}

/* ========================================
   BANNER / PREVIEW AREA
   ======================================== */
.preview-area {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.preview-content {
    text-align: center;
    z-index: 2;
}

.preview-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.preview-content p {
    font-size: 20px;
    max-width: 800px;
    margin: auto;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* ========================================
   SECCIÓN HERO
   ======================================== */
.hero {
    padding: 80px 40px;
    text-align: center;
    background-color: var(--white);
}

.hero--compact {
    padding: 40px;
}

.hero h1 {
    font-size: 43px;
    margin-bottom: 20px;
    color: var(--green-title);
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* ========================================
   BOTÓN
   ======================================== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--green-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-btn);
    font-weight: bold;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.btn:hover {
    background-color: var(--green-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn);
}

/* ========================================
   HERO GRID (Encuesta)
   ======================================== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
}

.hero-video {
    text-align: center;
}

.hero-video video {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-card);
    border: 3px solid var(--green-dark);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: block;
    margin: auto;
    transition: transform var(--transition);
}

.hero-video video:hover {
    transform: scale(1.02);
}

.hero-texto {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    padding: 35px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-align: left;
    border-left: 6px solid var(--green-primary);
}

.hero-texto h3 {
    color: var(--green-title);
    margin-bottom: 20px;
}

.hero-texto p {
    line-height: 1.9;
    margin-bottom: 15px;
}

/* ========================================
   TARJETAS
   ======================================== */
.info-section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--green-title);
    text-align: center;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cards {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 30px;
    box-shadow: var(--shadow-card);
    border-top: 5px solid var(--green-primary);
    transition: transform var(--transition);
}

.cards:hover {
    transform: translateY(-10px);
}

.cards h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--green-dark);
}

.cards p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ========================================
   VIDEO CENTRADO / CBC
   ======================================== */
.video-centrado {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    gap: 25px;
    padding: 20px;
}

.video-centrado video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.video-centrado video:hover {
    transform: scale(1.02);
}

.video-cbc {
    width: 80%;
    max-width: 700px;
    border-radius: var(--radius-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: block;
    margin: auto;
    transition: transform var(--transition);
}

.video-cbc:hover {
    transform: scale(1.03);
}

/* ========================================
   GALERÍA
   ======================================== */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1800px;
    margin: 40px auto;
    padding: 20px;
}

.galeria-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.galeria-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid var(--green-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.galeria-item img:hover {
    transform: scale(1.03);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background-color: var(--blue-primary);
    color: var(--white);
    padding: 40px;
    text-align: center;
}

footer p {
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-texto {
        text-align: center;
        border-left: none;
        border-top: 6px solid var(--green-primary);
    }
}

@media (max-width: 768px) {
    .gridlogo {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
    }

    .menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .menu-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .menu-item:not(:last-child)::after {
        display: none;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        min-width: 100%;
        transform: none;
        left: auto;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .media-container {
        height: 180px;
    }

    .preview-area {
        height: 250px;
    }

    .preview-content h2 {
        font-size: 26px;
    }

    .preview-content p {
        font-size: 15px;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .galeria-item img {
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
/* =======================
   VIDEO INSTITUCIONAL
======================= */

.video-cbc{
    width:100%;
    padding:70px 20px;
    background:#f7f9f7;
}

.video-contenedor{
    max-width:1100px;
    margin:auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:30px;
}

.video-texto{
    text-align:center;
    max-width:800px;
}

.video-texto h2{
    color:#1a5f2a;
    font-size:2rem;
    margin-bottom:15px;
}

.video-texto p{
    color:#555;
    font-size:1.05rem;
    line-height:1.7;
}

.video-principal{
    width:100%;
    display:flex;
    justify-content:center;
}

.video-principal video{
    width:100%;
    max-width:900px;
    border-radius:18px;
    border:3px solid #1a5f2a;
    box-shadow:0 12px 30px rgba(0,0,0,.25);
}

@media (max-width:768px){

    .video-cbc{
        padding:50px 15px;
    }

    .video-texto h2{
        font-size:1.6rem;
    }

    .video-texto p{
        font-size:1rem;
    }
}