@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* -------- RESET Y BASE -------- */
:root {
  --main-color: #8c5f43;
  --second-color: #8c5f43;
  --text-color: #444;
  --button-color: #3ad640;
  --button-color-hover: #3e8e41;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  /* ✅ dejamos un solo fondo global */
  overflow-x: hidden;
}

/* -------- menu principal -------- */
.navbar{
  padding: 20px;
  position: fixed;
  top: 70px;          /* Desktop: baja el menú */
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('background.webp');
  background-size: cover;
  background-position: center;
  max-width: 1100px;
  width: 100%;
  border-radius: 100px;
  margin: 0 auto;
}

.logo-toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.logo-container {
  position: absolute;
  width: 180px;
  left: -30px;
}

.logo-container img {
  width: 100%;
  border-radius: 50%;
}

.menu-desktop {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.menu-desktop a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 1px 1px 2px #000;
  transition: color 0.3s;
}

.menu-desktop a:hover {
  color: #f0c674;
}

/* ---- Responsivo menú ---- */
@media (max-width: 768px) {

  /* Ocultar logo en móviles */
  .logo-container {
    display: none;
  }

  /* Menú adaptado */
  .menu-desktop {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    text-align: center;
  }

  .menu-desktop a {
    font-size: 14px;
    line-height: 1.2;
  }

  /* ✅ Navbar en móvil */
  .navbar {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    border-radius: 0;
    padding: 8px;
  }
}

/* =========================
   VIDEO FONDO
   ========================= */
#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.4);
}

/* Fondo YouTube SOLO dentro de la sección .Video-de-fondo */
.Video-de-fondo{
  position: relative;
  overflow: hidden;
  height: 115vh;
  min-height: 110vh;
}

/* antes estaba FIXED */
.video-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-bg iframe{
  width: 100vw;
  height: 56.25vw;
  min-height: 115vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: brightness(0.4);
  pointer-events: none;
}

.container {
  max-width: 1900px;
  margin: 0 auto;
  padding: 20px;
  padding-top: 190px; 
}

.content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  gap: 30px;
  flex-wrap: wrap;
}

.text-section {
  flex: 1 1 400px;
  max-width: 600px;
  margin-top: 40px;
}

.text-section h1 {
  font-size: 50px;
  line-height: 1.1;
  font-weight: bold;
  color: #fff;
}

.text-section h1 span {
  color: #8c5f43;
}

.text-section p {
  font-size: 19px;
  line-height: 1.7;
  color: #d0f0ea;
  text-align: justify;
}

.book-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 16px 30px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.video-section {
  flex:  200px;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-section video {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.cloudinary-video{
  width:100%;
  max-width:350px;
  aspect-ratio:9/16;
  border-radius:10px;
  box-shadow:0 5px 20px rgba(0,0,0,.4);
}

.video-wrapper{
  position: relative;
  width: 100%;
  max-width: 335px;      /* baja a 260px si lo quieres aún más bajo */
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,.4);
  cursor: pointer;
}

.video-thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 34px;
  cursor: pointer;
}

.video-wrapper iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* RESPONSIVE HERO */
@media (max-width: 992px) {
  .text-section h1 { font-size: 36px; }
  .text-section p { font-size: 17px; }
}

@media (max-width: 768px) {
  #background-video {
    height: auto;
    min-height: 100vh;
  }

  .container {
    padding-top: 120px; /* ✅ coherente con navbar móvil */
  }

  .content {
    flex-direction: column;
    text-align: center;
  }

  .text-section {
    max-width: 90%;
  }

  .video-section {
    display: none;
  }
}

/* =========================
   REDES SOCIALES
   ========================= */
.contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.instagram {
  flex: 1;
  max-width: 350px;
  height: 565px;
  overflow: hidden;
}

.facebook-widget {
  flex: 1;
  max-width: 390px;
  height: 570px;
  overflow: hidden;
  margin-right: 0;
}

.ubicacion {
  flex: 1;
  max-width: 350px;
  display: flex;
  border: 0;
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-decoration: none;
}

.whatsapp img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.whatsapp:hover {
  background-color: #20ba5a;
}

@media (max-width: 768px) {
  .contenedor {
    flex-direction: column;
    align-items: center;
  }

  .instagram,
  .facebook-widget,
  .ubicacion {
    max-width: 100%;
    height: auto;
  }
}

/* =========================
   GASTRONOMIA - GALERIA
   ========================= */
.galeria {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 200px);
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
}

.galeria .item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform .3s ease;
}

.galeria img:hover {
  transform: scale(1.1);
}

/* Layout PC (default) */
.item1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.item2 { grid-column: 3 / 4; grid-row: 1 / 3; }
.item3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.item4 { grid-column: 4 / 5; grid-row: 2 / 3; }
.item5 { grid-column: 1 / 2; grid-row: 3 / 4; }
.item6 { grid-column: 2 / 3; grid-row: 3 / 4; }
.item7 { grid-column: 3 / 4; grid-row: 3 / 4; }
.item8 { grid-column: 4 / 5; grid-row: 3 / 4; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

.controls {
  position: fixed;
  top: 50%;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.prev,
.next {
  color: white;
  font-size: 50px;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
}

.prev:hover,
.next:hover { color: #f1c40f; }

/* Responsive galeria */
@media (max-width: 900px) {
  .galeria {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .item1,.item2,.item3,.item4,.item5,.item6,.item7,.item8 {
    grid-column: auto;
    grid-row: auto;
    height: 200px;
  }

  .lightbox-img {
    max-width: 90%;
    max-height: 70%;
  }
}

@media (max-width: 600px) {
  .galeria { grid-template-columns: 1fr; }

  .galeria .item { height: 180px; }

  .lightbox-img {
    max-width: 95%;
    max-height: 60%;
  }

  .prev,.next { font-size: 35px; }

  .close {
    font-size: 30px;
    top: 10px;
    right: 15px;
  }
}

/* =========================
   TÍTULO / CARRUSEL VIDEOS
   (mantengo tal cual)
   ========================= */
.about-title {
  font-size: 6.5rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin: 40px 0 20px;
  background: linear-gradient(to bottom, rgba(101, 67, 33, 0.8) 30%, rgba(205, 133, 63, 0.2) 76%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  max-width: 1400px;
  padding: 20px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.carousel-section {
  position: relative;
  flex: 1 1 700px;
  max-width: 700px;
}

.member-info {
  flex: 1 1 400px;
  max-width: 400px;
  margin-top: 40px;
  text-align: left;
}

.member-name {
  color: #7b4d08;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.member-description {
  color: #444;
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 20px;
}

.member-button {
  background-color: #7b4d08;
  color: white;
  font-size: 1.2rem;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.member-button:hover {
  background-color: rgb(3, 133, 37);
}

/* CARRUSEL */
.carousel-container,
.carousel-section {
  width: 100%;
  height: 450px;
  position: relative;
  perspective: 1000px;
  margin: 0 auto;
}

.carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* TARJETAS */
.card {
  position: absolute;
  width: 280px;
  height: 380px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* POSICIONES */
.card.center { z-index: 10; transform: scale(1.1) translateZ(0); }
.card.left-2 { z-index: 1; transform: translateX(-400px) scale(0.8) translateZ(-300px); opacity: 0.7; }
.card.left-1 { z-index: 5; transform: translateX(-200px) scale(0.9) translateZ(-100px); opacity: 0.9; }
.card.right-1 { z-index: 5; transform: translateX(200px) scale(0.9) translateZ(-100px); opacity: 0.9; }
.card.right-2 { z-index: 1; transform: translateX(400px) scale(0.8) translateZ(-300px); opacity: 0.7; }

.card.hidden {
  opacity: 0;
  pointer-events: none;
}

/* FLECHAS */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(101, 67, 33, 0.6);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  border: none;
  outline: none;
}

.nav-arrow.left { left: -100px; }
.nav-arrow.right { right: -100px; }

/* MODAL VIDEO */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.video-modal.hidden { display: none; }

.video-modal-content {
  position: relative;
  width: 360px;
  height: 640px;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

/* Responsive carrusel */
@media (max-width: 1024px) {
  .about-title { font-size: 4rem; }

  .card { width: 220px; height: 300px; }

  .card.left-2, .card.right-2 {
    transform: translateX(-250px) scale(0.8) translateZ(-200px);
  }

  .card.left-1, .card.right-1 {
    transform: translateX(-130px) scale(0.9) translateZ(-80px);
  }
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    margin-top: -220px;
  }

  .carousel-section,
  .carousel-container {
    height: 300px;
  }

  .card {
    width: 160px;
    height: 220px;
  }

  .card.center { transform: scale(1.05) translateZ(0); z-index: 10; }

  .card.left-1 { transform: translateX(-130px) scale(0.9) translateZ(-60px); z-index: 5; opacity: 0.9; }
  .card.left-2 { transform: translateX(-200px) scale(0.8) translateZ(-120px); z-index: 1; opacity: 0.6; }
  .card.right-1 { transform: translateX(130px) scale(0.9) translateZ(-60px); z-index: 5; opacity: 0.9; }
  .card.right-2 { transform: translateX(200px) scale(0.8) translateZ(-120px); z-index: 1; opacity: 0.6; }

  .nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-arrow.left { left: -60px; }
  .nav-arrow.right { right: -60px; }

  .member-info {
    text-align: center;
    margin-top: -215px;
    padding: 0 10px;
  }

  .about-title { font-size: 2.2rem; }
  .member-name { font-size: 1.6rem; }
  .member-description { font-size: 1rem; }

  .member-button {
    font-size: 1rem;
    padding: 8px 16px;
  }

  .video-modal-content {
    width: 90%;
    height: 60vh;
  }
}

/* (conservas tu override) */
.about-title { font-size: 70px; }

/* =========================
   SHOP / PRODUCTS
   ========================= */
.shop-container {
  max-width: 1200px;
  margin: 40px auto;
}

.categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  justify-content: center;
}

.category-button {
  background: #ddd;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
}

.category-button.active {
  background: #3e8e41;
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card[data-hidden="true"] { display: none; }

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.image-modal.hidden { display: none; }

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.modal-close,
.modal-prev,
.modal-next {
  position: absolute;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  z-index: 1000;
}

.modal-close { top: 20px; right: 30px; }
.modal-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.modal-next { right: 30px; top: 50%; transform: translateY(-50%); }

/* ✅ responsive products */
@media (max-width: 992px){
  .products-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .products-grid{ grid-template-columns: 1fr; }
  .product-image img{ height: 180px; }
}

/* =========================
   BANNER SLIDER
   ========================= */
#slider-wrapper {
  width: 100%;
  max-width: 940px;
  height: 470px;
  margin: 50px auto 0;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.inner-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.overflow-wrapper {
  width: 800%;
  height: 100%;
  display: flex;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.control { display: none; }

#Slide1:checked~.overflow-wrapper { margin-left: 0%; }
#Slide2:checked~.overflow-wrapper { margin-left: -200%; }
#Slide3:checked~.overflow-wrapper { margin-left: -400%; }
#Slide4:checked~.overflow-wrapper { margin-left: -600%; }

#s1,#s2,#s3,#s4 {
  padding: 6px;
  background: #000000;
  position: absolute;
  bottom: 25px;
  border-radius: 20px;
  opacity: 0.3;
  cursor: pointer;
  z-index: 10;
}

#s1 { left: 50%; margin-left: -36px; }
#s2 { left: 50%; margin-left: -12px; }
#s3 { left: 50%; margin-left: 12px; }
#s4 { left: 50%; margin-left: 36px; }

#s1:hover,#s2:hover,#s3:hover,#s4:hover { opacity: 0.5; }

#Slide1:checked+#s1,
#Slide2:checked+#s2,
#Slide3:checked+#s3,
#Slide4:checked+#s4 { opacity: 1; }

.nav-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
}

.nav-arrows button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  margin: 0 10px;
  transition: background 0.3s ease;
}

.nav-arrows button:hover { background: rgba(0, 0, 0, 0.8); }

@media screen and (max-width: 768px) {
  #slider-wrapper {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .slide img {
    height: auto;
    width: 12.5vw;
  }

  .nav-arrows button {
    font-size: 24px;
    padding: 8px 12px;
  }
}

/* =========================
   SLIDER EXPERIENCIAS
   ========================= */
.curs{
  font-family: sans-serif;
  position: absolute;
  font-weight: bold;
  z-index: 1000;
  color: gold;
  font-size: 2vw;
  display: flex;
  width: 80vw;
  justify-content: space-between;
  align-items: center;
}

.curs p{
  background-color: rgb(28, 40, 51);
  width: 3vw;
  height: 3vw;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.curs p:hover{ transform: scale(1.1); }

.slide{
  position: absolute;
  width: 50vw;
  height: 30vw;
  transition: transform 0.2s;
}

.slide p{
  color: orange;
  font-family: sans-serif;
  text-align: center;
  font-size: 3vw;
  height: 15vw;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.slide img{
  width: 100%;
  height: 80%;
  object-fit: cover;
}

.caption{
  color: orange;
  font-family: sans-serif;
  font-size: 1.2vw;
  padding: 0.5em;
  text-align: center;
}

.slider-container{
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url('img/imgexperiencias.jpg') no-repeat center center;
  background-size: cover;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.slider-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* Mobile */
@media (max-width: 768px){
  .curs{ font-size: 18px; width: 92vw; }
  .curs p{ width: 38px; height: 38px; }
  .slide{ width: 86vw; height: 56vw; }
  .slide p{ font-size: 20px; }
  .caption{ font-size: 14px; }
}

/* =========================
   EVENTOS CORPORATIVOS
   ========================= */

/*eventos corporativos*/

/* ==== SECCIÓN DE TARJETAS CON SLIDER ==== */
.card-section {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

/* ✅ IMPORTANTE: ahora es .event-card (tu HTML ya lo usa) */
.event-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(140, 95, 67, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.image-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.slides img:hover {
  transform: scale(1.05);
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.slide-btn.prev { left: 8px; }
.slide-btn.next { right: 8px; }

.card-content {
  padding: 16px;
  text-align: center;
}

.card-content h2 {
  font-size: 1.4rem;
  color: #8c5f43;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 14px;
}

.card-content button {
  background: linear-gradient(135deg, #3ad640 0%, #2eb835 100%);
  border: none;
  padding: 12px 24px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(58, 214, 64, 0.3);
  transition: all 0.3s ease;
}

.card-content button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(58, 214, 64, 0.4);
  background: linear-gradient(135deg, #2eb835 0%, #259e2a 100%);
}

/* ===== Responsive ajustes ===== */
@media (max-width: 768px) {
  .slides img { height: 180px; }
  .slide-btn { font-size: 20px; padding: 6px 10px; }
}

@media (max-width: 480px) {
  .slides img { height: 150px; }
  .slide-btn { font-size: 18px; padding: 5px 8px; }
}
/* Modal imagen eventos */
.card-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  flex-direction: column;
}

.card-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.card-modal.hidden { display: none; }

.modal-close,
.modal-prev,
.modal-next {
  position: absolute;
  color: white;
  cursor: pointer;
  z-index: 1000;
  user-select: none;
}

.modal-close { top: 20px; right: 30px; font-size: 40px; }
.modal-prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 50px; }
.modal-next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 50px; }

@media (max-width: 768px) {
  .modal-prev, .modal-next { font-size: 36px; }
  .modal-close { font-size: 32px; }
}

/* ================================ 
   EVENTOS SOCIALES - Estilos Premium
================================ */
.alternating-section {
  padding: 80px 20px;
  
  max-width: 1400px;
  margin: 0 auto;
}

.alternating-section .about-title {
  margin-bottom: 60px;
}

.alt-card {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.alt-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(140, 95, 67, 0.15);
}

.alt-card:nth-child(even) {
  flex-direction: row-reverse;
}

.alt-text {
  flex: 1;
  padding: 20px;
}

.alt-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #8c5f43 0%, #654321 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.alt-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
  text-align: justify;
}

.alt-btn {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(135deg, #3ad640 0%, #2eb835 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 30px;
  box-shadow: 0 5px 20px rgba(58, 214, 64, 0.3);
  transition: all 0.3s ease;
}

.alt-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(58, 214, 64, 0.5);
  background: linear-gradient(135deg, #2eb835 0%, #259e2a 100%);
}

.alt-img {
  flex: 1;
  max-width: 550px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.alt-img:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.alt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.alt-card:hover .alt-img img {
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .alternating-section { padding: 60px 15px; }
  .alt-card { gap: 35px; padding: 35px; margin-bottom: 60px; }
  .alt-text h1 { font-size: 2.2rem; }
  .alt-text p { font-size: 1.05rem; }
  .alt-img { max-width: 450px; }
}

@media (max-width: 768px) {
  .alternating-section { padding: 50px 15px; }

  .alt-card,
  .alt-card:nth-child(even) {
    flex-direction: column;
    padding: 30px 25px;
    gap: 30px;
    margin-bottom: 50px;
  }

  .alt-text { padding: 0; text-align: center; }
  .alt-text h1 { font-size: 1.9rem; margin-bottom: 20px; }
  .alt-text p { font-size: 1rem; line-height: 1.7; margin-bottom: 25px; }

  .alt-img {
    max-width: 100%;
    width: 100%;
    height: 280px;
  }

  .alt-btn { padding: 13px 30px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .alternating-section { padding: 40px 10px; }
  .alt-card { padding: 25px 20px; border-radius: 15px; margin-bottom: 40px; }
  .alt-text h1 { font-size: 1.6rem; }
  .alt-text p { font-size: 0.95rem; }
  .alt-img { height: 220px; border-radius: 12px; }
  .alt-btn { padding: 12px 28px; font-size: 0.95rem; }
}

/* ================================ 
   FOOTER MODERNO - Premium
================================ */
.main-footer {
  background-color: #1a1a1a;
  color: #e0e0e0;
  padding: 80px 0 0;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #8c5f43, #d4af37, #8c5f43);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 25px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-description {
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #d4af37;
  transform: translateY(-3px);
}

.footer-section h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #d4af37;
}

.links-section ul {
  list-style: none;
  padding: 0;
}

.links-section ul li { margin-bottom: 15px; }

.links-section ul li a {
  color: #a0a0a0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.links-section ul li a:hover {
  color: #d4af37;
  transform: translateX(5px);
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item i {
  color: #d4af37;
  font-size: 1.2rem;
  margin-top: 3px;
}

.contact-item strong {
  display: block;
  color: #fff;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.contact-item p {
  color: #a0a0a0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-office {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.small-email {
  font-size: 0.8rem !important;
  word-break: break-all;
}

.footer-bottom {
  background: #111;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .contact-section { grid-column: span 2; }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .contact-section { grid-column: span 1; }
  .main-footer { padding-top: 60px; }
}

/* ========= MODAL RESERVA (POPUP) ========= */
.overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.60);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 99999;
}
.overlay.show{ display:flex; }

.modal{
  width: min(520px, 92vw);
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
}



.modal .hero h1{
  margin:0 0 6px;
  font-size:26px;
  font-weight:800;
}
.modal .hero p{
  margin:0;
  font-size:13px;
}

.content-modal{ padding: 22px 26px 26px; }
.content-modal .title{ text-align:center; font-weight:800; margin:0 0 14px; }

.field{
  display:flex;
  gap:10px;
  align-items:center;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:10px 14px;
  margin:10px 0;
}
.field input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  font-size:14px;
}

.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:12.5px;
  color:#333;
  margin-top: 10px;
}

.btn{
  border:none;
  padding:12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
  width:100%;
  margin-top: 14px;
}

.btn-primary{
  background: var(--main-color, #654321);
  color:#fff;
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn-primary:hover{
  background: var(--button-color-hover, #3e8e41);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.modal-close-x{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.25);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 0;
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .15s ease;
  z-index: 2;
}
.modal-close-x:hover{
  background: rgba(255,255,255,.18);
  transform: scale(1.03);
}

.form-msg{
  margin-top: 10px;
  font-size: 13px;
  color: #333;
  text-align: center;
}
.form-msg.error{ color: #b00020; }

.hp-field{
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px){
  .modal{
    width: 94vw;
    border-radius: 14px;
  }
  .modal .hero{ padding: 22px 18px 18px; }
  .content-modal{ padding: 18px 18px 20px; }
}


/* =========================
   FIX: EXPERIENCIAS (no recortar imágenes)
   Pegar al FINAL del style.css
   ========================= */

/* El contenedor real de cada imagen debe ocupar todo el alto del slide */
.slider-container .slide p{
  height: 100% !important;     /* antes estaba en 15vw */
  width: 100%;
  top: 0;
  left: 0;
  justify-content: center !important;
}

/* La imagen ocupa el espacio disponible SIN recorte */
.slider-container .slide p img{
  width: 100% !important;
  height: 100% !important;     /* antes 80% */
  object-fit: contain !important; /* clave: evita el recorte */
  display: block;
}


.slider-container .slide p{
  margin: 0 !important;
  padding: 0 !important;
}


@media (max-width: 768px){
  .slider-container .slide p img{
    object-fit: contain !important;
  }
}



/* HEADER MODAL CON IMAGEN */

.modal .hero{
  position: relative;
  padding: 26px 26px 22px;
  color: #fff;

  background-image:
    linear-gradient(160deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55)),
    url("https://rancholassantas.com/img/fondoformulario.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.modal .hero h1,
.modal .hero p{
  position: relative;
  z-index: 2;
}



.custom-controls{
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 1002;
}

.custom-controls button{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: 0.3s;
}

.custom-controls button:hover{
  background: rgba(0,0,0,0.9);
  transform: scale(1.1);
}



/* configuracion de x del formulario */
/* 1) Asegura que la X quede por encima de TODO dentro del modal */
.modal-close-x{
  z-index: 10002;
}

/* 2) Asegura que el header no “tape” clicks por overlays internos */
.modal .hero{
  position: relative;
}

/* Si usas overlay con ::before o similares, fuerza esto */
.modal .hero::before{
  pointer-events: none;
}