/* ================================
   VARIABLES
================================ */
:root {
  --acento: #027373;
  --acento2: #026873;
  --highlight: #e2f263;
  --blanco: #ffffff;
}

/* ================================
   RESET / BASE
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background:
    linear-gradient(160deg, rgba(0,0,0,0.85), rgba(0,0,0,0.9)),
    url("Img/fondo1.png") center top/cover fixed no-repeat;
  color: var(--blanco);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================================
   HEADER / NAV
================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: transparent;
  transition: .25s;
}
header.scrolled {
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.03);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.brand { display: flex; align-items: center; gap: .6rem; }

.logo-header {
  height: 45px;
  object-fit: contain;
}

.menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.menu a {
  font-size: .85rem;
  opacity: .8;
  transition: .2s;
}
.menu a:hover,
.menu a.active {
  opacity: 1;
  color: var(--highlight);
}

.nav-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ICONOS HEADER */
.nav-social {
  display: flex;
  gap: .6rem;
  align-items: center;
}
.nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(226,242,99,.4);
  display: grid;
  place-items: center;
  transition: .2s;
}
.nav-icon svg,
.nav-icon img {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,.4));
}
.nav-icon:hover {
  background: rgba(226,242,99,.15);
  transform: translateY(-1px);
}

.btn-cta-nav {
  background: var(--acento);
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
}

/* MENÚ MÓVIL */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-btn span {
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 99px;
}

/* ================================
   HERO
================================ */
.hero-full {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 7rem;
  background:
    linear-gradient(120deg, rgba(4,78,78,0.6), rgba(0,0,0,0.9)),
    url("Img/fondo1.png") center/cover no-repeat;
}

.hero-inner-centered {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.6rem;
  justify-items: center;
}

.hero-logo-only img {
  width: min(1080px, 90vw);
  filter: drop-shadow(0 22px 55px rgba(0,0,0,.5));
  animation: heroZoom 3s ease-out forwards;
  transition: transform .4s ease, filter .4s ease;
}
.hero-logo-only img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 30px 75px rgba(0,0,0,.6));
}

@keyframes heroZoom {
  0% {
    opacity: 0;
    transform: scale(.9) translateY(25px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}
.hero-buttons.center { justify-content: center; }

.btn-primary {
  background: linear-gradient(120deg, var(--acento), var(--acento2));
  border: none;
  color: white;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary {
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(226,242,99,.5);
  color: white;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
}
.hero-contact-inline.center {
  text-align: center;
  font-size: .85rem;
  opacity: .75;
}

/* ================================
   BOTONES FLOTANTES
================================ */
.insta-floating,
.call-floating {
  position: fixed;
  right: 1rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 9999;
}
.insta-floating {
  bottom: 5rem;
  background: radial-gradient(circle at 30% 30%, #f58529, #dd2a7b, #8134af, #515bd4);
}
.insta-floating svg {
  width: 28px;
  height: 28px;
}
.call-floating {
  bottom: 1rem;
  background: linear-gradient(140deg, #e2f263, #027373);
  color: #000;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* ================================
   SECCIONES
================================ */
.section-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1rem 1rem 1rem;
}

.section-title {
  font-size: 1.9rem;
  margin-bottom: 1.3rem;
  position: relative;
}
.section-title::after {
  content: "";
  width: 55px; height: 3px;
  background: var(--highlight);
  position: absolute;
  left: 0; bottom: -10px;
  border-radius: 999px;
}

.section-subtitle {
  opacity: .65;
  margin-bottom: 1.2rem;
}

/* ================================
   NOSOTROS
================================ */
.section-sobre {
  background:
    linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.95)),
    url("Img/fondo2.png") center/cover fixed;
  border-radius: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: flex-start;
}

.about-box {
  background: rgba(2,104,115,.23);
  border: 1px solid rgba(226,242,99,.08);
  border-radius: 1rem;
  padding: 1rem 1.3rem;
  margin-bottom: 1rem;
}

.about-list {
  margin-top: .4rem;
  margin-left: 1.3rem;
  opacity: .8;
  font-size: .86rem;
}

.about-muted {
  opacity: .7;
  font-size: .82rem;
}

/* ================================
   SERVICIOS
================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.3rem;
}
.service-card {
  background: rgba(2,104,115,.1);
  border: 1px solid rgba(255,255,255,.02);
  border-radius: 1rem;
  padding: 1.3rem 1.1rem;
  transition: .2s;
}
.service-card:hover {
  border-color: rgba(226,242,99,.6);
  transform: translateY(-3px);
}
.service-icon {
  width: 37px; height: 37px;
  border-radius: 14px;
  background: rgba(226,242,99,.12);
  border: 1px solid rgba(226,242,99,.5);
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
  color: #222;
}

/* ================================
   GALERÍA
================================ */
.section-galeria {
  background:
    linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.95)),
    url("Img/fondo3.png") center/cover fixed;
  border-radius: 1.5rem;
}
.sub-title-gal {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  opacity: .85;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .8rem;
}
.gallery-item {
  border-radius: .9rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid rgba(255,255,255,.03);
  cursor: pointer;
  transition: .2s;
}
.gallery-item:hover {
  transform: translateY(-2px);
}
.gallery-item::after {
  content: "Ver más";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(2,104,115,.55), rgba(0,0,0,0));
  opacity: 0;
  transition: .2s;
  display: grid;
  place-items: end;
  padding: .4rem .6rem;
  font-size: .7rem;
}
.gallery-item:hover::after { opacity: 1; }

/* videos */
.gallery-item.video::before {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: rgba(255,255,255,.95);
  text-shadow: 0 10px 25px rgba(0,0,0,.5);
  pointer-events: none;
}
.gallery-item .video-badge {
  position: absolute;
  top: .4rem;
  left: .4rem;
  background: rgba(0,0,0,.6);
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .6rem;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox-img,
.lightbox-video,
.lightbox-yt {
  max-width: 90%;
  max-height: 80vh;
  border-radius: .8rem;
  display: none;
  box-shadow: 0 0 40px rgba(0,0,0,.4);
  background: #000;
}
.lightbox-yt {
  width: min(900px, 90%);
  aspect-ratio: 16/9;
}
.cerrar {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  font-size: 2.2rem;
  cursor: pointer;
}

/* ================================
   CONTACTO
================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
form {
  background: rgba(24,24,24,.4);
  border: 1px solid rgba(255,255,255,.03);
  border-radius: 1rem;
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
}
label {
  font-size: .8rem;
  opacity: .7;
}
input, textarea {
  width: 100%;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(226,242,99,.03);
  border-radius: .6rem;
  padding: .55rem .7rem;
  color: white;
  outline: none;
}
textarea { min-height: 120px; }

.contact-info { display: grid; gap: 1rem; }
.contact-box {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.02);
  border-radius: .8rem;
  padding: .75rem .9rem;
}
.contact-muted { opacity: .7; }
.contact-foot { opacity: .45; font-size: .75rem; }

/* ================================
   MODAL FECHAS
================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
}
.modal.show { display: flex; }
.modal-content {
  background: #111;
  border: 1px solid rgba(226,242,99,.15);
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  padding: 1.1rem 1.3rem;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .7rem;
}
.modal-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}
.modal-subtitle {
  opacity: .6;
  font-size: .75rem;
  margin-bottom: .4rem;
}
.table-fechas {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  margin-bottom: .6rem;
}
.table-fechas th,
.table-fechas td {
  border: 1px solid rgba(255,255,255,.05);
  padding: .35rem .45rem;
}
.table-fechas th { background: rgba(2,104,115,.4); }
.badge-ocupada {
  background: rgba(255,77,77,.2);
  color: #ffbebe;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .65rem;
}
.modal-foot {
  opacity: .4;
  font-size: .7rem;
}

/* ================================
   FOOTER
================================ */
footer {
  margin-top: 3.5rem;
  text-align: center;
  padding: 1.5rem 1rem 2rem 1rem;
  background: rgba(0,0,0,.35);
  font-size: .75rem;
  color: rgba(255,255,255,.55);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 950px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons { flex-direction: column; }
  .hero-logo-only img {
    width: min(540px, 90vw);
  }
}

@media (max-width: 780px) {
  .menu {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: rgba(0,0,0,.95);
    flex-direction: column;
    gap: .7rem;
    padding: 1rem 1.1rem;
    border-radius: .8rem;
    width: 180px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
  }
  .menu.show {
    transform: translateY(4px);
    opacity: 1;
    pointer-events: all;
  }
  .menu-btn { display: flex; }
  .nav-social { display: none; }
  .hero-full { padding-top: 6.5rem; }
}

/* ===== AJUSTE EXTRA PARA SUBIR BOTONES ===== */
.hero-full {
  padding-top: 5.2rem !important;
}
.hero-inner-centered {
  margin-top: -17rem !important;
  gap: 1rem !important;
}
.hero-buttons {
  margin-top: .1rem !important;
}
.hero-contact-inline.center {
  margin-top: .15rem !important;
}
