/* ============================================================
   Valetas — variables de tema pastel y base
   ============================================================ */
:root {
  --cream: #fffbf5;
  --beige: #f5ebe0;
  --blush: #ffe4ec;
  --rose: #f8b4c4;
  --butter: #fff3c4;
  --mint-soft: #d8f3e4;
  --lavender: #e8e0ff;
  /* Color de marca (logo) */
  --brand: #a43266;
  --brand-soft: rgba(164, 50, 102, 0.14);
  --brand-softer: rgba(164, 50, 102, 0.08);
  --text: #4a3f45;
  --text-muted: #7a6d74;
  --whatsapp: #5cb85c;
  --whatsapp-hover: #4aa54a;
  --shadow-soft: 0 12px 40px rgba(74, 63, 69, 0.08);
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
  overflow-x: clip;
  max-width: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 19px;
  }
}

.landing-body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
}

/* Evita desbordamiento horizontal por grillas, imágenes anchas o textos largos */
.landing-body main {
  overflow-x: clip;
  max-width: 100%;
}

.landing-body img,
.landing-body video,
.landing-body svg {
  max-width: 100%;
  height: auto;
}

.landing-body .row > [class*="col-"] {
  min-width: 0;
}

/* Logo en barra superior */
.navbar-brand-logo {
  display: block;
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

/* Portada al inicio del hero (tipo banner) */
.hero-cover {
  max-width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(40vw, 260px);
  object-fit: cover;
  object-position: center;
}

@media (min-width: 992px) {
  .hero-cover img {
    max-height: 280px;
  }
}

/* Logo principal en hero (centrado) */
.hero-brand-logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

.hero-main .hero-lead {
  text-align: center;
}

/* Cabecera */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(12px);
  background: rgba(255, 251, 245, 0.88);
  border-bottom: 1px solid rgba(248, 180, 196, 0.25);
  box-shadow: 0 4px 24px rgba(74, 63, 69, 0.04);
}

.landing-nav {
  padding-block: 0.65rem;
}

.landing-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text) !important;
  letter-spacing: -0.02em;
}

.landing-nav-link {
  color: var(--text-muted) !important;
  font-weight: 600;
  border-radius: 999px;
  padding-inline: 0.85rem !important;
  transition: color var(--transition), background var(--transition);
}

.landing-nav-link:hover {
  color: var(--text) !important;
  background: var(--brand-softer);
}

.landing-toggler {
  border: none;
  box-shadow: none !important;
}

/* Botón WhatsApp (acento legible sobre pastel) */
.btn-whatsapp {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--whatsapp);
  --bs-btn-border-color: var(--whatsapp);
  --bs-btn-hover-bg: var(--whatsapp-hover);
  --bs-btn-hover-border-color: var(--whatsapp-hover);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  box-shadow: 0 8px 24px rgba(92, 184, 92, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(92, 184, 92, 0.35);
}

.btn-outline-pastel {
  border: 2px solid rgba(74, 63, 69, 0.15);
  color: var(--text);
  font-weight: 700;
  border-radius: 999px;
  background: #fff;
  transition: border-color var(--transition), transform var(--transition);
}

.btn-outline-pastel:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 10% 20%, rgba(255, 228, 236, 0.95) 0%, transparent 55%),
    radial-gradient(100% 70% at 90% 10%, rgba(255, 243, 196, 0.75) 0%, transparent 50%),
    radial-gradient(80% 60% at 50% 100%, rgba(232, 224, 255, 0.6) 0%, transparent 45%),
    linear-gradient(165deg, var(--cream) 0%, var(--beige) 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a43266' fill-opacity='0.14'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Título hero: ahora es el logotipo (imagen); tipografía para subtítulos debajo */
.hero-content h1 {
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-lead {
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: stretch;
}

.hero-cta-row .btn {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 420px) {
  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Animación de entrada (hero) */
.hero-fade {
  animation: heroFade 0.9s var(--transition) both;
}

.hero-fade-delay-1 {
  animation-delay: 0.12s;
}

.hero-fade-delay-2 {
  animation-delay: 0.22s;
}

.hero-fade-delay-3 {
  animation-delay: 0.32s;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal (activado por JS) */
.js-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--transition), transform 0.65s var(--transition);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Secciones genéricas */
.section {
  padding: 4rem 0;
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

/* Detalle visual de marca en títulos */
.section-title::after {
  content: "";
  display: block;
  width: 4.25rem;
  height: 0.35rem;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, rgba(248, 180, 196, 0.55) 60%, rgba(255, 243, 196, 0.0) 100%);
}

.section-intro {
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 2rem;
  overflow-wrap: anywhere;
}

/* ============================================================
   Qué ofrecemos — tarjetas
   ============================================================ */
.section-offer {
  background: linear-gradient(180deg, #fff 0%, var(--blush) 100%);
}

.offer-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(248, 180, 196, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(74, 63, 69, 0.1);
}

.offer-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.offer-icon--events {
  background: var(--butter);
  color: #8b6914;
}

.offer-icon--toppings {
  background: var(--blush);
  color: var(--brand);
}

.offer-icon--service {
  background: var(--mint-soft);
  color: #2d6a4f;
}

.offer-card h3 {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.offer-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   Galería
   ============================================================ */
.section-gallery {
  background: var(--cream);
}

/* Carrusel: hace que las fotos se distingan mejor en móvil */
.gallery-carousel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: linear-gradient(180deg, #fff 0%, rgba(164, 50, 102, 0.03) 100%);
}

.gallery-frame {
  padding: 1rem 1rem 0.75rem;
}

.gallery-img {
  width: 100%;
  height: clamp(320px, 55vw, 520px);
  object-fit: contain; /* importante para PNG: no recorta la paleta */
  object-position: center;
  display: block;
  background: radial-gradient(60% 60% at 50% 40%, rgba(255, 228, 236, 0.65) 0%, rgba(255, 251, 245, 0.0) 70%),
              radial-gradient(55% 55% at 55% 55%, rgba(255, 243, 196, 0.55) 0%, rgba(255, 251, 245, 0.0) 70%);
  border-radius: calc(var(--radius-xl) - 0.6rem);
}

/* En desktop preferimos respetar el alto real (sin “salirse” o recortar) */
@media (min-width: 992px) {
  .gallery-frame {
    padding: 1.25rem 1.25rem 0.9rem;
  }

  .gallery-img {
    height: auto;
    max-height: min(68vh, 520px);
  }
}

.gallery-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: rgba(164, 50, 102, 0.35);
}

.gallery-carousel .carousel-indicators .active {
  background-color: var(--brand);
}

.gallery-carousel .carousel-control-prev-icon,
.gallery-carousel .carousel-control-next-icon {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

/* Flechas del carrusel en color de marca */
.gallery-carousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23a43266' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

.gallery-carousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23a43266' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 1 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.gallery-carousel .carousel-control-prev,
.gallery-carousel .carousel-control-next {
  opacity: 0.95;
}

.gallery-carousel .carousel-control-prev:hover,
.gallery-carousel .carousel-control-next:hover {
  opacity: 1;
}

/* gallery-caption ya no se usa (se dejó el carrusel limpio) */

/* ============================================================
   Cómo funciona — pasos
   ============================================================ */
.section-steps {
  background: linear-gradient(180deg, var(--lavender) 0%, var(--cream) 100%);
}

.step-num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(164, 50, 102, 0.28);
}

.step-card {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
}

.step-card h3 {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   CTA banda
   ============================================================ */
.cta-band {
  padding: 3.5rem 0;
  background: linear-gradient(120deg, var(--brand), var(--rose), var(--butter));
  color: var(--text);
  text-align: center;
  border-radius: 0;
}

.cta-band h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin-bottom: 1.25rem;
}

/* ============================================================
   Redes y contacto
   ============================================================ */
.section-social {
  background: #fff;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-soft);
}

.social-link--ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-link--fb {
  background: #1877f2;
}

.social-link:hover {
  transform: translateY(-4px) scale(1.05);
  color: #fff;
}

.section-contact {
  background: var(--beige);
}

.contact-mail {
  font-weight: 800;
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px dashed rgba(248, 180, 196, 0.6);
  transition: border-color var(--transition), color var(--transition);
  overflow-wrap: anywhere;
}

.contact-mail:hover {
  color: var(--brand);
  border-bottom-color: rgba(164, 50, 102, 0.55);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 1.5rem 0 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--cream);
  border-top: 1px solid rgba(74, 63, 69, 0.06);
}

/* Utilidad: ancho máximo de lectura */
.max-read {
  max-width: 42rem;
}

/* Focus visible accesible */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(248, 180, 196, 0.85);
  outline-offset: 3px;
}
