* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Open Sans;
    background-image: url('photo-fondo.png');
    color: #000000;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    margin: 0 200px;
    background-color: aliceblue;
    padding: 20px;
    box-shadow: 0 0 20px rgba(9, 0, 0, 0.1);
    border-radius: 10px; /* Opcional: para bordes redondeados */
}

header {
    background-color: #565a5e;
    color: #fff;
    padding-bottom: 0px;
    border-radius: 10px;
}

.logo-container {
    display: grid;
    grid-template-columns: auto 1fr auto; /* izquierda | centro | derecha */
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    animation: fadeInUp 1s ease-in-out;
    padding-left: 10px;
}

/* Se mantiene */
.logo {
    height: 100px;
    margin-right: 0; /* ya no hace falta margen porque usamos grid */
    margin-left: 20px;
}

/* Centro: título centrado (se mantiene .school-name) */
.logo-center {
    text-align: center;
}


.school-name {
    font-size: 2.0em;
    font-weight: bold;
    animation: fadeInUp 0.2s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Frase nueva debajo del título */
.school-phrase {
    margin-top: 6px;
    font-size: 1rem;
    line-height: 1.3;
    color: #e4e4e4;
    user-select: none; /* CSS estándar */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

nav {
    background-color: #ed1919;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 12px 0;
}

.nav-list li {
    margin: 0 10px;
    position: relative;
}

.nav-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: #fff;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, background-color 0.3s;
    padding: 5px 10px;
    transition: background-color 0.3s, opacity 0.3s;
    display: block;
    border-radius: 3px;
}

.nav-list a:hover {
    background-color: rgb(255, 255, 255);
    opacity: 0.9;
    color: #ed1919;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ed1919;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content ol{
    margin: 0;
    border-bottom: 1px solid #fff;
}

.dropdown-content ol a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content ol a:hover {
    background-color: rgb(255, 255, 255);
    color: #ed1919;
    border-radius: 0px;
}

section {
    margin-bottom: 20px;
}

section h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #000056;
    text-align: center;    
}

section p {
    font-size: 1.2em;
    line-height: 1.6;
}

.nav-list .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ed1919;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.nav-list .dropdown:hover .dropdown-content {
    display: block;
}

.nav-list .dropdown-content ol {
    margin: 0;
}

.nav-list .dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.nav-list .dropdown-content a:hover {
    background-color: rgb(255, 255, 255);
    opacity: 0.9;
    color: #ed1919;
}

main {
    padding: 0;
    border-radius: 10px;
    background-color: aliceblue;
    background-size: cover;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 500px;
    background-color: #ffff75;
    color: #000000;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 150%; /* Coloca el cuadro encima del texto */
    left: -125%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0px 0px 10px 0px rgb(193, 193, 193);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    text-align: center;
}

.footer {
    background-color: #565a5e;
    padding: 20px;
    color: #ffffff;
    border-radius: 10px;
    margin: 0 200px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(9, 0, 0, 0.1);
    margin-top: 2%;
}
.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    padding: 10px;
}

.footer-column.left {
    text-align: left;
}

.footer-column.right {
    text-align: right;
}

.separator {
    margin: 20px 0;
    border-top: 1px solid #ffffff;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #ffffff;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.tabla-centrada {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35vh;
}

table {
    border-collapse: collapse;
    width: 80%;
    text-align: center;
}

th, td {
    border: 1px solid black;
    padding: 10px;
    vertical-align: middle;
    text-align: center;
}

.caja {
    background-color: #818181;
    padding: 10px;
    margin: 10px auto;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 70px;
    border-radius: 5px;
}

.titulo-izquierda {
    text-align: center;
}

.titulo-derecha {
    text-align: center;
}

p{
    text-align: justify;
    padding: 5px;
    text-align: center;
}

.parrafo-okok{
    text-align: justify;
    font-size: 1.15em;
    padding: 20px;
}

.parrafo-caja {
    background-color: #e4e4e4;
    padding: 10px;
    margin: 10px auto;
    border: 1px solid #ccc;
    width: 100%;
    border-radius: 5px;
}

.column-image {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    transition: transform 0.3s ease;
}

.container-ms {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.column-ms {
    width: 49%;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #9c9c9c;
    border-radius: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 400ms ease-out;
}

.column-ms:hover{
	box-shadow: 5px 5px 20px rgba(0,0,0,0.4);
	transform: translateY(-3%);
}

.column-image:hover {
    transform: scale(1.1); /* Aumenta el tamaño al 110% en el hover */
}

.container-fv {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.column-fv {
    width: 49%;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #9c9c9c;
    border-radius: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 400ms ease-out;
}

.column-fv:hover{
	box-shadow: 5px 5px 20px rgba(0,0,0,0.4);
	transform: translateY(-3%);
}

.no-copiable {
    user-select: none; /* CSS estándar */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

.column {
    flex: 1;
    padding: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.image-column img {
    width: 40%;
    height: auto;
    display: block;
}

.text-column p {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.social-column p {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 15px; /* Añadido para separación entre el párrafo y las imágenes */
}

.social-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* Ajusta este valor según la separación deseada */
    width: 100%;
}

.social {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social img {
    width: 45px; /* Ajusta este valor según tus necesidades */
    height: auto;
    display: block;
}

.column-image:hover {
    transform: scale(1.1); /* Aumenta el tamaño al 110% en el hover */
}

@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Encabezado */
@media (max-width: 1200px) {

    .section-qs {
        width: 100%; /* Ocupa el ancho completo */
        margin: 20px 0; /* Ajusta el margen */
        padding: 10px; /* Ajusta el relleno */
    }

    .container{
        margin: 0 10px;
    }

    .contenido-card{
        font-size: 1em;
    }

    .parrafo-nose{
        font-size: 1em;
    }

    h2{
        font-size: 1.3em;
    }

    .simple-news-box{
        font-size: 0.8em;
    }
}

@media (max-width: 1200px) {

    .nav-list {
        display: none;
        flex-direction: column;
        align-items: left;
        width: 100%;
        background-color: #ed1919;
    }
  
    .nav-list.active {
        display: flex;
    }
  
    .nav-list li {
        margin: 10px 0;
        padding-left: 10px;
        padding-right: 10px;
    }
  
    .menu-icon {
        display: flex;
        padding-bottom: 35px;
        padding-top: 20px;
        margin-bottom: 10px;
        padding-left: 10px;
    }

    .nav-list a {
      border-bottom: 1px solid #fff;
      padding-bottom: 10px;
      padding-top: 10px;
      line-height: 15px;
    }
  
    .dropdown-content {
      position: absolute;
      width: 43%; /* Dropdowns ocupan todo el ancho en pantallas pequeñas */
      left: 10px;
      padding: 0;
      box-shadow: 0px 0px 20px rgb(255, 255, 255);
    }
}


/* Pie de Pagina */
@media (max-width: 1200px) {
    .footer {
        padding: 40px;
        margin: 0 10px; /* Elimina el margen horizontal en pantallas pequeñas */
        margin-top: 30px;
    }

    .footer-content {
        flex-direction: column; /* Cambia a diseño de columna para pantallas pequeñas */
        
    }

    .footer-column {
        flex: 1 1 auto; /* Ajusta el ancho automático para adaptarse al contenido */
        padding: 10px;
        text-align: center; /* Alineación al centro para pantallas pequeñas */
    }

    .image-column img {
        width: 25%; /* Ajusta el tamaño de la imagen para pantallas pequeñas */
    }

    .social img {
        width: 30px; /* Ajusta el tamaño de las imágenes de redes sociales para pantallas pequeñas */
    }

    .school-name{
        font-size: 1.4em;
        padding-left: 0px;
        padding-right: 20px;
        text-align: center;
    }

    .logo-container{
        padding-left: 20px;
    }
    
}



.main-ok{
    width: 100%;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
:root{
      --size-dos: 48px;      /* diámetro del círculo */
      --icon-dos: 23px;       /* tamaño del logo dentro */
      --gap-dos: 18px;
    }
    
.socials-dos{
      display:flex; align-items:center; gap:var(--gap-dos);
    }

    .socials-dos a{
      width:var(--size-dos); height:var(--size-dos);
      background:#fff; border-radius:50%;
      display:grid; place-items:center;
      text-decoration:none;
      box-shadow: 0 6px 18px rgba(0,0,0,.08);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
      border:1px solid rgba(0,0,0,.06);
    }

    .socials-dos a:hover{
      transform: translateY(-2px) scale(1.04);
      box-shadow: 0 10px 24px rgba(0,0,0,.12);
    }

    .socials-dos i{
      font-size:var(--icon-dos);
      line-height:1;
    }

    /* Colores oficiales */
    .facebook i{ color:#1877F2; }   /* Facebook Blue */
    .youtube  i{ color:#FF0000; }   /* YouTube Red  */

    /* Instagram gradient en el ícono (texto) */
    .instagram i{
      background:
        radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
      -webkit-background-clip:text;
      background-clip:text;
      color:transparent;
    }

    /* Accesibilidad: foco visible */
    .socials-dos a:focus{
      outline:none;
      box-shadow: 0 0 0 3px rgba(24,119,242,.25), 0 6px 18px rgba(0,0,0,.08);
    }

    /* ===== Responsivo ===== */

.rotar-imagen{
    user-select: none;         /* no seleccionar */
  -webkit-user-drag: none;   /* no arrastrar en WebKit */
  pointer-events: none;      /* los eventos pasan al overlay */
}

.rotar-imagen::after{
  content: "";
  position: absolute;
  inset: 0;                  /* overlay transparente */
  background: transparent;
}

.img-guard{
  position: relative; 
  display: inline-block;
}
.img-guard img{
  user-select: none;         /* no seleccionar */
  -webkit-user-drag: none;   /* no arrastrar en WebKit */
  pointer-events: none;      /* los eventos pasan al overlay */
}
.img-guard::after{
  content: "";
  position: absolute;
  inset: 0;                  /* overlay transparente */
  background: transparent;
}

/* Derecha: redes */
.socials {
    display: inline-flex;
    align-items: right;
    gap: 12px;
    margin-right: 30px;
}

.social-link {
    font-size: 1.25rem;
    text-decoration: none;
    opacity: 0.9;
    transition: transform 0.15s ease, opacity 0.15s ease;
    color: #ffffff;
    padding-bottom: 60px;
}

.social-link:hover,
.social-link:focus {
    opacity: 1;
    transform: translateY(-1px);
}


/* Ajuste para resoluciones más pequeñas */
@media screen and (max-width: 900px) {
    .container-ms,
    .container-fv {
        flex-direction: column;
        align-items: center;
    }

    .titulo-izquierda{
        font-size: 1.3em;
    }

    .titulo-derecha{
        margin-bottom: 20px;
        font-size: 1.3em;
        text-align: center;
    }

    .column-ms,
    .column-fv {
        width: 90%;
        margin-bottom: 20px; /* Espacio entre las columnas cuando se apilan */
    }

    .tabla-centrada {
        height: auto;
    }

    .tooltip .tooltiptext {
        width: 250px; /* Reducir el tamaño del tooltip en pantallas pequeñas */
        left: 50%;
        transform: translateX(-50%);
    }

    .container{
        margin: 0 10px;
    }

    .parrafo-okok{
        font-size: 1em;
    }
}
