:root {
  --verde: #1f4d2b;
  --verde-oscuro: #14351e;
  --dorado: #d4a017;
  --gris: #f5f5f5;
  --blanco: #ffffff;
  --sombra: 0 6px 18px rgba(0,0,0,0.15);
  --transicion: all 0.4s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--gris);
  color: #333;
}

.nav {
  position: relative;
}

/* ===============================
   HEADER DORADO ARMONIZADO
================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(201, 162, 39, 0.40),
    rgba(31, 77, 43, 0.30)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* TEXTO Y LINKS */
.header .logo h1,
.header .logo span,
.header .menu a {
  color: #000000;
}

/* SUBRAYADO DORADO */
.header .menu a::after {
  background: #b78900;
}

/* HEADER AL HACER SCROLL */
.header.scrolled {
  background: linear-gradient(
    135deg,
    rgba(168, 131, 26, 0.95),
    rgba(31, 77, 43, 0.95)
  );
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}


/* ===============================
   LOGO IMAGEN + TEXTO
================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo img {
  height: 130px;
  width: auto;
  object-fit: contain;
}

.logo-texto h1 {
  font-size: 1.4rem;
  line-height: 1.1;
  margin: 0;
}

.logo-texto span {
  font-size: 0.8rem;
  opacity: 0.85;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  /*position: relative;*/
}

.menu li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--dorado);
  bottom: -6px;
  left: 0;
  transition: var(--transicion);
}

.menu li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===============================
   BANNER CON BACKGROUND SLIDER
================================ */
.banner {
  width: 100%;
  height: calc(100vh - 110px); /* ocupa casi toda la pantalla */
  min-height: 700px;           /* 🔥 altura mínima mayor */
  background-image: url("../assets/primera_impresion.jpg"); /* imagen inicial */
  background-size: cover;        /* mantiene proporción */
  background-position: center;   /* centra correctamente */
  background-repeat: no-repeat;
  position: relative;
  transition: background-image 1s ease-in-out;
}

/* ===============================
   MODAL FLOTANTE EN SLIDER
================================ */
.banner-modal {
  position: absolute;
  top: 80%;
  right: 2%;
  transform: translateY(-50%);
  max-width: 420px;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 207, 51, 0.25),
    rgba(233, 251, 238, 0.25)
  );
  color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: slideInRight 1s ease;
}

/* TEXTO */
.banner-modal h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.banner-modal p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* CAPA OSCURA */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 77, 43, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  padding-top: 2rem;
}

.banner-overlay h2 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

.banner-overlay p {
  max-width: 700px;
  font-size: 1.2rem;
}

/* CONTENEDOR DE SLIDES */
.slider {
  position: absolute;
  inset: 0;
}

/* IMÁGENES */
.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* CLAVE: mantiene proporción */
  object-position: center; /* evita cortes raros */
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* IMAGEN ACTIVA */
.slider img.active {
  opacity: 1;
}

/* CAPA OSCURA + TEXTO */
.banner-texto {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: rgba(31, 77, 43, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.banner-texto h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

/* INFO */
.info {
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.info h2 {
  color: var(--verde);
  margin-bottom: 1rem;
}

/* ===============================
   SECCIÓN VIDEO
================================ */
.video-section {
  min-height: 80vh;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 0;
}
.video-wrapper {
  position: relative;
  width: 85%;
  max-width: 1100px;
}
.promo-video {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,.7);
}
.video-container {
  position: relative;
  max-width: 1100px;
  margin: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}
.sound-overlay {
  position: absolute;
  bottom: 25px;
  right: 25px;
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  backdrop-filter: blur(6px);
  transition: opacity .3s;
}

.sound-overlay:hover {
  background: rgba(255,215,0,.9);
  color: #000;
}
/* VIDEO */
.video-container video {
  width: 100%;
  height: auto;
  display: block;
}
/* TEXTO SOBRE VIDEO */
.video-overlay-text {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(31, 77, 43, 0.6),
    rgba(0,0,0,0.2)
  );
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}
.video-overlay-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.video-overlay-text p {
  font-size: 1rem;
  max-width: 600px;
}

/* ===============================
   CARDS DESTACADOS CON IMAGEN
================================ */
.destacados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

/* IMAGEN */
.card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-img img {
  transform: scale(1.08);
}

/* CONTENIDO */
.card-content {
  padding: 1.6rem;
  text-align: center;
}

.card-content h3 {
  color: var(--verde);
  margin-bottom: 0.6rem;
}

.card-content p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* GALERÍA */
.galeria {
  padding: 4rem 2rem;
  background: var(--blanco);
}

.galeria h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--verde);
}

.grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--sombra);
  transition: var(--transicion);
}

.grid img:hover {
  transform: scale(1.05);
}

/* FOOTER */
.footer {
  background: var(--verde-oscuro);
  color: var(--blanco);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* MENU RESPONSIVE 
==================*/
@media (max-width: 768px) {
  .nav {
    width: 100%;
  }

  .menu {
    display: none;
    flex-direction: column;
    /*background: var(--blanco);*/
    background-color: rgba(255, 255, 255, 0.50);
    position: absolute;
    top: 100%;
    right: 0;
    width: 90px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    padding: 0;
    margin: 0;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    border-bottom: 1px solid #eee;
    width: 100%;
    margin: 0;
  }

  .menu li a {
    font-size: 14px; 
    padding: 4px 4px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    word-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.0; 
    transition: all 0.3s ease;
  }

  .menu li a:hover {
    background-color: rgba(0,102,204,0.1);
    color: #008425;
    box-shadow: inset 3px 0 0 var(--dorado);
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
  }

  .banner-texto h2 {
    font-size: 2rem;
  }
}
/* ===============================
   GALERÍA SLIDER
================================ */
.gallery-section {
  padding: 2rem 0;
  background: #f5f5f5;
  text-align: center;
}

.gallery-title {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #333;
}

.gallery-slider {
  position: relative;
  width: 80%;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.gallery-item {
  min-width: 100%;
  height: 80vh;           /* ← antes 100vh o auto */
  object-fit: cover;      /* mantiene proporción */
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

/* Botones */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 14px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  justify-content: center;
  z-index: 10;
}

.gallery-btn.prev { left: 15px; }
.gallery-btn.next { right: 15px; }

.gallery-btn:hover {
  background: rgba(201, 162, 63, 0.9);
  color: #000;
}
.gallery-btn::before {
  content: '';
}

/* Indicadores */
.gallery-dots {
  margin-top: 20px;
}

.gallery-dots span {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  display: inline-block;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.gallery-dots span.active {
  background: #c9a23f;
}

/* ===============================
   MODAL
================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
/* ===============================
   SECCIÓN FONDO
================================ */
.lead-section {
  position: relative;
  height: 70vh;
  background: url("../assets/fondo1.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.lead-content {
  position: relative;
  color: #fff;
  text-align: center;
  z-index: 2;
}

/* ===============================
   MODAL FORMULARIO
================================ */
/* ===============================
   SECCIÓN FONDO
================================ */
.lead-bg {
  height: 80vh;
  background: url("../assets/fondo1.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: left;
  position: relative;
}

/* ===============================
   FORMULARIO (OCULTO POR DEFECTO)
================================ */
.lead-form-container {
  background: rgba(255, 255, 255, 0.85);
  width: 70%;
  height: 85%;
  max-width: 900px;
  padding: 1.5rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

/* Mostrar al pasar el mouse */
.lead-bg:hover .lead-form-container {
  opacity: 0.85;
  transform: translateY(0);
}

/* ===============================
   TEXTO
================================ */
.lead-form-container h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.lead-form-container p {
  margin-bottom: 20px;
  font-size: 15px;
  color: #333;
}

/* ===============================
   FORMULARIO
================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

input, textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #999;
  padding: 10px;
  background: transparent;
  font-size: 15px;
}
.checkbox{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}
textarea {
  resize: none;
  height: 80px;
  margin-bottom: 15px;
}

/* ===============================
   OPCIONES
================================ */
.form-options {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: left;
  margin-bottom: 10px;
  font-size: 14px;
/*  display: flex;
  align-items: left; 
  justify-content: flex-start; 
  justify-content: left;
  align-items: left;
  */
}
.radio-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.radio-group span {
  font-weight: 500;
  margin-right: 10px;
}

.radio-group label {
 display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* ===============================
   BOTÓN
================================ */
button {
  width: 100%;
  padding: 14px;
  background: #1f5fa8;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
}

button span {
  margin-left: 10px;
}

/* ============ FOOTER =========== */
.footer {
  background: #1f2c3d;
  color: #cfd8e3;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.8fr 1fr 1fr;
  gap: 20px;
  padding: 15px 10px;
}

.footer h3 {
  color: #fff;
  margin-bottom: 10px;
}

.footer h4 {
  color: #fff;
  margin-top: 10px;
  font-size: 16px;
}

.footer p {
  font-size: 16px;
  line-height: 1.6;
}

.footer-logo {
  width: 180px;
  margin-bottom: 5px;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer ul li a {
  color: #cfd8e3;
  text-decoration: none;
}

.footer ul li a:hover {
  color: #ffffff;
}

.social-list li,
.enlaces li,
.contact-list li {
  display: flex;
  align-items: left;
  gap: 20px;
}

.footer i {
  color: #ffffff;
}

/* Barra inferior */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-list li,
  .enlaces li,
  .contact-list li {
    justify-content: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
/* ========== CODIGO DE QR FLOTANTE =========*/
.qr-ventana-flotante {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 260px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 25px 45px rgba(0,0,0,.35);
  padding: 18px;
  z-index: 9999;
  animation: qrAparecer .6s ease;
  text-align: center;
}

/* TÍTULO */
.qr-titulo {
  color: #c9a14a;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

/* CONTENEDOR QR */
.qr-imagen-contenedor {
  width: 100%;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* IMAGEN QR */
.qr-imagen {
  width: 100%;
  max-width: 180px;
  margin: auto;
  display: block;
}

/* TEXTO */
.qr-texto {
  font-size: 0.9rem;
  color: #333;
}

/* BOTÓN CERRAR */
.qr-btn-cerrar {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
}

.qr-btn-cerrar:hover {
  color: #000;
}
.qr-visible {
  opacity: 1;
  pointer-events: auto;
}
.qr-oculto {
  opacity: 0;
  pointer-events: none;
}
.qr-ventana-flotante {
  transition: opacity .6s ease;
}


/* ANIMACIÓN */
@keyframes qrAparecer {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .qr-ventana-flotante {
    width: 90%;
    left: 50%;
    right: auto;
    bottom: 15px;
    transform: translateX(-50%);
  }

  .qr-imagen {
    max-width: 150px;
  }
}



