@charset "utf-8";

/* === ESTILOS ORIGINALES MEJORADOS === */
#div1 {
    position: fixed;
    width: 100%;
    color: #FFFFFF;
    background: #000000;
    opacity: 0.5;
    top: 0;
    left: 0;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    padding: 5px;
    cursor: pointer;
    z-index: 1000;
}

#tabla1 {
    border-radius: 15px;
    background-color: #FFFFFF;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 153, 204, 0.2);
    border: 2px solid #09C;
    max-width: 800px;
    overflow: hidden;
}

#hipervinculo1 {
    color: #FFFFFF;
    background: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

#hipervinculo1:hover {
    color: #09C;
    text-decoration: underline;
}

/* === BOTONES MEJORADOS === */
#boton1, #boton2, #boton3 {
    background: linear-gradient(135deg, #09C 0%, #0080CC 100%);
    color: #FFF;
    font-weight: 600;
    border-radius: 12px;
    padding: 15px 20px;
    width: 70%;
    border: none;
    cursor: pointer;
    font-family: 'Segoe UI', Verdana, Geneva, sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    margin: 8px 0;
    box-shadow: 0 4px 15px rgba(0, 153, 204, 0.3);
    letter-spacing: 1px;
}

#boton1:hover, #boton2:hover, #boton3:hover {
    background: linear-gradient(135deg, #0080CC 0%, #005999 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 153, 204, 0.5);
}

#boton1:active, #boton2:active, #boton3:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 153, 204, 0.3);
}

#boton1:focus, #boton2:focus, #boton3:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.4);
}

#boton4 {
    background-color: #CCC;
    color: #666;
    font-weight: 600;
    border-radius: 12px;
    padding: 15px 20px;
    width: 70%;
    border: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/* === TEXTOS Y PÁRRAFOS === */
#parrafo1 {
    font-family: 'Segoe UI', Verdana, Geneva, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 20px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#parrafo2 {
    font-family: 'Segoe UI', Verdana, Geneva, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #09C;
}

#parrafo3 {
    font-size: 12px;
    font-family: 'Segoe UI', Verdana, Geneva, sans-serif;
    font-weight: 600;
    color: #666;
}

#cabecera1 {
    font-family: 'Segoe UI', Verdana, Geneva, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #09C;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* === ELEMENTOS DE VALIDACIÓN === */
#w3c_css, #w3c_xhtml, #validome1 {
    border: none;
    height: 20px;
    transition: opacity 0.3s ease;
}

#w3c_css:hover, #w3c_xhtml:hover, #validome1:hover {
    opacity: 0.8;
}

/* === ESTILOS PARA HEADER INSTITUCIONAL SIN IMÁGENES === */
.header-institucional {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #09C 0%, #0080CC 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 8px 32px rgba(0, 153, 204, 0.3);
    position: relative;
    overflow: hidden;
}


.header-institucional {
    flex-direction: column;
    text-align: center;
}

.header-institucional h2 {
    text-align: center;
}

.logo-escudo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
}


.header-institucional::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    transform: rotate(45deg);
    pointer-events: none;
}

.header-institucional h2 {
    margin: 0;
    font-family: 'Segoe UI', Verdana, Geneva, sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    flex: 1;
    position: relative;
    z-index: 2;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: 3px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    padding: 20px 25px;
    min-width: 180px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.logo-placeholder:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.02);
}

.logo-text {
    font-family: 'Segoe UI', Verdana, Geneva, sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #FFF;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    letter-spacing: 3px;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #FFF, #E8F4F8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-family: 'Segoe UI', Verdana, Geneva, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #E8F4F8;
    text-align: center;
    font-style: italic;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* === RESPONSIVIDAD PARA HEADER === */
@media (max-width: 768px) {
    .header-institucional {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .header-institucional h2 {
        font-size: 24px;
    }

    .logo-placeholder {
        min-width: 150px;
    }

    .logo-text {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .logo-subtitle {
        font-size: 12px;
    }

    #boton1, #boton2, #boton3 {
        width: 85%;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header-institucional {
        padding: 15px;
    }

    .header-institucional h2 {
        font-size: 20px;
    }

    .logo-placeholder {
        min-width: 130px;
        padding: 15px 20px;
    }

    .logo-text {
        font-size: 24px;
        letter-spacing: 1.5px;
    }

    .logo-subtitle {
        font-size: 11px;
        letter-spacing: 1px;
    }

    #boton1, #boton2, #boton3 {
        width: 90%;
        font-size: 14px;
        padding: 12px 16px;
    }

    #cabecera1 {
        font-size: 24px;
    }

    #parrafo1 {
        font-size: 16px;
    }

    #tabla1 {
        margin: 10px;
        border-radius: 10px;
    }
}

/* === MEJORAS GENERALES === */
body {
    font-family: 'Segoe UI', Verdana, Geneva, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* === ANIMACIONES SUAVES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#tabla1 {
    animation: fadeInUp 0.6s ease-out;
}

/* === EFECTOS DE ENFOQUE === */
*:focus {
    outline: 2px solid #09C;
    outline-offset: 2px;
}

/* === ACCESIBILIDAD === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}