/* ============================================
   PETEL Hotel & Daycare — sistema de diseño
   ============================================ */

:root {
  /* color: paleta reducida, cyan como dominante */
  --cyan: #00BFE6;
  --cyan-deep: #049CBC;
  --ink: #0B2E3D;
  --bg: #F5FBFC;
  --purple: #7A1FA2;
  --lime: #8DC63F;
  --gold: #F7B731;
  --white: #FFFFFF;
  --whatsapp: #25D366;

  /* azul técnico: solo requisitos/vacunas/tallas */
  --blue-1: #1B79C9;
  --blue-2: #4FC3F7;
  --blue-3: #0D47A1;

  --font-display: "Chewy", cursive;
  --font-heading: "Baloo 2", sans-serif;
  --font-body: "Nunito", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow: 0 10px 30px rgba(11, 46, 61, 0.12);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-heading); margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

section { padding: 64px 0; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.eyebrow-none { /* marcador intencional: no usamos eyebrows tipo etiqueta */ }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-card { background: var(--ink); color: var(--white); font-size: 0.95rem; padding: 11px 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(11,46,61,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
}
.site-header .logo-link { display: flex; align-items: center; height: 100%; }
.site-header .logo-link img { height: 96px; width: auto; }

@media (min-width: 900px) {
  .site-header .container { height: 118px; }
  .site-header .logo-link img { height: 104px; }
}

.main-nav {
  display: none;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}
.main-nav a:hover { color: var(--cyan-deep); }
.main-nav .btn-whatsapp { padding: 10px 20px; font-size: 0.95rem; }

.hamburger {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger svg { width: 28px; height: 28px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--white);
  border-top: 1px solid #E4EEF1;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 16px 20px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  border-bottom: 1px solid #EEF6F8;
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .hamburger, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 60px;
  background: linear-gradient(180deg, #E8FAFF 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero-media {
  position: relative;
  border-radius: 62% 38% 55% 45% / 45% 42% 58% 55%;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-copy { opacity: 0; transform: translateY(16px); animation: rise 0.7s ease forwards 0.15s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero-copy { opacity: 1; transform: none; animation: none; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  color: var(--ink);
}
.hero p.lead { font-size: 1.15rem; max-width: 46ch; }

.diff-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
}
.diff-chips li {
  background: var(--white);
  border: 1px solid #D9F0F6;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 10px rgba(11,46,61,0.06);
}

.hero-cta { display: flex; }
.hero .btn-whatsapp { color: var(--white); }

@media (min-width: 860px) {
  .hero .container { grid-template-columns: 1fr 1fr; }
  .hero-media { order: 2; }
  .hero-copy { order: 1; }
}

/* ---------- Confianza / prueba social ---------- */
.confianza { background: var(--white); }
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 32px;
}
.rating-badge .stars { color: var(--gold); font-size: 1.4rem; letter-spacing: 2px; }
.rating-badge strong { font-family: var(--font-heading); font-size: 1.3rem; }
.rating-badge span { color: #4A6672; font-size: 0.95rem; }

.testimonios {
  display: grid;
  gap: 20px;
}
.testimonio {
  background: var(--bg);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.testimonio p { font-size: 1.02rem; margin-bottom: 8px; }
.testimonio cite { font-style: normal; font-weight: 700; color: var(--cyan-deep); }

@media (min-width: 760px) {
  .testimonios { grid-template-columns: 1fr 1fr; }
}

/* ---------- Servicios ---------- */
.servicios { background: linear-gradient(160deg, #E3F8FD 0%, #EFE6F7 100%); }
.section-title { text-align: left; max-width: 60ch; position: relative; }
.section-title h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.section-title h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  border-radius: 999px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.servicio-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
@media (min-width: 760px) {
  .servicio-grid { grid-template-columns: repeat(3, 1fr); }
}

.servicio-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.servicio-card .tag {
  position: absolute;
  top: 0;
  left: 22px;
  padding: 6px 14px 8px;
  border-radius: 0 0 8px 8px;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
}
.servicio-card--hotel .tag { background: var(--purple); }
.servicio-card--guarderia .tag { background: var(--lime); color: var(--ink); }
.servicio-card--bano .tag { background: var(--gold); color: var(--ink); }

.servicio-card figure { margin: 0; height: 190px; }
.servicio-card figure img { width: 100%; height: 100%; object-fit: cover; }
.servicio-card figure.sin-foto {
  background: linear-gradient(135deg, var(--gold) 0%, #FFDD8A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.servicio-card figure.sin-foto svg { width: 64px; height: 64px; color: var(--ink); opacity: 0.7; }

.servicio-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.servicio-body h3 { font-size: 1.3rem; }
.servicio-body .precio { font-family: var(--font-heading); font-weight: 700; color: var(--cyan-deep); font-size: 1.05rem; }
.servicio-body p { flex: 1; color: #3A5560; font-size: 0.98rem; }

/* ---------- Galería ---------- */
.galeria { background: var(--white); }
.galeria-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
}
.galeria-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
}
.galeria-item img { width: 100%; height: 100%; object-fit: cover; }

.video-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
@media (min-width: 700px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
.video-card {
  background: var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-card video { width: 100%; max-height: 520px; object-fit: cover; background: #000; }
.video-card figcaption {
  color: var(--white);
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

/* ---------- Requisitos (accordion nativo) ---------- */
.requisitos { background: linear-gradient(160deg, #FFF6E0 0%, #EAFBEF 100%); }
.acordeon { margin-top: 28px; display: grid; gap: 16px; }
.acordeon details {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid #E9EEF0;
  border-left: 8px solid var(--blue-1);
  padding: 4px 26px;
  box-shadow: 0 6px 18px rgba(11,46,61,0.06);
}
.acordeon details:nth-of-type(1) { border-left-color: var(--purple); }
.acordeon details:nth-of-type(2) { border-left-color: var(--gold); }
.acordeon details:nth-of-type(3) { border-left-color: var(--lime); }
.acordeon details:nth-of-type(4) { border-left-color: var(--cyan-deep); }
.acordeon summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.acordeon summary .emoji { font-size: 1.6rem; }
.acordeon summary .chev {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s ease;
  color: var(--blue-1);
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon details[open] summary .chev { transform: rotate(180deg); }
.acordeon ul { margin: 0 0 22px; padding-left: 26px; color: #3A5560; font-size: 1.08rem; }
.acordeon li { margin-bottom: 10px; }

.terminos {
  margin-top: 32px;
  background: var(--blue-3);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.terminos h3 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 12px; }
.terminos ul { margin: 0; padding-left: 20px; }
.terminos li { margin-bottom: 8px; }

/* ---------- Contacto ---------- */
.contacto { background: var(--white); }
.contacto-grid {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}
@media (min-width: 860px) {
  .contacto-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.mapa iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.contacto-info { display: grid; gap: 22px; align-content: start; }
.info-block { display: flex; gap: 14px; align-items: flex-start; }
.info-block svg { width: 26px; height: 26px; color: var(--cyan-deep); flex-shrink: 0; margin-top: 2px; }
.info-block h4 { font-family: var(--font-heading); margin: 0 0 4px; font-size: 1.05rem; }
.info-block p { margin: 0; color: #3A5560; }
.info-block a { text-decoration: none; }
.info-block a:hover { text-decoration: underline; }
.info-block .wa-link { color: var(--whatsapp-deep, #128C3E); font-weight: 800; }
.info-block .maps-link { color: var(--cyan-deep); font-weight: 700; }

.contacto-links { display: flex; gap: 16px; margin-top: 6px; }
.contacto-links a {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(11,46,61,0.12);
  transition: transform 0.15s ease;
}
.contacto-links a:hover { transform: translateY(-3px) scale(1.05); }
.contacto-links svg { width: 30px; height: 30px; }
.contacto-links .ic-wa { background: var(--whatsapp); color: var(--white); }
.contacto-links .ic-fb { background: #1877F2; color: var(--white); }
.contacto-links .ic-ig {
  background: radial-gradient(circle at 30% 110%, #FDF497 0%, #FD5949 35%, #D6249F 62%, #285AEB 100%);
  color: var(--white);
}
.contacto-links .ic-tt { background: #000000; color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  color: #E7F4F8;
  padding: 56px 0 0;
  background: linear-gradient(180deg, rgba(6,26,35,0.82) 0%, rgba(6,26,35,0.94) 100%), url("img/footer-bg.webp") center/cover no-repeat;
}
.footer-grid {
  display: grid;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-brand img { height: 76px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: #B9DCE6; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #C7E4EC; text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.footer-social svg { width: 20px; height: 20px; color: var(--white); }
.site-footer .footer-copy {
  font-size: 0.88rem;
  color: #9CC3CE;
  padding: 20px 0 26px;
  text-align: center;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 60;
}
.wa-float svg { width: 30px; height: 30px; color: var(--white); }

/* ---------- Móvil: contenido centrado ---------- */
@media (max-width: 759px) {
  .hero-copy,
  .section-title,
  .servicio-body,
  .footer-brand,
  .footer-col {
    text-align: center;
  }
  .footer-brand img { margin-left: auto; margin-right: auto; }
  .section-title h2::after { margin-left: auto; margin-right: auto; }
  .diff-chips, .hero-cta, .footer-social { justify-content: center; }
  .servicio-body .btn-card { align-self: center; }
  .testimonio {
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--cyan);
  }
  .info-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-col ul { justify-items: center; }
  .footer-grid { justify-items: center; }
}

/* fuentes: font-display swap ya se define en el link de Google Fonts */
