/* Variables */
:root {
  --primary: #0066cc;
  --secondary: #3498db;
  --light: #ffffff;
  --dark: #1311b8;
  --accent: #fffb00;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  color: var(--primary);
  overflow-x: hidden;
}

span {
  display: flex;
  font-weight: bold;
  font-size: 1.5rem;
  margin-left: 50px ;
}

.logo {
  position: absolute;
  top: -10px;
  left: -20px;
  width: clamp(90px, 8vw, 120px);
  height: auto;
  transition: none;
  z-index: 50;
}

header {
  position: relative;
  width: 100vw;
  padding-block: clamp(0.35rem, 1.1vw, 0.7rem);
  padding-inline: clamp(0.6rem, 1.6vw, 1rem); 
  background-color: var(--primary);
  color: var(--light);
  box-shadow: 4px 4px 8px rgba(0, 47, 255, 0.178);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: clamp(0.75rem, 20vw, 2rem);
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--dark);
}

.nav-social {
  margin-right: 3%;
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}

.nav-social a {
  color: var(--light);
  font-size: 1.2rem;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-social a:hover {
  color: var(--dark);
}

.dropdown-content-contato {
  display: none;
  position: absolute;
  top: 100%;
  transform: translateX(-70%);
  background-color: var(--primary);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 10px -10px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  z-index: 1000;
}

.dropdown-content-contato a {
  font-size: 15px;
  color: var(--light);
  display: block;
  margin: 4px 0;
}

.dropdown-contato:hover .dropdown-content-contato {
  display: block;
  cursor: default;
}

.contato {
  color: var(--light);
  font-size: 1.3rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}

.dropdown-contato:hover .contato {
  color: var(--dark);
}

.nav-social a[aria-label="contato"]:hover+.dropdown-content-contato,
.dropdown-content-contato:hover {
  display: block;
  cursor: default;
}

.nav-social a[aria-label="contato"]:hover i {
  color: var(--dark);
  transition: color 0.3s;
}

.hero {
  position: relative;
  box-sizing: border-box;
  width: 100vw;
  height: min(60vh, 450px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:linear-gradient(rgba(0, 0, 0, 0.200), rgba(0, 0, 0, .3)), url("../img/hero.jpg") no-repeat center center;
  background-size: cover;
  box-shadow: 4px 4px 8px rgba(0, 47, 255, 0.178);
}

.herop {
  position: relative;
  width: 100vw;
  box-sizing: border-box;
  height: min(50vh, 450px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:linear-gradient(rgba(0, 0, 0, 0.200), rgba(0, 0, 0, .3)), url("../img/projeto.jpg") no-repeat center center;
  background-size: cover;
  box-shadow: 4px 4px 8px rgba(0, 47, 255, 0.178);
}

#inicio h1 {
  color: var(--light);
  font-weight: bolder;
  font-size: 2rem;
  background-color: rgba(0, 33, 82, 0.192);
  border-radius: 10px;
}

main {
  padding: 0.5rem 2rem;
  box-sizing: border-box;
  margin-top: 1.4rem;
}

.contenedor-principal {
  margin: 0 auto;
  display: flex;
  width: 100vw;
  box-sizing: border-box;
  gap: 1rem;
}

.indice-lateral {
  position: sticky;
  top: 0;
  height: 100vh;
  margin: 10px; 
  align-self: flex-start;
  width: clamp(800px, 15%, 1000px);
  background-color: var(--light);
  border-radius: 10px;
  box-shadow: 4px 4px 8px rgba(0, 47, 255, 0.178);
  padding: 1rem;
}

.indice-lateral ul {
  margin-left: 10%;
  display: flex;
  flex-direction: column;
}

.indice-lateral ol{
  margin-left: -10%;
  display: flex;
  flex-direction: column;
}

.indice-lateral a {
  word-wrap: break-word;
  text-decoration: none;
  color: var(--dark);
  font-size: 15px;
  transition: color 0.2s;
}

.indice-lateral a.active,
.indice-lateral a:hover {
  color: var(--secondary);
  background: none;
  font-weight: bold;
}

.section-block {
  width: min(1100px, 90%);
  margin: auto auto 2rem auto ;
  background-color: var(--light);
  border-radius: 30px;
  box-shadow: 4px 4px 8px rgba(0, 47, 255, 0.178);
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  filter: blur(16px);
  transition: opacity 0.8s cubic-bezier(.6,.2,.2,1), transform 0.8s cubic-bezier(.6,.2,.2,1), filter 0.8s cubic-bezier(.6,.2,.2,1);
}

.section-block.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.section-block h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: bolder;
  color: var(--dark);
}

.section-block h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bolder;
  color: var(--primary);
}

.section-block p {
  color: var(--dark);
  font-size: 1.2rem;
  text-align: justify;
  margin: 1rem;
  padding: 1.5rem;
}

.carrusel {
  width: 100%;
  max-width: 900px;
  height: 450px;
  margin: 40px auto 40px auto;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.carrusel img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center center;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
  z-index: 0;
  box-shadow: 4px 4px 8px rgba(0, 47, 255, 0.178);
}

.carrusel-img.active {
  opacity: 1;
  pointer-events: auto;
  position: absolute;
}

.carrusel-video {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 450px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 4px 4px 8px rgba(0, 47, 255, 0.178);
}

.carrusel-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carrusel-video .overlay-instagram {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
  border-radius: 10px;
  color: var(--light);
  text-decoration: none;
  font-size: 1.2rem;
  display: none;
  transition: all 0.3s ease;
}

.carrusel-video:hover .overlay-instagram {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.historia-page {  
  width: 85%;
  margin: 2rem auto 2rem auto;
  padding: 2rem;
  text-align: justify;
  color: var(--dark);
  background-color: var(--light);
  border-radius: 10px;
  box-shadow: 4px 4px 8px rgba(0, 47, 255, 0.178);
}

.historia-page h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: bolder;
  color: var(--primary);
}

.galeria-mosaico h1{
  text-align: center;
  font-size: 2rem;
  font-weight: bolder;
  color: var(--primary);
}

.historia-page p {
  color: var(--dark);
  font-size: 1.3rem;
  text-align: justify;
  margin-top: 1rem;
  padding: 1.5rem;
}

.galeria-mosaico {
  width: 90%;
  margin: 2rem auto 2rem auto;
  padding: 2rem;
  background: var(--light);
  border-radius: 10px;
  box-shadow: 4px 4px 8px rgba(0, 47, 255, 0.178);
  padding: 2rem;
}

.galeria-mosaico .section-title {
  margin-bottom: 2rem;
  color: var(--dark);
}

.mosaico-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.mosaico-grid img {
  width: 100%;
  height: clamp(180px, 20vh, 220px);
  /* Alto fijo para todas */
  display: block;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 60, 121, 0.10);
  background: var(--light);
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.mosaico-grid img:hover {
  transform: scale(1.05);
}

.overlay-blur {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 100vw;
  max-height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-blur::after {
  content: "✕";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-size: 22px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  z-index: 1002;
  pointer-events: auto;
  cursor: pointer;
}

@media (pointer: coarse) {
  .overlay-blur::after {
    width: 56px;
    height: 56px;
    font-size: 26px;
    top: 12px;
    right: 12px;
  }
}

.img-ampliada {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1001;
  object-fit: contain;
}

.img-ampliada:hover {
  transform: scale(1.05);
}

#contacto-fijo {
  background: var(--primary);
  color: var(--light);
  width: 100%;
  display: flex;
  padding: 1rem;
  margin-bottom: 0%;
}

.footer-info {
  font-size: 1.2rem;
  margin: auto auto auto 5%;
}

#contacto-fijo iframe {
  width: 50%;
  margin: auto 5% auto auto;
}