@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap');


:root {
    --azul-oscuro: #0a2342;
    --blanco: #fff;
    --negro: #111;
    --naranja: #ff7300;
  }
  body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    background: var(--blanco);
    color: var(--negro);
    overflow-x: hidden;
  }
  /* BANNER SUPERIOR */
  .banner-superior {
    background: var(--azul-oscuro);
    color: var(--blanco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.18rem 0.7rem;
    font-size: 0.82rem;
    animation: aparecerArriba 1s;
  }
  .banner-superior .izquierda {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }
  .banner-superior .derecha a {
    color: var(--blanco);
    margin-left: 0.5rem;
    font-size: 1.05rem;
    transition: color 0.3s;
  }
  .banner-superior .derecha a:hover {
    color: var(--naranja);
  }
  
  /* BANNER PRINCIPAL */
  .banner-principal {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.05rem 0.5rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-height: 0px;
    position: relative;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .logo-titulo {
      display: flex;
      align-items: center;
      gap: 3rem;
      margin: 0 !important;
      padding: 0.05rem 0 !important;
  }
  .logo-grande {
      width: 110px;
      height: 110px;
      margin: -35px !important;
      padding: 0px 0px 0px 40px;
      object-fit: contain;
  }
  .titulo-grande {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0a2342;
    letter-spacing: 1px;
    white-space: pre-line;
    line-height: 1;
    margin: 0 !important;
    padding: 0 !important;
  }
  .banner-principal .logo {
    order: 1;
    margin: 0;
  }
  .banner-principal .logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 0;
    background: none;
    display: block;
  }
  .banner-principal nav {
    order: 2;
    margin-top: 0;
  }
  .banner-principal nav a {
    position: relative;
    text-decoration: none;
    color: var(--azul-oscuro);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1.1rem;
    border-radius: 18px;
    background: var(--blanco);
    border: 2px solid var(--azul-oscuro);
    box-shadow: 0 2px 8px rgba(10,35,66,0.08);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    overflow: hidden;
    z-index: 1;
  }
  .banner-principal nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 0;
    height: 3px;
    background: var(--naranja);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(.77,0,.18,1), left 0.3s cubic-bezier(.77,0,.18,1);
    z-index: 2;
  }
  .banner-principal nav a:hover {
    background: var(--azul-oscuro);
    color: var(--blanco);
    box-shadow: 0 6px 24px rgba(10,35,66,0.18);
    transform: translateY(-3px) scale(1.06);
  }
  .banner-principal nav a:hover::after {
    width: 80%;
    left: 10%;
  }
    .menu-hamburguesa {
      margin-left: auto;
      background: none;
      border: none;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 38px;
      height: 38px;
      cursor: pointer;
      z-index: 102;
    }
    .menu-hamburguesa span {
      width: 22px;
      height: 3px;
      margin: 3px 0;
      background: #0a2342;
      border-radius: 2px;
      transition: 0.3s;
      border: none !important;
      box-shadow: none !important;
    }
    .menu-desplegable {
      position: fixed;
      top: 0; right: -260px;
      width: 260px;
      height: 100vh;
      background: #0a2342;
      box-shadow: -4px 0 24px rgba(10,35,66,0.16);
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      padding: 3.5rem 1.5rem 1.5rem 1.5rem;
      gap: 2.1rem;
      z-index: 200;
      transition: right 0.5s cubic-bezier(.77,0,.18,1), opacity 0.4s;
      opacity: 0;
      pointer-events: none;
      border-radius: 18px 0 0 18px;
    }
    .menu-desplegable.abierto {
      right: 0;
      opacity: 1;
      pointer-events: all;
      animation: slideInMenu 0.6s cubic-bezier(.77,0,.18,1);
    }
    @keyframes slideInMenu {
      from { right: -260px; opacity: 0; }
      to { right: 0; opacity: 1; }
    }
    .menu-desplegable a {
      background: #0a2342 !important;
      color: #fff !important;
      border-radius: 16px !important;
      padding: 1.1rem 1.5rem !important;
      font-size: 1.18rem !important;
      font-weight: 500;
      box-shadow: 0 2px 8px rgba(10,35,66,0.10);
      border: none;
      margin-bottom: 0.7rem;
      display: flex;
      align-items: center;
      gap: 1.1rem;
      min-width: 170px;
      transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
      text-decoration: none !important;
    }
    .menu-desplegable a::after {
      display: none !important;
      content: none !important;
    }
    .menu-desplegable.abierto a {
      opacity: 1;
      transform: translateX(0);
    }
    .menu-desplegable a:hover {
      background: #fff !important;
      color: #0a2342 !important;
      box-shadow: 0 4px 16px rgba(10,35,66,0.18);
      transform: scale(1.06);
    }
    .menu-desplegable a i {
      font-size: 1.3rem;
      margin-right: 1.1rem;
      color: inherit !important;
    }
    @keyframes aparecerMenu {
      from { opacity: 0; transform: translateX(40px); }
      to { opacity: 1; transform: translateX(0); }
    }
    .cerrar-menu {
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #fff;
      position: absolute;
      top: 3.5rem;
      right: 1.2rem;
      cursor: pointer;
      padding: 0.2rem 0.7rem;
      box-shadow: none;
      border-radius: 50%;
      z-index: 201;
      transition: background 0.2s, color 0.2s;
      line-height: 1;
    }
    .cerrar-menu:hover {
      background: #fff;
      color: #0a2342;
    }
    .menu-desplegable .menu-titulo {
      color: #fff;
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 1.2rem;
      letter-spacing: 1px;
      margin-left: 0.2rem;
      opacity: 0.7;
      text-transform: uppercase;
      border-bottom: 1px solid rgba(255,255,255,0.12);
      width: 100%;
      padding-bottom: 0.7rem;
      line-height: 1;
    }
    .fondo-menu {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(10,35,66,0.18);
      z-index: 101;
    }
    .menu-desplegable.abierto ~ .fondo-menu {
      display: block;
    }
/* LINEA DIVISORIA */
.linea-divisoria {
  width: 100%;
  height: 4px;
  background: var(--azul-oscuro);
  border: none;
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* FOOTER */
footer {
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: 0.5rem 0.5rem 0.3rem 0.5rem;
  text-align: center;
  margin-top: 0rem;
  border-radius: 16px 16px 0 0;
  animation: aparecerAbajo 1.2s 0.7s backwards;
  font-size: 0.60rem;
}
.pie-logo {
  width: 95px;
  margin: 0 auto 0.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pie-logo img {
  width: 100%;
  height: auto;
  max-width: 95px;
  object-fit: contain;
  display: block;
}
.footer-powered {
  font-size: 0.5rem;
  color: #b0c4d8;
  margin-top: 0.2rem;
  text-align: center;
}
.footer-textos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

/* WHATSAPP FLOTANTE */
.whatsapp-flotante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}
.whatsapp-flotante a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(10,35,66,0.18);
  font-size: 1.5rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  text-decoration: none;
}
.whatsapp-flotante a:hover {
  background: #1ebe57;
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(10,35,66,0.25);
}

/* --- PROPIEDADES PERSONALIZADAS DE HISTORIA --- */

.modal-imagen {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(10,35,66,0.85);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.modal-contenido {
    margin: auto;
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(10,35,66,0.25);
    background: #fff;
}
.cerrar-modal {
    color: #fff;
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
}
.cerrar-modal:hover {
    color: var(--naranja);
}

.contenedor {
    max-width: 900px;
    margin: 48px auto 0 auto;
    background: #fff;
    padding: 48px 38px 38px 38px;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(10,35,66,0.10);
    transition: box-shadow 0.3s;
    animation: aparecerAbajo 1.2s 0.5s backwards;
}
.contenedor:hover {
    box-shadow: 0 12px 48px rgba(10,35,66,0.16);
}
.contenedor h1 {
    color: #0a2342;
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    opacity: 0;
    transform: scale(0.95);
    animation: popIn 0.8s 0.2s forwards;
}
.contenedor p {
    color: #222;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.3em;
    text-align: justify;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.9s forwards;
}
.contenedor p:nth-child(2) { animation-delay: 0.1s; }
.contenedor p:nth-child(3) { animation-delay: 0.2s; }
.contenedor p:nth-child(4) { animation-delay: 0.3s; }
.contenedor p:nth-child(5) { animation-delay: 0.4s; }
.contenedor p:nth-child(6) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.contenedor p:last-child {
    margin-bottom: 0;
}
@media (max-width: 900px) {
    .contenedor {
        padding: 22px 8px;
        border-radius: 12px;
    }
    .contenedor h1 {
        font-size: 1.3rem;
    }
    .contenedor p {
        font-size: 1rem;
    }
}
.menu-desplegable a, a {
    text-decoration: none !important;
}

.banner-portada {
    min-height: 440px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    padding-top: 0 !important;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInBanner 1.1s 0.2s forwards;
}
@keyframes fadeInBanner {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.banner-portada-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,35,66,0.45);
    z-index: 1;
}
.banner-portada-texto {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 2.5rem 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInBannerText 1.1s 0.5s forwards;
}
@keyframes fadeInBannerText {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.titulo-portada {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.subtitulo-portada {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0 auto;
    max-width: 700px;
}
.galeria-mosaico {
    max-width: 1200px;
    margin: 2.5rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
    opacity: 0;
    animation: fadeInGal 1.2s 0.7s forwards;
}
@keyframes fadeInGal {
    from { opacity: 0; }
    to { opacity: 1; }
}
.mosaico-fila {
    display: flex;
    gap: 1.5rem;
}
.mosaico-fila img {
    flex: 1 1 0;
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(10,35,66,0.10);
    background: #eaeaea;
    transition: transform 0.4s cubic-bezier(.77,0,.18,1), box-shadow 0.3s;
    cursor: pointer;
    padding: 10px;
}

.mosaico-fila img[src*="logo.png"] {
    object-fit: contain;
    background: #f5f5f5;
    padding: 15px;
}

/* apariencia de foto2 */
.mosaico-fila img[src*="foto2.jpg"] {
    object-fit: contain;
    object-position: center;
}

/* apariencia de foto4 */
.mosaico-fila img[src*="foto4.jpg"] {
    object-fit: contain;
    object-position: center;
}

/* Estilo para imágenes que no cargan */
.mosaico-fila img:not([src]), 
.mosaico-fila img[src=""],
.mosaico-fila img[src*="undefined"] {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

.mosaico-fila img:not([src])::after, 
.mosaico-fila img[src=""]::after,
.mosaico-fila img[src*="undefined"]::after {
    content: "Imagen no disponible";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.mosaico-fila img:hover {
    transform: scale(1.08) rotate(-1deg);
    box-shadow: 0 8px 32px rgba(10,35,66,0.18);
    z-index: 2;
}
@media (max-width: 900px) {
    .banner-portada {
        min-height: 260px;
    }
    .titulo-portada {
        font-size: 1.5rem;
    }
    .subtitulo-portada {
        font-size: 1rem;
    }
    .galeria-mosaico {
        gap: 0.7rem;
    }
    .mosaico-fila {
        gap: 0.7rem;
    }
    .mosaico-fila img {
        height: 110px;
        padding: 5px;
    }
}

@media (max-width: 700px) {
    .acerca-minimal {
        min-height: unset;
        box-shadow: 0 2px 12px rgba(10,35,66,0.08);
        border-radius: 12px;
        padding: 0;
    }
    .acerca-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .acerca-titulo {
        align-items: flex-start;
        padding: 2.2rem 0 0.5rem 1.2rem;
        min-width: unset;
    }
    .acerca-titulo h1 {
        font-size: 1.5rem;
        text-align: left;
        letter-spacing: 0.05em;
    }
    .acerca-linea {
        width: 60%;
        margin-bottom: 10px;
        margin-left: 0;
    }
    .acerca-texto {
        padding: 0 1.2rem 1.2rem 1.2rem;
    }
    .acerca-texto p {
        font-size: 1rem;
    }
}

.acerca-minimal {
    max-width: 1100px;
    margin: 18px auto 0 auto;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 320px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.acerca-grid {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 0;
    width: 100%;
    align-items: center;
}
.acerca-titulo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 0 2.5rem 0 0;
    min-width: 220px;
    animation: fadeInLeft 1s 0.1s both;
}
.acerca-linea {
    width: 80%;
    height: 2px;
    background: #0a2342;
    margin-bottom: 18px;
    margin-right: 0;
    opacity: 0.4;
}
.acerca-titulo h1 {
    font-family: 'Roboto Slab', 'Roboto', serif;
    font-size: 2rem;
    font-weight: 900;
    color: #0a2342;
    letter-spacing: 0.18em;
    line-height: 1.05;
    text-align: right;
    margin: 0;
    opacity: 0;
    transform: translateX(-40px);
    animation: fadeInLeft 1s 0.2s forwards;
}
.acerca-texto {
    padding: 0 2.5rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInRight 1s 0.3s both;
}
.acerca-texto p {
    color: #232323;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2em;
    text-align: justify;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.9s forwards;
}
.acerca-texto p:nth-child(1) { animation-delay: 0.4s; }
.acerca-texto p:nth-child(2) { animation-delay: 0.5s; }
.acerca-texto p:nth-child(3) { animation-delay: 0.6s; }
.acerca-texto p:nth-child(4) { animation-delay: 0.7s; }
.acerca-texto p:nth-child(5) { animation-delay: 0.8s; }
.acerca-texto p:last-child { margin-bottom: 0; }
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.footer-sponsor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.footer-sponsor .pie-logo {
    margin: 0;
    width: 90px;
    height: 90px;
}
.footer-sponsor .pie-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.footer-sponsor-textos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 400;
}
@media (max-width: 700px) {
    .footer-sponsor {
        flex-direction: column;
        gap: 0.7rem;
        margin-bottom: 0.7rem;
    }
    .footer-sponsor .pie-logo {
        width: 60px;
        height: 60px;
    }
    .footer-sponsor-textos {
        font-size: 0.98rem;
        align-items: center;
    }
} 
/* PROPIEDADES PERSONALIZADAS HISTORIA */ 

@media (max-width: 700px) {
  .banner-superior, .banner-principal {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem;
    min-height: 70px;
  }
  .logo-titulo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .logo-grande {
    width: 60px;
    height: 60px;
  }
  .titulo-grande {
    font-size: 1.2rem;
  }
  .footer-textos {
    font-size: 0.98rem;
  }
  .pie-logo img {
    width: 60px;
    max-width: 60px;
  }
  .contenedor {
    padding: 1.2rem 0.7rem;
    font-size: 1rem;
  }
}