/* ═══════════════════════════════════════════════════════════════
   SECTIONS.CSS — Estilos de sección que faltaban en el homepage
   Complementa: unified.css + design-system.css + components.css
   Usa los tokens de design-system.css (--color-*, --font-*)
   ═══════════════════════════════════════════════════════════════ */

/* Tokens de espaciado requeridos por services-cards.css */
:root {
  --sp-section:        clamp(60px, 10vw, 120px);
  --sp-section-tight:  clamp(48px, 8vw, 96px);
  --sp-heading-gap:    clamp(24px, 4vw, 48px);
  --sp-card-gap:       16px;
  --green:             #22C55E;
}

/* ── HERO BADGE ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--font-accent);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ── PORTFOLIO: CAPTIONS Y WATERMARK ── */
.port-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 18px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
  pointer-events: none;
  z-index: 2;
}

.port-item:hover .port-caption,
.port-item:focus-within .port-caption {
  opacity: 1;
  transform: translateY(0);
}

.port-caption span {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.port-caption span:first-child { color: var(--color-accent); font-weight: 600; }
.port-caption span:last-child  { color: rgba(255,255,255,0.75); font-weight: 400; }

.port-watermark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: auto;
  height: 28px !important;
  max-height: 28px;
  opacity: 0.55;
  z-index: 2;
  pointer-events: none;
}

/* ── CONTACTO ── */
.contact { text-align: left; }
.contact h2 { text-align: center; }

.contact-note {
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.9;
}
.contact-note .icon-inline {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
}

.contact-ways {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 5vw, 56px);
  margin: 0 auto 48px;
  padding: 8px 0 32px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--color-border-hover);
  border-radius: 50%;
  transition: border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out);
}

.contact-icon svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.contact-icon:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-muted);
  transform: translateY(-3px);
}
.contact-icon svg path,
.contact-icon svg polygon { transition: fill var(--duration-normal) ease; }
.contact-icon:hover svg path,
.contact-icon:hover svg polygon { fill: var(--color-accent); }

.contact-icon:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

#contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
#contact-form textarea { min-height: 140px; resize: vertical; }
#contact-form .btn { justify-self: center; min-width: 220px; }

/* ── BOOKING ── */
.booking {
  text-align: center;
}
.booking h2 { margin-bottom: 12px; }
.booking-sub {
  color: var(--color-text-secondary);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto var(--sp-heading-gap);
  line-height: 1.7;
}
#cal-embed {
  max-width: 920px;
  margin: 0 auto;
  min-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── TESTIMONIOS: AVATARES CON INICIALES (sin fotos de stock) ── */
.testimonial-avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-muted);
  border: 1px solid var(--color-border-accent);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.05em;
}

/* ── FOOTER ── */
.site-footer { text-align: center; }
.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-logo a {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1;
  transition: color var(--duration-normal) var(--ease-out);
}
.footer-logo a:hover { color: var(--color-accent); }
.footer-logo svg { height: 26px; width: auto; opacity: 0.85; }
.site-footer small { color: var(--color-text-tertiary); font-size: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .contact-icon { width: 64px; height: 64px; }
  .contact-icon svg { width: 24px; height: 24px; }
  .port-caption {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE FIXES — evita el desbordamiento horizontal ("flotando")
   ═══════════════════════════════════════════════════════════════ */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

img, video, svg, iframe {
  max-width: 100%;
}

#cal-embed,
#cal-embed iframe {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  /* Hero: altura estable con la barra del navegador movil */
  .hero {
    height: 100svh;
    min-height: 540px;
  }

  /* Nav: los enlaces se deslizan horizontalmente en vez de
     empujar el ancho de la pagina */
  .site-header {
    gap: 10px;
  }
  .header-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
    mask-image: linear-gradient(to right, #000 88%, transparent);
    padding-bottom: 2px;
  }
  .header-nav::-webkit-scrollbar { display: none; }
  .header-nav a {
    flex-shrink: 0;
    font-size: 11px;
  }

  /* Secciones: nada puede sobresalir del viewport */
  section {
    overflow-x: clip;
  }

  /* Carrusel de testimonios: flechas dentro de pantalla */
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(40px, 13vw, 56px); letter-spacing: -1px; }
  .hero-ctas .btn { width: 100%; }
  .contact-ways { gap: 16px; }
}
}
}
