/*-----------------------------------------
        Estilos del index.html
-------------------------------------------*/

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--color-fondo-blanco);
    color: var(--color-texto);
    margin: 0;
    padding: 0;
    font-size: 0.75rem; /* tamaño base en móviles */
}

.main-content {
    padding: 10px; /* padding reducido para pantallas pequeñas */
}

/* Ajuste responsive general */
@media (max-width: 768px) {
    body {
        font-size: 0.75rem;
    }

    .main-content {
        padding: 10px 5px;
    }
}


/*-----------------------------------------
    Header
-------------------------------------------*/
/* Header centrado */
.header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(209, 209, 209, 0.15);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    border-radius: 50px;
}


.logo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #011d34;
}

.logo-header img {
    height: 40px;
}

.titulo-header {
    font-size: 2rem;
    font-weight: bold;
    color: #ff5e00;
}

/* Menú */
.menu-header {
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    z-index: 1001;

}

.menu-header {
    display: flex;
    justify-content: end;
    margin-left: -90px;
    width: 100%;
}

.menu-header ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.menu-header li a {
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
    color: #011d34  ;
    font-weight: bold;
}


.menu-header li a.active::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff5e00;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #011d34;
    border-radius: 2px;
}

/* Overlay menú móvil */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 29, 52, 0.6);
    z-index: 900;
}

/* ==============================
   RESPONSIVE MÓVIL
============================== */
@media (max-width: 768px) {
    .titulo-header {
        display: none; /* Oculta el título en móvil */
    }

    .menu-header {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        width: 70%;
        background-color: #011d34;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 950;
    }

    .menu-header ul {
        flex-direction: column;
        gap: 2rem;
    }

    .menu-header li a {
        color: #fff;
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-header.active {
        right: 0;
    }

    .menu-overlay.active {
        display: block;
    }
}


/*-----------------------------------------
        NORMAS
-----------------------------------------*/

.normas-section {
    background-color: white;
}

/* Título principal */
.titulo-principal {
  font-size: 3rem;
  margin: 2rem;
  text-align: left;
  color: #011d34;
  margin-top: 100px;
}


.contenedor-normas {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
  gap: 2rem;
}

.columna-izquierda {
  flex: 2;
}

.norma {
  display: block;
  margin-bottom: 2rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.3);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.norma h2,
.norma p {
  margin: 0;
  text-align: left;
}


.titulo-norma {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ff5e00;
}

.descripcion-norma {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #333;
  text-align: left;
}

/* Columna derecha */
.columna-derecha {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Tarjetas */
.tarjeta-anuncio {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,3);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.tarjeta-anuncio img {
    max-width: 100%;
    border-radius: 12px;
}


/* ==============================
   Responsive Normas - Celular
============================== */
@media (max-width: 768px) {
  .titulo-principal {
    font-size: 2rem;        /* título más compacto */
    margin: 1.5rem 1rem;
    margin-top: 80px;
    text-align: center;     /* centrado en mobile */
  }

  .contenedor-normas {
    flex-direction: column; /* pasa a una sola columna */
    padding: 1rem;
    gap: 1.5rem;
  }

  .columna-izquierda {
    flex: unset;
    width: 100%;
  }

  .norma {
    margin-bottom: 1.5rem;
    padding: 1rem;
  }

  .titulo-norma {
    font-size: 1.25rem;
  }

  .descripcion-norma {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Columna derecha se apila abajo */
  .columna-derecha {
    flex: unset;
    width: 100%;
    margin-top: 1.5rem;
    gap: 1rem;
  }

  /* Publicidad: tarjetas más compactas */
  .tarjeta-anuncio {
    padding: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  .tarjeta-anuncio img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
}



/*-----------------------------------------
    Footer
-------------------------------------------*/
.footer {
    background-color: #011d34;
    color: white;
    padding: 30px 80px;
    font-family: Arial, sans-serif;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-titulo h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.footer-titulo p {
    font-size: 1.2rem;
}

.footer-redes a {
    color: white;
    font-size: 1.5rem;
    margin-left: 20px;
    position: relative;
    transition: transform 0.3s;
}

.footer-redes a:hover {
    transform: scale(1.2);
}

/* Tooltips */
.footer-redes a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff5e00;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.3s;
}

.footer-redes a:hover::after {
    opacity: 1;
}

/* Columnas */
.footer-columns {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.columna {
    flex: 1;
    min-width: 200px;
}

.columna h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.columna img {
    max-width: 20%;
}

.columna .col-items a,
.columna .col-items p {
    display: block;
    color: rgb(131, 131, 131);
    margin-bottom: 8px;
    text-decoration: none;
    transition: transform 0.3s;
    cursor: pointer;
}

.columna .col-items a:hover,
.columna .col-items p.zoom-hover:hover {
    transform: scale(1.1);
    color: #ff5e00;
}

.derechos {
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.8;
}


/* ==============================
   FOOTER RESPONSIVE
============================== */
@media (max-width: 768px) {
    .footer {
        padding: 30px 20px;  /* menos padding en móvil */
        text-align: center;
    }

    .footer-top {
        flex-direction: column; /* ✅ primero título, luego redes */
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .footer-titulo h2 {
        font-size: 1.8rem;
    }

    .footer-titulo p {
        font-size: 1rem;
    }

    .footer-redes {
        display: flex;
        justify-content: center;
        gap: 1.2rem;
        flex-wrap: wrap;
    }

    /* Columnas en vertical */
    .footer-columns {
        flex-direction: column;   /* ✅ apiladas */
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .columna {
        min-width: unset;
        width: 100%;   /* cada bloque ocupa todo el ancho */
    }

    .columna img {
        max-width: 100px; /* logo más grande y centrado */
        margin-bottom: 10px;
    }

    .columna h3 {
        margin-bottom: 10px;
    }

    .columna .col-items a {
        font-size: 1rem;
    }

    .derechos {
        margin-top: 15px;
        font-size: 0.75rem;
        text-align: center;
    }
}