/* ==================================== */
/* Variables y Colores                  */
/* ==================================== */
:root {
  --clr-primary: #deb71d;
  --clr-secondary: #deb71d;
  --clr-bg: #f5fbef;
  --clr-text: #2e3d26;
  --clr-card-bg: #ffffff;
  --clr-hover: #cce3ba;
  --clr-accent: #006600;
}

/* ==================================== */
/* Body general y scroll invisible      */
/* ==================================== */


body.inicio-body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.6);
  z-index: -1;
}

/* Scroll invisible */
body::-webkit-scrollbar { width:0; height:0; }
html { -ms-overflow-style:none; scrollbar-width:none; }

/* ==================================== */
/* Animación Fade-in                     */
/* ==================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================================== */
/* Header y navegación                   */
/* ==================================== */
header.encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.2rem;
  position: sticky;
  top: 0;
  background: var(--clr-primary);
  backdrop-filter: blur(10px);
  z-index: 1000;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 2rem;
  color: #2d2d2d;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}
.logo img { height: 50px; width: auto; }

nav.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
nav.menu a {
  margin: 0 1rem;
  text-decoration: none;
  color: #2d2d2d;
  font-weight: 600;
  font-size: 1.2rem;
  position: relative;
  transition: color 0.3s ease;
}
nav.menu a::after {
  content:"";
  position: absolute;
  bottom:-4px;
  left:0;
  width:0;
  height:2px;
  background:#38a3a5;
  transition: width 0.3s ease;
}
nav.menu a:hover { color: var(--clr-hover); }
nav.menu a:hover::after { width:100%; }

/* ==================================== */
/* Banner principal                      */
/* ==================================== */
.encabezado-banner {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 650px;
  overflow: hidden;
}

.video-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.texto-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: #FFD700;
  text-align: center;
  width: 90%;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.texto-banner h1 {
  font-size: 3rem;
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}
.texto-banner p { font-size: 1.5rem; }
.btn-descubre {
    margin-top: 20px;
    display: inline-block;
    padding: 12px 24px;
    background: #43a047;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: background 0.3s;
}
.btn-descubre:hover {
    background: #2e7d32;
} 

/* ==================================== */
/* Fondo intermedio                      */
/* ==================================== */
.intermedio-fondo {
  background-size: cover;
  background-position: center;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.capa-intermedia {
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 1.2rem 2rem;
  border-radius: 12px;
  font-size: 1.4rem;
}

/* ==================================== */
/* Contenedor y Grid Actividades         */
/* ==================================== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  text-align: center;
}
.grid-actividades {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 30px;
  margin-top: 2rem;
}

/* ==================================== */
/* Cards Actividades                     */
/* ==================================== */
.card-actividad {
  background-color: var(--clr-card-bg);
  border-radius: 16px;
  border: 1px solid var(--clr-primary);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-actividad:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.card-actividad img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}
.card-actividad h3 {
  font-size: 1.5rem;
  color: var(--clr-primary);
  font-style: italic;
}
.card-actividad p {
  margin: 6px 0;
  font-size: 0.95rem;
}
.card-actividad i { color: var(--clr-secondary); margin-right:5px; }

/* ==================================== */
/* Botones                               */
/* ==================================== */
.boton, .boton-turistico {
  display: inline-block;
  margin: 6px 4px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-style: italic;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.boton {
  background-color: #eee;
  color: #333;
}
.boton:hover { background-color: #ddd; }

.boton-turistico {
  background: linear-gradient(45deg, #38a3a5, #57cc99);
  color: white;
}
.boton-turistico:hover {
  background: linear-gradient(45deg, #57cc99, #38a3a5);
  transform: scale(1.05);
}

/* ==================================== */
/* Botón flotante                         */
/* ==================================== */
.boton-flotante {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%); /* centra verticalmente */
  background: #38a3a5;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1rem;
  cursor: grab;
  z-index: 9999;
  font-size: 1rem;
  user-select: none;
}




/* ==================================== */
/* Modal Cotización                       */
/* ==================================== */
.modal-cotizacion {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.modal-contenido {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  position: relative;
}
.cerrar {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}
label, input, select {
  display: block;
  width: 100%;
  margin: 0.5rem 0 1rem;
}
input, select {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.resultado-cotizacion p { margin: 0.3rem 0; }

/* ==================================== */
/* WhatsApp flotante                     */
/* ==================================== */
.whatsapp-container {
  position: fixed;
  top: 50%;                  /* Lo coloca en el medio vertical */
  right: 20px;               /* Pegado al lado derecho */
  transform: translateY(-50%); /* Centrado exacto */
  display: flex;
  flex-direction: column;    /* Para que texto e ícono se apilen */
  align-items: center;
  gap: 8px;
  z-index: 1000;
}

.whatsapp-container a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.whatsapp-text {
  background: #fff;
  color: #000;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0px 2px 6px rgba(216, 163, 163, 0.2);
  display: inline-block;
  line-height: 1.3em;
}

.whatsapp-icon {
  background: #25d366;
  color: white;
  font-size: 28px;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
/* ==================================== */
/* Responsive                             */
/* ==================================== */

@media (max-width: 768px) {
  header.encabezado { flex-direction: column; align-items: center; padding: 14px 20px; }
  .logo { font-size: 1.4rem; margin-bottom: 10px; }
  nav.menu { flex-direction: column; gap: 10px; }
  nav.menu a { margin: 6px 0; font-size: 1.1rem; }
  .encabezado-banner { height: 320px; }
  .texto-banner h1 { font-size: 2.2rem; }
  .texto-banner p { font-size: 1.1rem; }
  .container { padding: 30px 12px; max-width: 95%; }
  .grid-actividades { grid-template-columns:1fr; gap:24px; }
  .card-actividad { padding: 16px; border-radius: 12px; }
  .card-actividad img { height: 160px; }
  .card-actividad h3 { font-size: 1.3rem; }
  .card-actividad p { font-size: 0.9rem; }
  body.inicio-body {
    background-attachment: scroll; /* Evita el bug de fixed en móviles */
    background-size: cover;        /* Asegura que cubra todo */
    background-position: center;
  }
}

