:root {
  --azul-oscuro: #0c4a6e;
  --azul-medio: #0284c7;
  --azul-claro: #e0f2fe;
  --blanco: #ffffff;
  --texto: #1f2937;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--texto);
  background: linear-gradient(180deg, #f8fdff 0%, #eef9ff 100%);
  line-height: 1.6;
}

body.menu-abierto {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  color: white;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  animation: slider 24s infinite ease-in-out;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 20, 34, 0.66), rgba(12, 74, 110, 0.58));
}

.slide1 {
  background-image: url('./img/foto1.JPG');
  animation-delay: 0s;
}

.slide2 {
  background-image: url('./img/foto2.png');
  animation-delay: 6s;
}

.slide3 {
  background-image: url('./img/foto3.jpeg');
  animation-delay: 12s;
}

.slide4 {
  background-image: url('./img/foto4.jpeg');
  animation-delay: 18s;
}

@keyframes slider {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  8% {
    opacity: 1;
    transform: scale(1);
  }
  25% {
    opacity: 1;
    transform: scale(1);
  }
  33% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
  }
}

.nav-wrap,
.hero-contenido {
  position: relative;
  z-index: 3;
}

.nav-wrap {
  width: 100%;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.brand {
  text-decoration: none;
  color: white;
}

.logo-texto {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 1.4px;
  font-size: 1.35rem;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.logo-img {
  width: 130px;
  height: auto;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.04);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  justify-content: flex-end;
  align-items: center;
}

.nav-links li {
  display: flex;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.4px;
  position: relative;
  padding: 8px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: white;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--azul-claro);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 999px;
  display: block;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 998;
}

.menu-overlay.activo {
  opacity: 1;
  pointer-events: auto;
}

.menu-movil {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #0d1117;
  color: white;
  padding: 24px 32px 40px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.menu-movil.activo {
  transform: translateY(0);
}

.menu-movil-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-logo {
  width: 100px;
  height: auto;
  background: white;
  border-radius: 16px;
  padding: 10px 14px;
}

.menu-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.menu-close:hover {
  background: rgba(255,255,255,0.1);
}

.menu-movil ul {
  list-style: none;
  flex: 1;
}

.menu-movil li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-movil a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  padding: 22px 0;
  transition: color 0.2s ease;
}

.menu-movil a::after {
  content: '›';
  font-size: 2rem;
  opacity: 0.5;
}

.menu-movil a:hover {
  color: var(--azul-claro);
}

.hero-contenido {
  margin: auto;
  max-width: 1180px;
  width: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 100%;
  padding: 40px 0 10px;
  width: 100%;
}

.hero-etiqueta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.hero-contenido h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -1.5px;
  font-weight: 800;
  max-width: 100%;
  margin-bottom: 22px;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.hero-contenido p {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 100%;
  margin-bottom: 34px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
}

.hero-acciones {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.boton {
  display: inline-block;
  background: white;
  color: var(--azul-oscuro);
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--sombra);
  transition: 0.25s;
  border: none;
  cursor: pointer;
}

.boton-secundario {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.boton:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.seccion {
  max-width: 1100px;
  margin: auto;
  padding: 80px 24px;
}

.seccion h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.3rem;
  margin-bottom: 18px;
  color: var(--azul-oscuro);
}

.tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.tarjeta {
  background: white;
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--sombra);
  transition: 0.3s;
}

.tarjeta img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:20px;
  display:block;
}

.tarjeta:hover {
  transform: translateY(-6px);
}

.tarjeta h3 {
  color: var(--azul-medio);
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.galeria-seccion {
  padding-top: 40px;
}

.galeria-cabecera {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.galeria-cabecera h2 {
  margin-bottom: 12px;
}

.galeria-cabecera p {
  font-size: 1.08rem;
  color: #475569;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.galeria-item {
  position: relative;
  grid-column: span 4;
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--sombra);
  background: #dbeafe;
}

.galeria-item.grande {
  grid-column: span 8;
  min-height: 420px;
}

.galeria-item.alta {
  min-height: 420px;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(to top, rgba(12, 74, 110, 0.78), rgba(12, 74, 110, 0.08));
  color: white;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.galeria-overlay h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.galeria-overlay p {
  font-size: 0.95rem;
  opacity: 0.95;
}

.galeria-item:hover img {
  transform: scale(1.07);
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.contacto {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contacto-info p {
  color: #475569;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.formulario {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: white;
  padding: 34px;
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(2, 132, 199, 0.08);
}

.formulario label {
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: -4px;
}

.formulario input,
.formulario textarea,
.formulario select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  font: inherit;
  background: #f8fafc;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.formulario input:focus,
.formulario textarea:focus,
.formulario select:focus {
  outline: none;
  border-color: var(--azul-medio);
  background: white;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.formulario textarea {
  resize: vertical;
  min-height: 150px;
}

.footer {
  text-align: center;
  padding: 30px;
  background: var(--azul-oscuro);
  color: white;
}

.boton-arriba {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--azul-medio), var(--azul-oscuro));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.boton-arriba.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.boton-arriba:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.boton-arriba:active {
  transform: translateY(-2px);
}

.imagen-gunitado {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .galeria-item,
  .galeria-item.grande,
  .galeria-item.alta {
    grid-column: span 6;
    min-height: 280px;
  }

  .nav {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  .logo-img {
    width: 110px;
  }

  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 18px;
  }

  .nav {
    grid-template-columns: 1fr auto auto;
    padding: 14px 18px;
    border-radius: 22px;
  }

  .logo-img {
    width: 72px;
    justify-self: center;
  }

  .logo-texto {
    font-size: 1.05rem;
    letter-spacing: 1px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .contacto {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-contenido {
    text-align: left;
  }

  .hero-copy {
    padding-top: 54px;
  }

  .hero-contenido h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 8vw, 3.8rem);
    letter-spacing: -1px;
  }

  .hero-contenido p {
    max-width: 100%;
    margin-bottom: 26px;
  }

  .hero-acciones {
    flex-direction: column;
    align-items: stretch;
  }

  .galeria-grid {
    grid-template-columns: 1fr;
  }

  .galeria-item,
  .galeria-item.grande,
  .galeria-item.alta {
    grid-column: span 1;
    min-height: 260px;
  }

  .formulario {
    padding: 24px 20px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 58px;
  }

  .logo-texto {
    font-size: 0.92rem;
  }

  .hero-contenido h1 {
    font-size: 2.1rem;
  }

  .hero-etiqueta {
    font-size: 0.85rem;
  }

  .menu-movil a {
    font-size: 1.7rem;
  }

  .boton {
    width: 100%;
    text-align: center;
  }

  .boton-arriba {
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .galeria-item,
  .galeria-item.grande,
  .galeria-item.alta {
    min-height: 230px;
  }
}

/* ===== CONTADORES ===== */
.seccion-contadores {
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
  padding: 60px 24px;
}

.contadores-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.contador-item {
  color: white;
}

.contador-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
}

.contador-plus {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--azul-claro);
}

.contador-item p {
  margin-top: 10px;
  font-size: 1rem;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.3px;
}

@media (max-width: 600px) {
  .contadores-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== REDES SOCIALES ===== */
.redes-subtitulo {
  color: #475569;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.redes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.red-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px;
  border-radius: 22px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--sombra);
}

.red-card svg {
  width: 40px;
  height: 40px;
}

.red-card small {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.85;
}

.red-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.red-instagram {
  background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4);
}

.red-tiktok { background: #010101; }
.red-facebook { background: #1877F2; }

/* ===== BOTÓN WHATSAPP CONTACTO ===== */
.boton-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  background: #25D366;
  color: white;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 35px rgba(37,211,102,0.35);
  transition: .3s;
  margin-top: 22px;
}

.boton-whatsapp:hover {
  transform: translateY(-3px);
}

.wsp-icono {
  width: 26px;
  height: 26px;
  display: flex;
}

.wsp-icono svg {
  width: 100%;
  height: 100%;
}

/* ===== PAGINAS LEGALES ===== */
.legal-body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: 'Inter', Arial, sans-serif;
  color: white;
}

.legal-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(7, 18, 31, 0.78), rgba(12, 74, 110, 0.82)),
    url('./img/foto1.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.legal-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.10), transparent 30%),
    radial-gradient(circle at bottom left, rgba(2,132,199,0.18), transparent 35%);
  pointer-events: none;
}

.legal-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 35px;
  padding-bottom: 20px;
  position: relative;
  z-index: 20;
}

.legal-header a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.44);
  padding: 14px 28px;
  border-radius: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.legal-header a:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.legal-logo-centro {
  width: 95px;
  height: auto;
  display: block;
  object-fit: contain;
}

.logo-legal {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.logo-legal:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
  background: rgba(255, 255, 255, 0.98);
}

.logo-legal img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.legal-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 20px 80px;
}

.legal-card {
  width: min(100%, 980px);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 42px 38px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-card h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 26px;
  color: white;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.legal-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-top: 34px;
  margin-bottom: 12px;
  color: #d8f1ff;
}

.legal-card h2:not(:first-of-type) {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-card p,
.legal-card li {
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.94);
}

.legal-card p + p {
  margin-top: 14px;
}

.legal-card ul {
  margin-top: 12px;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card strong {
  color: white;
  font-weight: 800;
}

.legal-card a {
  color: #bfe9ff;
  text-decoration: none;
  font-weight: 600;
}

.legal-card a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-header {
    padding-top: 22px;
    padding-bottom: 14px;
  }

  .legal-header a {
    padding: 10px 20px;
    border-radius: 18px;
  }

  .legal-logo-centro {
    width: 78px;
  }

  .logo-legal {
    top: 16px;
    left: 16px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .logo-legal img {
    width: 20px;
    height: 20px;
  }

  .legal-wrap {
    padding: 20px 16px 40px;
  }

  .legal-card {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .legal-card p,
  .legal-card li {
    font-size: 0.98rem;
    line-height: 1.75;
  }
}

@media (max-width: 480px) {
  .legal-logo-centro {
    width: 68px;
  }

  .legal-card h1 {
    font-size: 2rem;
  }

  .legal-card h2 {
    font-size: 1.12rem;
  }
}

/* =========================
   HERO GALERÍA
========================= */

.hero-galeria {
  min-height: 68vh;
}

/* =========================
   GALERÍA PRO
========================= */

.galeria-seccion-pro {
  max-width: 1240px;
  margin: auto;
  padding: 90px 24px;
}

.galeria-cabecera-pro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.galeria-cabecera-pro h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 12px;
  color: var(--azul-oscuro);
}

.galeria-cabecera-pro p {
  font-size: 1.08rem;
  color: #475569;
}

.galeria-grid-pro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.galeria-card {
  position: relative;
  grid-column: span 4;
  min-height: 320px;
  border: 0;
  padding: 0;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: #0f172a;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  appearance: none;
  -webkit-appearance: none;
}

.galeria-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
}

.galeria-card:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.55);
  outline-offset: 4px;
}

.galeria-card-grande {
  grid-column: span 8;
  min-height: 420px;
}

.galeria-card-alta {
  min-height: 420px;
}

.galeria-card img,
.galeria-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.galeria-card:hover img,
.galeria-card:hover video {
  transform: scale(1.08);
}

.galeria-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 20, 34, 0.86), rgba(8, 20, 34, 0.1) 50%, transparent);
  z-index: 1;
}

.galeria-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.galeria-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 24px;
  color: white;
}

.galeria-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.galeria-info p {
  font-size: 0.95rem;
  opacity: 0.92;
}

.galeria-video-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background:
    linear-gradient(rgba(8, 20, 34, 0.55), rgba(12, 74, 110, 0.7)),
    url('./img/foto2.png') center/cover no-repeat;
  color: white;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  font-size: 2rem;
  padding-left: 4px;
  box-shadow: 0 18px 35px rgba(0,0,0,0.28);
}

.galeria-video-placeholder strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
}

.galeria-video-placeholder small {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.activo {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-cerrar {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-cerrar:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-contenido {
  width: 100%;
  max-width: min(1180px, 92vw);
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-contenido img,
.lightbox-contenido video {
  max-width: 100%;
  max-height: 78vh;
  display: block;
  border-radius: 22px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.lightbox-titulo {
  margin-top: 16px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .galeria-card,
  .galeria-card-grande,
  .galeria-card-alta {
    grid-column: span 6;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-galeria {
    min-height: 56vh;
  }

  .galeria-grid-pro {
    grid-template-columns: 1fr;
  }

  .galeria-card,
  .galeria-card-grande,
  .galeria-card-alta {
    grid-column: span 1;
    min-height: 260px;
  }

  .galeria-info {
    padding: 20px;
  }

  .lightbox-cerrar {
    top: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}

/* =========================
   VIDEO INDEX
========================= */

.visor {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
}

.visor img,
.visor video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   VIDEO GALERIA
========================= */

.galeria-card-video {
  min-height: 320px;
}

.galeria-video {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* =========================
   WASAPP IDEA
========================= */

.whatsapp-demo {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.chat-burbuja {
  background: #f1f5f9;
  padding: 14px 18px;
  border-radius: 18px 18px 18px 6px;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  font-size: 15px;
  line-height: 1.4;
  color: #24313f;
}

.chat-burbuja.respuesta {
  background: #25D366;
  color: white;
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
}

/* ===== DEMO CHAT WHATSAPP ===== */
.contacto-chat-box {
  margin: 30px 0 0;
  padding: 25px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#chatMensaje,
#chatRespuesta {
  transition: opacity .25s ease;
}



.privacidad-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:12px;
}

.privacidad-row input{
  width:auto;
  margin-top:4px;
  accent-color:#0284c7;
  flex:0 0 auto;
}

.privacidad-row label{
  margin:0;
  font-size:0.95rem;
  line-height:1.5;
  font-weight:600;
}

.privacidad-row a{
  color:var(--azul-medio);
}