/* Villa Golf Eventos · mismo aspecto que la web anterior (Elementor), sin WordPress. */
@font-face { font-family: 'Cinzel'; src: url('/fuentes/cinzel.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/fuentes/playfair.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/fuentes/playfair-italica.woff2') format('woff2'); font-style: italic; font-weight: 400 900; font-display: swap; }

:root {
  --verde: #b8b68f;
  --oliva: #9f9e7c;
  --titulo-claro: #b4b296;
  --oscuro: #2d2a26;
  --texto: #555;
  --papel: #ede9db;
  --ancho: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--oscuro); font-family: 'Cinzel', serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.contenedor { width: min(var(--ancho), 100% - 40px); margin-inline: auto; }
.titulo-cursiva { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: clamp(30px, 3.2vw, 38px); text-align: center; margin: 0 0 56px; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- encabezado */
.encabezado { position: sticky; top: 0; z-index: 50; background: var(--verde); height: 80px; display: flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.encabezado .contenedor { display: flex; justify-content: flex-end; align-items: center; gap: 36px; }
.menu { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-size: 17px; color: var(--oscuro); transition: color .2s; }
.menu a:hover, .menu a[aria-current] { color: #fff; }
.boton-borde { display: inline-block; text-decoration: none; border: 1px solid var(--oscuro); border-radius: 30px; padding: 12px 30px; font-size: 17px; color: var(--oscuro); transition: background .2s, color .2s; }
.boton-borde:hover { background: var(--oscuro); color: #fff; }
.abrir-menu { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--oscuro); }
.abrir-menu svg { width: 28px; height: 28px; }

/* ---------- portada */
.portada { position: relative; height: clamp(360px, 39.6vw, 640px); overflow: hidden; background: #3d3a2a; }
.portada > img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; }
.portada .logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -48%); width: clamp(160px, 17vw, 250px); height: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .25)); }

/* ---------- presentación */
.presentacion { background: var(--verde); padding: 90px 0 70px; }
.presentacion p { font-size: 18px; line-height: 1.6; text-align: justify; margin: 0 0 26px; }

/* ---------- detalles */
.detalles { background: var(--papel) url('/img/papel.webp') center / cover; padding: 90px 0 50px; }
.detalles .titulo-cursiva { color: var(--oliva); }
.deslizador { position: relative; }
.pista { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.pista::-webkit-scrollbar { display: none; }
.tarjeta { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; background: #fff; display: flex; flex-direction: column; }
.tarjeta img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tarjeta h3 { font-family: 'Playfair Display', serif; font-weight: 400; color: var(--titulo-claro); font-size: 20px; letter-spacing: .04em; line-height: 1.5; text-align: center; margin: 22px 20px 16px; }
.tarjeta p { font-family: 'Playfair Display', serif; color: var(--texto); font-size: 16px; line-height: 1.9; text-align: justify; margin: 0 20px 24px; }
.flecha { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; cursor: pointer; color: var(--oliva); }
.flecha svg { width: 22px; height: 30px; }
.flecha.anterior { left: -34px; }
.flecha.siguiente { right: -34px; }
.puntos { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.puntos button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #333; background: none; padding: 0; cursor: pointer; }
.puntos button[aria-current] { background: #333; }

/* ---------- eventos */
.eventos { background: var(--verde); padding: 100px 0 130px; }
.eventos .titulo-cursiva { color: #fff; margin-bottom: 40px; }
.grilla-eventos { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 60px; align-items: end; }
.evento h3 { font-weight: 700; font-size: 30px; color: #fff; opacity: .85; margin: 0 0 18px; font-variant: small-caps; text-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.evento:nth-child(even) h3 { text-align: right; padding-right: 20px; }
.evento.mayusculas h3 { font-variant: normal; }
.galeria { position: relative; overflow: hidden; background: rgba(0, 0, 0, .1); }
.galeria .pista { gap: 0; }
.galeria figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 3 / 2; }
.galeria figure img { width: 100%; height: 100%; object-fit: cover; }
.galeria .flecha { color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.galeria .flecha.anterior { left: 10px; }
.galeria .flecha.siguiente { right: 10px; }
.galeria .flecha svg { width: 20px; height: 26px; }
.galeria .puntos { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; gap: 10px; }
.galeria .puntos button { width: 7px; height: 7px; border: 0; background: rgba(255, 255, 255, .45); }
.galeria .puntos button[aria-current] { background: #fff; }

/* ---------- testimonios */
.testimonios { padding: 100px 0 130px; }
.testimonios .titulo-cursiva { color: var(--oliva); margin-bottom: 40px; }
.grilla-testimonios { width: min(1384px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.testimonio { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 6px rgba(0, 0, 0, .08); }
.testimonio img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.testimonio blockquote { margin: 0; padding: 18px 30px 26px; }
.testimonio p { font-family: 'Playfair Display', serif; color: var(--texto); font-size: 16px; line-height: 1.9; text-align: justify; margin: 0; }
.testimonio p.espacio { margin-top: 30px; }
.testimonio figcaption { position: absolute; left: -9999px; }

/* ---------- presupuesto */
.presupuesto { background: var(--verde); padding: 100px 0; }
.presupuesto .contenedor { display: grid; grid-template-columns: 470px 1fr; gap: 65px; align-items: start; width: min(1040px, 100% - 40px); }
.presupuesto .foto { margin-top: 82px; border-radius: 30px; width: 100%; aspect-ratio: 470 / 705; object-fit: cover; }
.presupuesto .titulo-cursiva { color: #fff; text-align: left; margin-bottom: 44px; }
.formulario { max-width: 324px; }
.formulario .campo { margin-bottom: 26px; }
.formulario .campo label, .formulario legend { display: block; font-weight: 700; font-size: 15px; color: #111; margin-bottom: 10px; padding: 0; }
.formulario label .req { color: #fff; font-weight: 400; }
.formulario input[type=text], .formulario input[type=email], .formulario input[type=tel] { width: 100%; height: 31px; border: 1px solid #ccc; border-radius: 4px; background: #fff; font: 15px 'Playfair Display', serif; padding: 4px 8px; }
.formulario input:focus { outline: 2px solid var(--oscuro); outline-offset: 1px; }
.formulario input[aria-invalid=true] { border-color: #c0392b; }
.formulario fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.formulario .opcion { font-weight: 400; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--oscuro); margin-bottom: 9px; cursor: pointer; }
.formulario .opcion input { width: 15px; height: 15px; margin: 0; accent-color: var(--oscuro); }
.formulario .boton { font: 700 16px 'Cinzel', serif; background: var(--oliva); color: #fff; border: 1px solid #ccc; border-radius: 4px; padding: 10px 15px; cursor: pointer; }
.formulario .boton:disabled { opacity: .7; cursor: wait; }
.formulario .aviso { margin-top: 18px; padding: 12px 14px; background: #fff; border-radius: 4px; font: 15px/1.5 'Playfair Display', serif; color: var(--oscuro); }
.oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- contacto */
.contacto { padding: 70px 0 0; }
.contacto .contenedor { border-top: 1px solid var(--verde); border-bottom: 1px solid var(--verde); padding: 40px 0 70px; }
.contacto .titulo-cursiva { color: var(--oliva); text-align: left; margin: 0 0 30px 10px; }
.columnas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 20px; }
.columnas ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; align-content: start; }
.columnas li, .columnas a { display: flex; align-items: flex-start; gap: 14px; text-decoration: none; color: var(--titulo-claro); font-weight: 700; font-size: 19px; line-height: 1.35; }
.columnas a:hover { color: var(--oliva); }
.columnas svg { flex: 0 0 24px; width: 24px; height: 24px; fill: var(--oliva); }
.columnas .sin-icono { padding-left: 0; }
.pie { border-top: 1px solid #ddd; margin-top: 75px; padding: 40px 20px; text-align: center; font-size: 15px; color: #3a3a6a; }

.subir { position: fixed; right: 30px; bottom: 30px; width: 32px; height: 32px; background: #333; color: #fff; border-radius: 3px; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.subir.visible { opacity: 1; pointer-events: auto; }
.subir svg { width: 16px; height: 16px; }

/* ---------- tablet y celular */
@media (max-width: 1240px) {
  .flecha.anterior { left: -4px; }
  .flecha.siguiente { right: -4px; }
  .detalles .deslizador { padding: 0 26px; }
}
@media (max-width: 1024px) {
  .tarjeta { flex-basis: calc((100% - 24px) / 2); }
  .presupuesto .contenedor { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 880px) {
  .encabezado { height: 64px; }
  .encabezado .contenedor { justify-content: space-between; gap: 12px; }
  .abrir-menu { display: block; order: 2; }
  .boton-borde { padding: 8px 16px; font-size: 13px; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--verde); border-bottom: 1px solid rgba(255, 255, 255, .5); }
  .menu.abierto { display: flex; }
  .menu a { display: block; padding: 14px 20px; }
  html { scroll-padding-top: 64px; }
  .grilla-eventos { grid-template-columns: 1fr; row-gap: 40px; }
  .evento:nth-child(even) h3 { text-align: left; padding: 0; }
  .grilla-testimonios { grid-template-columns: 1fr; max-width: 520px; }
  .presupuesto .contenedor { grid-template-columns: 1fr; }
  .presupuesto .foto { display: none; }
  .formulario { max-width: none; }
  .columnas { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  .presentacion { padding: 50px 0 30px; }
  .presentacion p { font-size: 15px; }
  .detalles, .eventos, .testimonios, .presupuesto { padding: 60px 0; }
  .titulo-cursiva { margin-bottom: 30px; }
  .tarjeta { flex-basis: 100%; }
  .evento h3 { font-size: 22px; }
  .portada { height: 300px; }
  .portada .logo { width: 150px; }
  .columnas li, .columnas a { font-size: 16px; }
  .subir { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html, .pista { scroll-behavior: auto; }
}
