/* Escuela de Golf Sinuhé Suárez · estilo de la portada.
   Copiado de la versión 1 (access/portal.css y navigation.css) sin los
   restos: solo lo que se ve. «La portada no se toca» (Rosario, 01-12-2026). */

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --crema: #fcf4e8;
  --tinta: #283038;
  --gris: #4b545c;
  --verde: #1f5c2a;
  --verde-oscuro: #123e29;
  --borde: #c8c8cc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: "Outfit", system-ui, sans-serif;
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

a:focus-visible { outline: 3px solid #53845c; outline-offset: 4px; }

.portada {
  max-width: 1220px;
  margin: auto;
  padding: 24px 32px;
  min-height: 100svh;
}

/* Cabecera */
.cabecera {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--borde);
}
.logo { width: 54px; min-height: 60px; display: grid; place-items: center; }
.logo img { width: 52px; height: 60px; object-fit: contain; display: block; }
.nombre { display: block; font-size: clamp(22px, 3vw, 32px); line-height: 1.2; }
.subtitulo { display: block; font-size: 17px; margin-top: 5px; letter-spacing: .06em; }

/* Bienvenida */
.bienvenida { padding: 34px 0 26px; }
.antetitulo { font-size: 17px; letter-spacing: .15em; font-weight: 700; margin: 0 0 12px; color: var(--gris); }
.mensaje { margin: 0; font-size: 17px; line-height: 1.5; color: var(--gris); }
.mensaje a { color: var(--verde); text-underline-offset: 3px; }

/* Tarjetas */
.tarjetas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.tarjeta {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--verde-oscuro);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 18px #28303818;
  transition: box-shadow .2s;
  aspect-ratio: 3 / 2;
}
.tarjeta:hover { box-shadow: 0 8px 24px #28303835; }
.tarjeta > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.etiqueta {
  position: absolute;
  inset: auto 0 0;
  min-height: 28%;
  padding: 12px 4%;
  background: var(--verde-oscuro);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  text-align: left;
}
.etiqueta strong { font-size: clamp(20px, 2.5vw, 30px); font-weight: 400; line-height: 1.15; }
.etiqueta > span { font-size: clamp(14px, 1.6vw, 20px); line-height: 1.25; }

/* Clases particulares ocupa toda la altura de su fila, junto a TrackMan. */
.tarjeta-particulares { aspect-ratio: auto; height: 100%; }

/* TrackMan: la foto entera, el texto debajo y el logo centrado y grande
   (Rosario, 21-11-2026). No cambiar. */
.tarjeta-trackman { aspect-ratio: auto; }
.tarjeta-trackman > img { height: auto; object-fit: contain; }
.tarjeta-trackman .etiqueta { position: static; min-height: 0; padding: 14px 4%; }
.tarjeta-trackman .etiqueta strong { display: flex; justify-content: center; }
.logo-trackman { height: 2.4em; width: auto; max-width: 78%; object-fit: contain; }

/* Calendario de reservas: a lo ancho, sin foto y sin giro. */
.tarjeta-calendario {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #123e29 0%, #1f5c2a 60%, #2f7a3d 100%);
}
.tarjeta-calendario .etiqueta { position: static; background: none; padding: 0; min-height: 0; }
.icono-calendario {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #ffffff1f;
  display: grid;
  place-items: center;
  color: #e9d9a8;
}

/* Pie */
.pie {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--borde);
  padding: 22px 0 12px;
  margin-top: 40px;
  font-size: 17px;
  color: var(--gris);
}
.pie div { display: flex; flex-wrap: wrap; gap: 20px; }
.pie a { color: inherit; }

/* Pantallas en preparación */
.panel { max-width: 680px; margin: 40px auto 0; }
.panel h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; font-weight: 400; margin: 0 0 14px; color: var(--tinta); }
.boton {
  display: block;
  margin-top: 24px;
  padding: 14px 20px;
  min-height: 54px;
  border-radius: 12px;
  background: #2d6428;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.boton:hover { background: #24521f; }

/* El cuarto de vuelta al abrir una tarjeta de foto. */
.gira { animation: gira .45s ease both; }
@keyframes gira {
  from { opacity: 0; transform: perspective(1200px) rotateY(-85deg); }
  to { opacity: 1; transform: perspective(1200px) rotateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .gira { animation: none; }
  .tarjeta { transition: none; }
}

/* Barra fija de abajo */
.barra {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 6px;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #b6c1b8;
  background: var(--crema);
  box-shadow: 0 -4px 20px #28303814;
  font-size: 17px;
}
.boton-barra {
  padding: 10px 18px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #6a7f6c;
  border-radius: 10px;
  color: var(--verde);
  font-weight: 600;
  text-decoration: none;
}
.firma { justify-self: start; font-size: 17px; white-space: nowrap; }

/* Móvil */
@media (max-width: 700px) {
  .portada { padding: 18px; }
  .cabecera { gap: 10px; }
  .nombre { font-size: 23px; }
  .logo { width: 43px; }
  .logo img { width: 42px; height: 50px; }
  .bienvenida { padding: 28px 0 23px; }
  .tarjetas { grid-template-columns: 1fr; gap: 18px; }
  .tarjeta-particulares { aspect-ratio: 3 / 2; height: auto; }
  .pie { flex-direction: column; gap: 12px; }
  .pie div { flex-direction: column; gap: 15px; }
  body { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .boton-barra { justify-self: stretch; min-height: 44px; font-size: 15px; }
  .barra { padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); }
}
