/* ============================================================
   PLAZA U — ESTILOS
   Identidad: fondo blanco, azul profundo para texto,
   degradado de marca (naranja → magenta → violeta → azul)
   solo en acentos. Tipografía: Lato.
   ============================================================ */

:root {
  /* Colores de marca (aproximación RGB de los valores CMYK históricos) */
  --azul-profundo: #131b4d;     /* textos */
  --azul-marca: #2430c8;
  --violeta: #6a2fc9;
  --magenta: #e6198f;
  --rosado: #ff2d78;
  --naranja: #ff5e00;

  --grad: linear-gradient(125.6deg, var(--naranja) 0%, var(--rosado) 32%, var(--magenta) 55%, var(--violeta) 78%, var(--azul-marca) 100%);

  --texto: var(--azul-profundo);
  --texto-suave: #4a5170;
  --fondo: #ffffff;
  --fondo-tinte: #f7f7fb;
  --borde: #e6e8f0;
  --radio: 16px;
  --sombra: 0 6px 24px rgba(19, 27, 77, 0.08);
  --ancho: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', -apple-system, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.15; font-weight: 900; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: .75rem; }
h3 { font-size: 1.1rem; }

a { color: inherit; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(230, 25, 143, 0.32);
}
.btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.32);
}
.btn--outline {
  background: #fff;
  color: var(--azul-profundo);
  border: 2px solid var(--borde);
}
.btn--outline:hover { border-color: var(--magenta); color: var(--magenta); }
.btn--light {
  background: #fff;
  color: var(--azul-profundo);
}
.btn--block { width: 100%; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.nav__inner {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: .7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.25rem;
}
.nav__logo img { height: 42px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
}
.nav__links a:not(.btn):hover { color: var(--magenta); }
.btn--nav { padding: .6rem 1.2rem; font-size: .92rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .5rem;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px; height: 3px;
  border-radius: 2px;
  background: var(--azul-profundo);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 1.25rem;
  overflow: hidden;
}
.hero__inner {
  max-width: var(--ancho);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-top: 1.1rem;
  color: var(--texto-suave);
  font-weight: 500;
}
.hero__support { margin-top: .6rem; color: var(--texto-suave); }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}
.hero__ctas--center { justify-content: center; }
.hero__badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.6rem;
}
.hero__badges li {
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  font-size: .92rem;
}
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--sombra);
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 55%; height: 55%;
  background: var(--grad);
  border-radius: 24px;
  z-index: -1;
  opacity: .85;
}

/* ---------- Secciones ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 1.25rem; }
.section--tinted { background: var(--fondo-tinte); }
.section__inner { max-width: var(--ancho); margin: 0 auto; }
.section__inner--narrow { max-width: 780px; }
.section__lead {
  max-width: 680px;
  color: var(--texto-suave);
  font-size: 1.08rem;
  margin-bottom: 2.2rem;
}
.section__cta {
  margin-top: 2.5rem;
  text-align: center;
}
.section__cta p { margin-bottom: 1rem; font-weight: 700; font-size: 1.1rem; }

/* ---------- Tarjetas ---------- */
.cards {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--sombra);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--texto-suave); font-size: .97rem; }
.card__icon {
  font-size: 1.7rem;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--fondo-tinte);
  margin-bottom: .9rem;
}
.card--audience { border-top: 4px solid transparent; position: relative; }
.card--audience::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
  border-radius: var(--radio) var(--radio) 0 0;
}

/* ---------- Línea de tiempo ---------- */
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  position: relative;
  margin-top: 2.5rem;
  text-align: center;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 12.5%;
  right: 12.5%;
  height: 4px;
  border-radius: 2px;
  background: var(--grad);
}
.timeline li { position: relative; padding-top: 2.2rem; }
.timeline__dot {
  position: absolute;
  top: 2px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--magenta);
  box-shadow: 0 0 0 4px rgba(230, 25, 143, .15);
}
.timeline li:first-child .timeline__dot { border-color: var(--naranja); }
.timeline li:nth-child(2) .timeline__dot { border-color: var(--rosado); }
.timeline li:nth-child(3) .timeline__dot { border-color: var(--violeta); }
.timeline li:last-child .timeline__dot { border-color: var(--azul-marca); }

/* ---------- Habitaciones ---------- */
.cards--rooms {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.room {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
}
.room img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.room__body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.room__body p { color: var(--texto-suave); font-size: .95rem; flex: 1; }
.room__body .btn { font-size: .88rem; padding: .6rem 1rem; }

/* ---------- Amenidades ---------- */
.amenities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}
.amenities li {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.2rem;
  background: var(--fondo-tinte);
  border-radius: 14px;
  font-weight: 500;
}
.amenities li span { font-size: 1.4rem; }

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  transition: transform .25s ease;
}
.gallery img:hover { transform: scale(1.03); }

/* ---------- Espacios de trabajo (fotos en Comunidad) ---------- */
.workspaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.2rem;
}
.workspaces figure { margin: 0; }
.workspaces img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--sombra);
}
.workspaces figcaption {
  margin-top: .6rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Pasos y formulario ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2rem 0 3rem;
}
.steps li {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.5rem;
  text-align: center;
}
.steps__num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: .8rem;
}
.steps h3 { font-size: 1rem; font-weight: 700; }

.booking {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.form {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.8rem;
  box-shadow: var(--sombra);
}
.form h3 { font-size: 1.3rem; }
.form__hint { color: var(--texto-suave); margin: .3rem 0 1.3rem; font-size: .95rem; }
.form__row { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form label { font-weight: 700; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: inherit;
  padding: .7rem .9rem;
  border: 1.5px solid var(--borde);
  border-radius: 10px;
  background: #fff;
  color: var(--texto);
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(230, 25, 143, .12);
}

.booking__alt {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.booking__alt p { color: var(--texto-suave); font-size: .95rem; }

/* ---------- Testimonios ---------- */
.testimonial footer { margin-top: .8rem; font-weight: 700; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq {
  border: 1px solid var(--borde);
  border-radius: 14px;
  margin-bottom: .8rem;
  background: #fff;
  overflow: hidden;
}
.faq summary {
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--magenta);
}
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 1.3rem 1.2rem; color: var(--texto-suave); }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}
.cta-final p {
  max-width: 560px;
  margin: .8rem auto 0;
  opacity: .94;
  font-size: 1.08rem;
}
.cta-final .hero__ctas { margin-top: 2rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--azul-profundo);
  color: #fff;
  padding: 3.5rem 1.25rem 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr .8fr .8fr;
  gap: 2rem;
}
.footer__brand { font-size: 1.5rem; font-weight: 900; }
.footer__slogan { opacity: .8; margin-top: .3rem; }
.footer h3 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
  margin-bottom: .8rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer a { color: #fff; text-decoration: none; opacity: .9; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer__legal {
  max-width: var(--ancho);
  margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .88rem;
  opacity: .75;
}
.footer__legal a { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ============================================================
   RESPONSIVE — móvil primero en importancia
   ============================================================ */
@media (max-width: 960px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .workspaces { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--borde);
    padding: 1rem 1.25rem 1.4rem;
    gap: .2rem;
    box-shadow: var(--sombra);
  }
  .nav__links.abierto { display: flex; }
  .nav__links a { padding: .7rem 0; }
  .btn--nav { margin-top: .6rem; }

  .cards--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .timeline::before { display: none; }
  .hero__ctas .btn { width: 100%; }
}

@media (max-width: 480px) {
  .cards--4 { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Accesibilidad: respetar preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
