/* ==========================================================================
   Keny's Party Rental - hoja de estilos principal
   Los colores de marca viven en :root. Cada bloque esta comentado.
   ========================================================================== */

:root {
  --navy: #14285A;
  --navy-dark: #0B1734;
  --yellow: #FFC50D;
  --yellow-dark: #F2B800;
  --gold: #C79400;
  --cream: #FDFAF4;
  --gray: #E9EBEF;
  --white: #ffffff;
  --ink-70: rgba(20, 40, 90, .72);
  --ink-55: rgba(20, 40, 90, .55);
  --line: rgba(20, 40, 90, .10);
  --radius-card: 26px;
  --radius-pill: 999px;
  --container: 1240px;
  --font: Poppins, "Helvetica Neue", Helvetica, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
::selection { background: var(--yellow); color: var(--navy); }
.is-hidden { display: none !important; }

/* ---------- Layout base ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 90px 0; }
.section--cream { background: var(--cream); }
.section--gray { background: var(--gray); }
.section--navy { background: var(--navy); color: var(--white); }
.section--yellow { background: var(--yellow); }
.section__head {
  display: flex; gap: 40px; align-items: flex-end;
  justify-content: space-between; flex-wrap: wrap; margin-top: 14px;
}
.section__title {
  margin: 14px 0 0; max-width: 700px;
  font-size: clamp(30px, 4.4vw, 54px); line-height: 1.03;
  letter-spacing: -.03em; font-weight: 800; text-wrap: balance;
}
.section__lead {
  margin: 20px 0 0; max-width: 620px;
  font-size: 17px; line-height: 1.6; color: var(--ink-70); text-wrap: pretty;
}
.section--navy .section__lead { color: rgba(255, 255, 255, .82); }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.kicker--on-dark { color: var(--yellow); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-family: var(--font);
  font-size: 15px; font-weight: 700; padding: 14px 24px;
  border-radius: var(--radius-pill);
  transition: background .18s, color .18s, border-color .18s;
}
.btn--lg { font-size: 17px; padding: 18px 32px; }
.btn--primary { background: var(--yellow); color: var(--navy); }
.btn--primary:hover { background: var(--yellow-dark); color: var(--navy); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--yellow); color: var(--navy); }
.btn--ghost-light {
  background: transparent; color: var(--white); font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, .55);
}
.btn--ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 250, 244, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 18px; justify-content: space-between;
  flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.site-header__actions { display: flex; gap: 10px; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__img { height: 50px; width: auto; display: block; }
.nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.nav__link { font-size: 15px; font-weight: 600; padding: 10px 14px; border-radius: var(--radius-pill); }
.nav__link:hover { background: rgba(20, 40, 90, .06); color: var(--navy); }
.lang-switch {
  display: flex; background: var(--white); overflow: hidden;
  border: 1.5px solid rgba(20, 40, 90, .16); border-radius: var(--radius-pill);
}
.lang-switch__btn {
  border: 0; background: transparent; cursor: pointer; font-family: var(--font);
  font-size: 13px; font-weight: 700; color: var(--navy); padding: 10px 14px;
}
.lang-switch__btn + .lang-switch__btn { border-left: 1.5px solid rgba(20, 40, 90, .16); }
.lang-switch__btn.is-active { background: var(--yellow); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 23, 52, .72), rgba(11, 23, 52, .82));
}
.hero__content { position: relative; max-width: 1100px; padding: 110px 22px; text-align: center; }
.hero .kicker--on-dark {
  font-size: 14px; padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(255, 197, 13, .12); border: 1px solid rgba(255, 197, 13, .35);
}
.hero__title {
  margin: 26px 0 0; font-size: clamp(38px, 6.6vw, 76px); line-height: .98;
  letter-spacing: -.03em; font-weight: 800; color: var(--white); text-wrap: balance;
}
.hero__title-accent {
  margin: 4px 0 0; font-size: clamp(34px, 6vw, 68px); line-height: 1;
  letter-spacing: -.03em; font-weight: 800; color: var(--yellow);
}
.hero__subtitle {
  margin: 24px auto 0; max-width: 680px;
  font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .88);
}
.hero__actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Franja de confianza ---------- */
.trust-bar { background: var(--yellow); }
.trust-bar__grid {
  padding-top: 30px; padding-bottom: 30px; display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item__value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.trust-item__label { font-size: 14px; font-weight: 600; color: rgba(20, 40, 90, .78); }

/* ---------- Tarjetas de servicio ---------- */
.cards-grid {
  margin-top: 46px; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}
.service-card {
  background: var(--white); border: 1px solid rgba(20, 40, 90, .08);
  border-radius: var(--radius-card); overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--gray); }
.service-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-card__tag {
  position: absolute; top: 14px; left: 14px; background: var(--cream);
  border-radius: var(--radius-pill); padding: 7px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.service-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-card__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.service-card__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-70); flex: 1; }
.service-card__price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.service-card__amount { font-size: 24px; font-weight: 800; }
.service-card__unit { font-size: 13px; font-weight: 600; color: var(--ink-55); }

/* ---------- Bloque partido (sanitizacion) ---------- */
.split__inner {
  display: grid; gap: 52px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.split__media { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; }
.split__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.check-list { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list__item {
  display: flex; gap: 12px; align-items: center; background: var(--white);
  border-radius: 16px; padding: 14px 18px; font-size: 15px; font-weight: 600;
}
.check-list__item::before {
  content: ""; width: 10px; height: 10px; flex: none;
  border-radius: var(--radius-pill); background: var(--yellow);
}

/* ---------- Pasos ---------- */
.steps {
  margin-top: 44px; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.step {
  background: var(--white); border: 1px solid rgba(20, 40, 90, .08);
  border-radius: var(--radius-card); padding: 30px;
}
.step__number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--yellow); font-size: 18px; font-weight: 800;
}
.step__title { margin: 18px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.step__text { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-70); }

/* ---------- Galeria ---------- */
.gallery-grid {
  margin-top: 40px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.gallery-grid__photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 20px; display: block; background: var(--gray);
}

/* ---------- Ciudades ---------- */
.city-list { margin: 38px 0 0; padding: 0; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.city-list__item {
  border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius-pill);
  padding: 11px 20px; font-size: 15px; font-weight: 600;
}

/* ---------- Testimonios ---------- */
.testimonials-grid {
  margin-top: 40px; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}
.testimonial {
  margin: 0; background: var(--white); border: 1px solid rgba(20, 40, 90, .08);
  border-radius: var(--radius-card); padding: 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.testimonial__mark { font-size: 34px; font-weight: 800; color: var(--yellow); line-height: 1; }
.testimonial__quote {
  margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600;
  letter-spacing: -.01em; flex: 1;
}
.testimonial__author { font-size: 14px; font-weight: 600; color: rgba(20, 40, 90, .6); }

/* ---------- Contacto ---------- */
.contact__inner {
  display: grid; gap: 40px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.contact-details { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.contact-details__item { font-size: 16px; font-weight: 600; }
.contact-form {
  background: var(--white); border-radius: var(--radius-card); padding: 30px;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 13px; font-weight: 700; color: var(--ink-70); }
.field__input {
  border: 1.5px solid rgba(20, 40, 90, .16); border-radius: 14px; padding: 13px 15px;
  font-family: var(--font); font-size: 15px; background: var(--cream);
  color: var(--navy); width: 100%;
}
.field__input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.field__input--area { resize: vertical; }
.contact-form__status {
  grid-column: 1 / -1; margin: 0; font-size: 14px; font-weight: 600; min-height: 20px;
}
.contact-form__status.is-error { color: #A3232B; }
.contact-form__status.is-ok { color: #16693C; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: var(--yellow); }
.site-footer__inner {
  padding-top: 70px; padding-bottom: 40px; display: grid; gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.site-footer__logo { height: 54px; width: auto; display: block; }
.site-footer__text {
  margin: 18px 0 0; max-width: 340px; font-size: 15px;
  line-height: 1.6; color: rgba(255, 255, 255, .72);
}
.site-footer__nav { display: grid; gap: 10px; align-content: start; font-size: 15px; font-weight: 600; }
.site-footer__contact {
  display: grid; gap: 10px; align-content: start;
  font-style: normal; font-size: 15px;
}
.site-footer__bottom {
  padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap;
  font-size: 13px; color: rgba(255, 255, 255, .55);
}

/* ---------- Boton flotante de WhatsApp ---------- */
.whatsapp-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--navy);
  padding: 10px 20px 10px 12px; border-radius: var(--radius-pill);
  box-shadow: 0 14px 34px rgba(11, 23, 52, .3);
  font-size: 15px; font-weight: 700;
}
.whatsapp-cta:hover { background: #F3FFF7; color: var(--navy); }
.whatsapp-cta__icon { width: 36px; height: 36px; display: block; animation: kprPulse 2.4s ease-in-out infinite; }
@keyframes kprPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ---------- Responsive ---------- */
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid rgba(20, 40, 90, .16);
  background: var(--white); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
img { height: auto; }
.hero__bg, .service-card__image, .split__image { height: 100%; }

@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .nav__link { padding: 10px 11px; font-size: 14px; }
}
@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .site-header__inner { flex-wrap: nowrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand__img { height: 42px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    box-shadow: 0 18px 30px rgba(11, 23, 52, .12); display: none;
  }
  .site-header.is-open .nav { display: flex; }
  .nav__link { padding: 14px 12px; font-size: 16px; border-radius: 12px; }
  .site-header__actions { margin-left: auto; }
  .hero { min-height: 540px; }
  .hero__content { padding: 72px 22px; }
  .hero__subtitle { font-size: 16px; }
  .section__lead { font-size: 16px; }
  .split__inner { gap: 32px; }
  .site-footer__inner { padding-top: 52px; }
}
@media (max-width: 520px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .section { padding: 52px 0; }
  .brand__img { height: 36px; }
  #header-book-button { padding: 11px 16px; font-size: 14px; }
  .lang-switch__btn { padding: 9px 10px; font-size: 12px; }
  .hero { min-height: 0; }
  .hero__content { padding: 60px 18px 64px; }
  .hero .kicker--on-dark { font-size: 12px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn--lg { font-size: 16px; padding: 16px 22px; }
  .trust-bar__grid { grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 24px; padding-bottom: 24px; }
  .trust-item__value { font-size: 24px; }
  .trust-item__label { font-size: 13px; }
  .cards-grid, .steps, .testimonials-grid { margin-top: 32px; gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .gallery-grid__photo { border-radius: 14px; }
  .service-card__body, .step, .testimonial { padding: 22px; }
  .contact-form { padding: 22px; grid-template-columns: 1fr; }
  .city-list__item { padding: 9px 16px; font-size: 14px; }
  .site-footer__bottom { flex-direction: column; }
  .whatsapp-cta { padding: 12px; right: 16px; bottom: 16px; }
  .whatsapp-cta__label { display: none; }
  .faq-item { padding: 16px 18px; }
  .faq-item summary { font-size: 16px; }
}
@media (max-width: 360px) {
  .lang-switch { display: none; }
}

/* ---------- Bloques creados desde el panel (CMS) ---------- */
html.cms-loading #main-content { opacity: 0; }
#main-content { transition: opacity .25s; }
.section--white { background: var(--white); }
.field__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.site-footer__admin {
  color: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-pill); padding: 4px 14px;
}
.site-footer__admin:hover { color: var(--navy); background: var(--yellow); border-color: var(--yellow); }
.nav__link.is-current { color: var(--gold); }
.cms-rich > :first-child { margin-top: 0; }
.cms-rich p { margin: 0 0 1em; }
.cms-rich ul, .cms-rich ol { margin: 0 0 1em; padding-left: 1.3em; }
.cms-rich h2, .cms-rich h3 { color: var(--navy); margin: 1.2em 0 .4em; line-height: 1.15; }
.section--navy .cms-rich h2, .section--navy .cms-rich h3 { color: var(--white); }
.cms-rich a { text-decoration: underline; }
.cms-text .container { max-width: 900px; }
.cms-text .section__lead { max-width: none; }
.cms-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.cms-cta { text-align: center; }
.cms-cta .section__title, .cms-cta .section__lead { margin-left: auto; margin-right: auto; }
.cms-cta .cms-actions { justify-content: center; }
.split--reverse .split__media { order: -1; }
.faq-list { margin-top: 36px; display: grid; gap: 12px; max-width: 900px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  font-weight: 700; font-size: 18px; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gold); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item__a { margin-top: 12px; color: var(--ink-70); line-height: 1.6; }
.cms-hero { min-height: 480px; }
