/* =========================================
   Amor en Páginas · Brand Stylesheet
   ========================================= */

/* ---------- Variables ---------- */
:root {
  --amor-primary: #e04c86;
  --amor-primary-ink: #b53b6a;
  --amor-secondary: #6b7cff;
  --amor-accent: #ffd166;
  --amor-bg: #fff8fb;
  /* Fondo de la siguiente sección tras el hero (Bloque 2) */
  --amor-section-2-bg: var(--amor-bg);
  --amor-ink: #2a2a2a;
  --amor-ink-soft: #525252;
  --amor-border: #f5cfe0;

  --amor-heading: "Fraunces", Georgia, serif;
  --amor-body: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;

  --amor-radius: 16px;
  --amor-shadow: 0 8px 24px rgba(224, 76, 134, 0.15);
  --amor-cta-bg: var(--amor-primary);
  --amor-cta-bg-hover: var(--amor-primary-ink);
  --amor-focus: 2px solid var(--amor-secondary);
}

/* ---------- Base ---------- */
body {
  background-color: #fff9fb;
  color: var(--amor-ink);
  font-family: var(--amor-body);
}

/* Transiciones suaves al cambiar de tema (respetando RWM) */
@media (prefers-reduced-motion: no-preference) {
  html,
  body {
    transition: background-color 280ms ease, color 220ms ease;
  }
  .navbar,
  .card-amor,
  .contact-card,
  .ex-card,
  .contact-section,
  #objetivo,
  footer,
  .btn-amor,
  .btn-gradient {
    transition: background-color 280ms ease, color 220ms ease,
      border-color 220ms ease, box-shadow 280ms ease;
  }
  .hero-banner::before,
  .hero-banner::after {
    transition: background 320ms ease, opacity 280ms ease;
  }
}

h1,
h2,
h3 {
  font-family: var(--amor-heading);
  letter-spacing: 0.2px;
}

:focus-visible {
  outline: var(--amor-focus);
  outline-offset: 2px;
}

/* Skip link accesible */
.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2000;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ffffff;
  color: #1a1a1a;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.skip-link:focus-visible {
  transform: translateY(0);
}
[data-theme="dark"] .skip-link {
  background: #1d1b28;
  color: #fff;
}

/* ===============================
   TOP STRIP / HEADER
================================== */

.top-strip {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.lang-strip {
  gap: 0.75rem;
}

.lang-option {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.lang-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-option:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-option[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* ===============================
   SOCIAL MEDIA LINKS
================================== */

.social-links-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.social-animated {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInDown 0.6s ease-out 3s forwards;
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-whatsapp:hover {
  background: #25d366 !important;
}

.social-instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  ) !important;
}

.social-facebook:hover {
  background: #1877f2 !important;
}

.social-icon-link:focus-visible {
  outline: 2px solid var(--amor-focus);
  outline-offset: 2px;
}

.social-links-footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .social-links-footer {
    justify-content: flex-start;
  }
}

.social-icon-large {
  width: 48px;
  height: 48px;
  border: 1px solid var(--amor-border);
  color: var(--amor-text-muted);
  background: var(--amor-bg);
}

.social-icon-large:hover {
  background: var(--amor-bg-alt);
  border-color: var(--amor-primary);
  color: var(--amor-primary);
  transform: translateY(-2px);
}

.hover-primary {
  transition: color 0.3s ease;
}

.hover-primary:hover {
  color: var(--amor-primary) !important;
}

@media (max-width: 768px) {
  .social-links-header {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    gap: 0.5rem;
  }

  .social-icon-link {
    width: 32px;
    height: 32px;
  }

  .social-icon-link svg {
    width: 18px;
    height: 18px;
  }

  .social-icon-large {
    width: 42px;
    height: 42px;
  }

  .social-icon-large svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-animated {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .social-icon-link:hover,
  .social-icon-large:hover {
    transform: none;
  }
}

.top-strip {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 1900;
  background: linear-gradient(
    180deg,
    rgba(4, 7, 25, 0.9),
    rgba(15, 31, 79, 0.85),
    rgba(124, 56, 122, 0.45)
  );
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}
.hero-banner .navbar {
  margin-top: 72px;
}
.top-strip__content {
  padding: 0;
  justify-content: flex-end;
}
.lang-switch {
  display: flex;
  gap: 6px;
}
.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  padding: 2px;
  background: transparent;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}
.lang-option img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
[data-theme="dark"] .top-strip .lang-option,
.top-strip .lang-option {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.lang-option:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 15, 21, 0.35);
}
.lang-option:focus-visible {
  outline: 2px solid var(--amor-secondary);
  outline-offset: 2px;
}
.lang-option.active,
.lang-option[aria-pressed="true"] {
  box-shadow: 0 0 0 2px rgba(224, 76, 134, 0.45);
}

[data-theme="dark"] .top-strip {
  background: transparent !important;
  border: none !important;
}

.hero-tools {
  transition: none;
  margin-top: -24px;
}

@media (max-width: 768px) {
  .hero-tools {
    position: fixed;
    top: 60px;
    right: 12px;
    z-index: 1850;
  }
}

/* ---------- Hero ---------- */
.hero-banner {
  position: relative;
  min-height: 80vh;
  background: url("../assets/Horizontal banner.png") center/cover no-repeat;
  color: #fff;
}
/*
  Hero optimizado con image-set (activar cuando existan los archivos):
  Requisitos: assets/banner.avif y assets/banner.webp, además del PNG.

  .hero-banner {
    background-image: -webkit-image-set(
      url("../assets/banner.avif") type("image/avif") 1x,
      url("../assets/banner.webp") type("image/webp") 1x,
      url("../assets/banner.png") type("image/png") 1x
    );
    background-image: image-set(
      url("../assets/banner.avif") type("image/avif") 1x,
      url("../assets/banner.webp") type("image/webp") 1x,
      url("../assets/banner.png") type("image/png") 1x
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
*/
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 7, 25, 0.85) 0%,
    rgba(15, 31, 79, 0.8) 50%,
    rgba(124, 56, 122, 0.45) 80%
  );
  z-index: 0;
}
/* Refuerzo de contraste en móviles (títulos/subtítulos más legibles) */
@media (max-width: 576px) {
  .hero-banner::before {
    background: linear-gradient(
      180deg,
      rgba(4, 7, 25, 0.92) 0%,
      rgba(15, 31, 79, 0.88) 48%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }
  #hero h1 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  }
  #hero .lead {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  }
}

/* Suaviza la unión visual con el siguiente bloque */
.hero-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(28px, 6.5vw, 64px);
  pointer-events: none;
  z-index: 0;
  /* Funde hacia el fondo del bloque 2, más sutil */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 45%,
    var(--amor-section-2-bg) 100%
  );
}
.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 65vh;
  padding-top: clamp(4px, 0.5vh, 8px);
  padding-bottom: clamp(16px, 3vw, 32px);
  margin-top: -8px;
}
#hero h1 {
  font-size: clamp(28px, 5.2vw, 48px);
  line-height: 1.12;
  margin-bottom: clamp(10px, 2.2vw, 16px);
}
#hero .lead {
  font-size: clamp(15px, 2.2vw, 20px);
  line-height: 1.45;
  max-width: min(90vw, 780px);
  margin-inline: auto;
  margin-bottom: clamp(14px, 2.4vw, 18px);
}

.hero-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-tools select {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
  min-width: 70px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  background-repeat: no-repeat;
  background-position: 90% 50%;
}
.hero-tools select:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
}
.hero-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.hero-benefits li {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media {
  width: min(420px, 90vw);
}
.hero-media-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.9rem 1.2rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  align-self: stretch;
}
.hero-media-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--amor-primary),
    var(--amor-secondary)
  );
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ---------- Hero CTA Glass Bar ---------- */
.hero-cta-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
@supports (backdrop-filter: blur(8px)) {
  .hero-cta-bar {
    backdrop-filter: blur(8px);
  }
}
.hero-cta-bar .btn-amor,
.hero-cta-bar .btn-outline-amor {
  min-width: 220px;
}
/* Estilo ghost blanco para el botón secundario dentro del glass */
.hero-cta-bar .btn-outline-amor {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}
.hero-cta-bar .btn-outline-amor:hover,
.hero-cta-bar .btn-outline-amor:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.95);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.18);
}
@media (max-width: 576px) {
  .hero-cta-bar {
    width: min(92vw, 520px);
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 0.6rem;
  }
  .hero-cta-bar .btn-amor,
  .hero-cta-bar .btn-outline-amor {
    min-width: unset;
    width: 100%;
  }
}
[data-theme="dark"] .hero-cta-bar {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ---------- Hero Badge ---------- */
.hero-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #3a0040;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}
[data-theme="dark"] .hero-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---------- Botón marca (CTA) ---------- */
.btn-amor {
  background: var(--amor-cta-bg);
  color: #fff;
  border: none;
  padding: clamp(10px, 2.5vh, 14px) 24px;
  border-radius: var(--amor-radius);
  box-shadow: 0 4px 16px rgba(224, 76, 134, 0.25);
  transition: transform 0.06s ease, background 0.15s ease;
}
.btn-amor:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(224, 76, 134, 0.35);
  background: var(--amor-cta-bg-hover);
}
.btn-amor:focus-visible {
  outline: var(--amor-focus);
}
.btn-amor:active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(224, 76, 134, 0.3);
}
.btn-amor.btn-lg {
  font-size: 1.1rem;
  padding: 0.8rem 1.8rem;
  box-shadow: 0 10px 30px rgba(224, 76, 134, 0.35);
}

/* ---------- Navbar ---------- */
.navbar {
  padding-block: clamp(6px, 1.2vw, 10px);
}
.navbar .container-fluid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.navbar-brand {
  justify-self: start;
  margin-left: clamp(8px, 1.6vw, 18px);
}
#theme-toggle {
  justify-self: end;
  margin-right: clamp(8px, 1.6vw, 18px);
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
#theme-toggle:hover {
  background: #fff;
  color: var(--amor-primary);
}

.nav-links-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  flex-wrap: wrap;
}
.navbar .nav-link {
  font-weight: 700;
  color: #fff !important;
  transition: color 0.2s ease;
}
.navbar .nav-link:hover {
  color: #ffd6f5 !important;
}
[data-theme="dark"] .navbar .nav-link {
  color: #f2f2f2 !important;
}
[data-theme="dark"] .navbar .nav-link:hover {
  color: #ffb0e8 !important;
}

/* —— Navbar: links más grandes —— */
.nav-links-center .nav-link {
  font-weight: 600;
  font-size: clamp(15px, 1.15rem, 18px);
  letter-spacing: 0.1px;
}

/* ---------- Cards base ---------- */
.card-amor {
  position: relative;
  border-radius: var(--amor-radius);
  border: 1px solid var(--amor-border);
  box-shadow: var(--amor-shadow);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.card-amor:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(224, 76, 134, 0.18);
}

/* ---------- Ribbon ---------- */
.ribbon {
  position: absolute;
  top: 12px;
  left: -8px;
  background: linear-gradient(
    90deg,
    var(--amor-primary) 0%,
    var(--amor-primary-ink) 100%
  );
  color: #fff;
  font: 600 13px/1 var(--amor-body);
  padding: 6px 14px 6px 22px;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
  box-shadow: 0 6px 14px rgba(224, 76, 134, 0.25);
  z-index: 2;
}
.ribbon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  border: 8px solid transparent;
  border-top-color: #a0355c;
}

/* ---------- CTA Sticky (solo mobile) ---------- */
.cta-sticky {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1030;
  padding: 12px 20px;
}
@media (min-width: 768px) {
  .cta-sticky {
    display: none;
  }
}

/* ---------- Form feedback ---------- */
.was-validated .form-control:invalid,
.form-control.is-invalid,
.was-validated .form-select:invalid,
.form-select.is-invalid {
  border-color: var(--amor-primary);
}

/* ---------- Dark Mode base ---------- */
[data-theme="dark"] {
  --amor-bg: #111017;
  --amor-section-2-bg: #0f1220;
  --amor-ink: #f4f4f7;
  --amor-ink-soft: #cfcfe3;
  --amor-border: #2a2633;
  background-color: var(--amor-bg);
  color: var(--amor-ink);
}
[data-theme="dark"] .text-muted {
  color: #d4d4e1 !important;
}
[data-theme="dark"] .bg-light {
  background-color: #181726 !important;
}

[data-theme="dark"] .hero-banner::before {
  background: linear-gradient(
    180deg,
    rgba(52, 0, 70, 0.65) 0%,
    rgba(224, 76, 134, 0.55) 100%
  );
}
[data-theme="dark"] .btn-amor {
  box-shadow: 0 10px 28px rgba(224, 76, 134, 0.28);
}
[data-theme="dark"] .btn-amor:hover {
  background: var(--amor-primary-ink);
  box-shadow: 0 12px 30px rgba(224, 76, 134, 0.35);
}
[data-theme="dark"] .btn-amor:active {
  box-shadow: 0 6px 18px rgba(224, 76, 134, 0.28);
}
[data-theme="dark"] .card-amor {
  background: #171527;
  border-color: #2a2633;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .card-amor .card-text {
  color: #cfcfe3;
}
[data-theme="dark"] footer {
  background: #14121f;
}
[data-theme="dark"] footer hr {
  border-color: #2a2633;
  opacity: 0.5;
}

[data-theme="dark"] .contact-channels {
  background: transparent;
}
[data-theme="dark"] .channel-option {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f4f4f7;
}
[data-theme="dark"] .channel-option input:checked + div {
  background: rgba(224, 76, 134, 0.2);
}

[data-theme="dark"] .faq-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .faq-item summary {
  color: #f4f4f7;
}
[data-theme="dark"] .faq-item p {
  color: #cfcfe3;
}

/* ---------- Responsive hero/navbar ---------- */
@media (max-width: 768px) {
  .navbar .container-fluid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
  }
  .navbar-brand {
    grid-column: 1 / -1;
    justify-self: center;
  }
  #theme-toggle {
    position: absolute;
    right: 1rem;
    top: 0.75rem;
  }
  .nav-links-center {
    grid-column: 1 / -1;
    margin-top: 6px;
  }
  .hero-banner {
    background-position: center top;
    min-height: 90vh;
  }
  .hero-overlay {
    min-height: 80vh;
  }
}

/* ---------- CTA hero anim ---------- */
@media (prefers-reduced-motion: no-preference) {
  #hero .cta-attention {
    animation: ctaPulse 3.2s ease-in-out 1.2s infinite;
    will-change: transform, box-shadow;
  }
  #hero .cta-attention:hover,
  #hero .cta-attention:focus-visible {
    animation-play-state: paused;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 30px rgba(224, 76, 134, 0.35);
  }
  @keyframes ctaPulse {
    0% {
      transform: translateY(0) scale(1);
      box-shadow: 0 8px 22px rgba(224, 76, 134, 0.28);
    }
    40% {
      transform: translateY(-2px) scale(1.02);
      box-shadow: 0 14px 36px rgba(224, 76, 134, 0.4);
    }
    100% {
      transform: translateY(0) scale(1);
      box-shadow: 0 8px 22px rgba(224, 76, 134, 0.28);
    }
  }
}
#hero .cta-attention:focus-visible {
  outline: var(--amor-focus);
  outline-offset: 2px;
  transition: outline-offset 0.15s ease;
}

/* =========================================
   DARK MODE — Restaurar contraste (captura 1)
   ========================================= */
[data-theme="dark"] .hero-banner::before {
  background: linear-gradient(
    180deg,
    rgba(52, 0, 70, 0.82) 0%,
    rgba(224, 76, 134, 0.72) 100%
  ) !important;
}
[data-theme="dark"] #hero {
  color: #fff !important;
}
[data-theme="dark"] #hero h1,
[data-theme="dark"] #hero .highlight {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] #hero .lead {
  color: #f3f1f6 !important;
}
[data-theme="dark"] .navbar {
  background: transparent !important;
}
[data-theme="dark"] .navbar .nav-link {
  color: #fff !important;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .navbar .nav-link:hover {
  color: #ffd6f5 !important;
}
[data-theme="dark"] #theme-toggle {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #fff !important;
  color: #fff !important;
}
[data-theme="dark"] .hero-badge {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #1a0024 !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* ---------- Bloque 2 · Objetivo ---------- */
#objetivo {
  padding-block: clamp(44px, 7vw, 72px);
}
#objetivo .card {
  border-radius: 18px !important;
  border: 1px solid rgba(20, 10, 28, 0.06) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.86)
  ) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(20, 10, 28, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, background 0.18s ease;
}
#objetivo .card:hover,
#objetivo .card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(20, 10, 28, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  border-color: rgba(224, 76, 134, 0.16) !important;
}
#objetivo .card-body {
  padding: 18px 20px !important;
}
#objetivo h5 {
  font-weight: 700;
  margin-bottom: 6px;
}
#objetivo .card p {
  margin-bottom: 0;
  line-height: 1.5;
}
/* Emojis */
#objetivo .feature-emoji {
  font-size: clamp(22px, 2.1vw, 26px);
  line-height: 1;
  transform: translateY(2px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
/* Dark */
[data-theme="dark"] #objetivo {
  background: #15121d;
}
[data-theme="dark"] #objetivo .card {
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: linear-gradient(
    180deg,
    rgba(34, 27, 44, 0.78),
    rgba(28, 23, 36, 0.78)
  ) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
[data-theme="dark"] #objetivo .card:hover,
[data-theme="dark"] #objetivo .card:focus-within {
  border-color: rgba(255, 209, 230, 0.18) !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
[data-theme="dark"] #objetivo h5 {
  color: #f5f3fb !important;
}
[data-theme="dark"] #objetivo .card p {
  color: #cfcbe0 !important;
}
[data-theme="dark"] #objetivo .feature-emoji {
  text-shadow: none;
}
/* Más contraste (sin hovers “lift” visibles) */
[data-theme="dark"] #objetivo {
  background: #0f1220 !important;
}
[data-theme="dark"] #objetivo .card {
  background: #1a2030 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 18px !important;
}
[data-theme="dark"] #objetivo .card h5 {
  color: #e8ecff !important;
}
[data-theme="dark"] #objetivo .card p {
  color: #adb6d2 !important;
}
#objetivo .card,
#objetivo .card:hover,
#objetivo .card:focus,
#objetivo .card:focus-within {
  transform: none !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}
#objetivo {
  padding-block: clamp(48px, 8vw, 84px);
}

.benefit-card,
.testimonial-card,
.process-card,
.package-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 10, 28, 0.08);
  box-shadow: 0 12px 30px rgba(20, 10, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-radius: var(--amor-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit-card:hover,
.testimonial-card:hover,
.process-card:hover,
.package-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(20, 10, 28, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.benefit-card h6,
.process-card h6,
.package-card h6 {
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.testimonial-card p {
  margin-bottom: 0.3rem;
  color: var(--amor-ink-soft);
}
.package-card .text-muted {
  font-size: 0.95rem;
}

#confianza .testimonial-card {
  min-height: 160px;
}

#como-funciona .process-card {
  min-height: 150px;
}

[data-theme="dark"] .benefit-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .process-card,
[data-theme="dark"] .package-card {
  background: rgba(14, 10, 25, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .testimonial-card p,
[data-theme="dark"] .testimonial-card small,
[data-theme="dark"] .process-card p,
[data-theme="dark"] .benefit-card p,
[data-theme="dark"] .package-card p {
  color: #e8e8f0 !important;
}

[data-theme="dark"] .testimonial-card .text-muted,
[data-theme="dark"] .process-card .text-muted {
  color: #d8d8e6 !important;
}

/* ---------- Word-mark con ícono antes del texto (párrafo del objetivo) ---------- */
.brand-mark {
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  position: relative;
  padding-left: 20px;
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 25px;
  height: 25px;
  transform: translateY(-50%);
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("../assets/brand/Ícono negro.png");
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}
[data-theme="dark"] .brand-mark::before {
  background-image: url("../assets/brand/icons/heart.png");
}

/* ---------- Bloque 3 · Ejemplos (grid 6) ---------- */
#ejemplos {
  padding-block: clamp(44px, 7vw, 72px);
}

/* fondo con patrón nítido en ambos modos */

/* Patrón general para todas las secciones excepto ejemplos */
.brand-watermark {
  position: relative;
  isolation: isolate;
}
.brand-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../assets/brand/pattern-horizontal.png");
  background-repeat: repeat;
  background-position: center;
  background-size: 300px auto;
  opacity: 0.03;
}

.brand-watermark .container {
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .brand-watermark::before {
  opacity: 0.025;
  filter: invert(1) brightness(1.2);
  background-size: 280px auto;
}

/* Tratamiento especial: bloques claros con patrón más visible y alto contraste */
#confianza.brand-watermark,
#antes-de-irte.brand-watermark {
  background-color: #fff7fb; /* claro con leve tinte de marca */
}

#confianza.brand-watermark::before,
#antes-de-irte.brand-watermark::before {
  opacity: 0.12; /* patrón más notorio que el resto */
  background-size: 260px auto;
  filter: none; /* mantener colores originales del patrón */
}

/* Mejorar contraste de texto en estos bloques (modo claro) */
#confianza h3,
#confianza p,
#confianza small,
#antes-de-irte h3,
#antes-de-irte p {
  color: #0f0d15 !important; /* negro suave para máximo contraste */
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

/* Mantenerlos claros también en modo oscuro */
[data-theme="dark"] #confianza.brand-watermark,
[data-theme="dark"] #antes-de-irte.brand-watermark {
  background-color: #f5f1f7; /* claro en dark mode para diferenciar del resto */
}

[data-theme="dark"] #confianza.brand-watermark::before,
[data-theme="dark"] #antes-de-irte.brand-watermark::before {
  opacity: 0.16; /* un poco más para compensar entorno oscuro */
  filter: none; /* no invertir para que quede claro */
}

[data-theme="dark"] #confianza h3,
[data-theme="dark"] #confianza p,
[data-theme="dark"] #confianza small,
[data-theme="dark"] #antes-de-irte h3,
[data-theme="dark"] #antes-de-irte p {
  color: #12101a !important; /* texto oscuro sobre fondo claro en dark */
}

/* Contraste dentro de tarjetas en #confianza (dark mode):
   prioriza colores claros dentro de .testimonial-card para vencer reglas del bloque */
[data-theme="dark"] #confianza .testimonial-card {
  background: rgba(18, 14, 26, 0.92);
}
[data-theme="dark"] #confianza .testimonial-card h6,
[data-theme="dark"] #confianza .testimonial-card p,
[data-theme="dark"] #confianza .testimonial-card small {
  color: #f1f2f7 !important;
  text-shadow: none;
}

/* Mayor contraste para secciones confianza y antes-de-irte */
/* Eliminado bloque previo que forzaba fondo oscuro/texto claro en estas secciones
   para mantener la decisión de fondo claro + texto oscuro también en dark mode. */

/* Patrón específico para sección ejemplos (más visible) */
#ejemplos.brand-watermark-ex {
  position: relative;
  isolation: isolate;
  background-color: #ffffff;
}
#ejemplos.brand-watermark-ex::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../assets/brand/pattern-horizontal.png");
  background-repeat: repeat;
  background-position: center;
  background-size: 280px auto;
  opacity: 0.5;
  filter: contrast(1.15) saturate(1.05);
}
[data-theme="dark"] #ejemplos.brand-watermark-ex {
  background-color: #0f1220;
}
[data-theme="dark"] #ejemplos.brand-watermark-ex::before {
  opacity: 0.4;
  filter: invert(1) contrast(1.15) saturate(1.1);
  background-size: 220px auto;
}

/* Cards de ejemplos (look captura) */
.ex-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px 10px 16px 16px !important;
  border: 1px solid rgba(20, 10, 28, 0.06);
  background: #0f1625;
  color: #e9eeff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 320ms ease, border-color 280ms ease;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .ex-card:hover,
  .ex-card:focus-within {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px rgba(224, 76, 134, 0.28),
      0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(224, 76, 134, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-card:hover,
  .ex-card:focus-within {
    box-shadow: 0 20px 40px rgba(224, 76, 134, 0.25);
    border-color: rgba(224, 76, 134, 0.3);
  }
}

.ex-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ex-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: saturate(0.95) contrast(0.95);
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.55)
  );
  padding: 1rem 0;
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 320ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .ex-card:hover .ex-cover img,
  .ex-card:focus-within .ex-cover img {
    transform: scale(1.08);
    filter: saturate(1.05) contrast(1.05) brightness(1.05);
  }
}

.ex-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--amor-primary),
    var(--amor-primary-ink)
  );
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(224, 76, 134, 0.4);
  opacity: 0;
  transform: scale(0.8) translateY(-4px);
  transition: opacity 280ms ease,
    transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .ex-card:hover .ex-badge,
  .ex-card:focus-within .ex-badge {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-badge {
    opacity: 0.85;
    transform: none;
  }
}

.ex-body {
  padding: 14px 14px 16px;
}
.ex-title {
  margin: 0 0 6px;
  font: 700 18px/1.25 var(--amor-heading);
  color: #f4f7ff;
}
.ex-text {
  margin: 0 0 10px;
  color: #c7cfe6;
}

.ex-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.chip {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f4f7ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ex-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ex-actions .ex-btn {
  flex: 1 1 140px;
  text-align: center;
  display: block;
}
.ex-btn.ex-cta-similar {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}
.ex-btn.ex-cta-similar:hover {
  color: var(--amor-primary);
  border-color: rgba(255, 255, 255, 0.85);
}
.ex-btn {
  display: inline-block;
  font: 600 12px/1 var(--amor-body);
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background: var(--amor-primary);
  box-shadow: 0 6px 16px rgba(224, 76, 134, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

/* Testimonial carousel preview */
.testimonial-preview {
  position: relative;
}

.preview-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.preview-carousel .carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
  pointer-events: none;
}

.preview-carousel .carousel-img.active {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .testimonial-card:hover .carousel-img {
    transform: scale(1.03);
  }
}

/* Carousel image cursor */
.preview-carousel .carousel-img {
  cursor: zoom-in;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lightboxFadeIn 200ms ease;
}

.lightbox-overlay.active {
  display: flex;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: lightboxZoomIn 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--amor-text);
  transition: all 200ms ease;
  z-index: 10000;
}

.lightbox-close:hover {
  background: white;
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay,
  .lightbox-image {
    animation: none;
  }
}

/* Carousel navigation controls */
.carousel-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  transition: opacity 300ms ease;
}

.preview-carousel:hover .carousel-controls {
  opacity: 1;
}

.carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--amor-primary-ink);
}

/* Carousel indicators (dots) */
.carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 9;
  opacity: 0.7;
  transition: opacity 300ms ease;
}

.preview-carousel:hover .carousel-indicators {
  opacity: 1;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  padding: 0;
}

.carousel-indicator.active {
  background: rgba(255, 255, 255, 0.95);
  width: 24px;
  border-radius: 4px;
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.testimonial-live-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--amor-secondary);
  text-decoration: none;
}
.testimonial-live-link:hover {
  text-decoration: underline;
}

/* Mobile/Tablet layout: preview first and full width */
@media (max-width: 768px) {
  .testimonial-card {
    display: flex;
    flex-direction: column;
  }
  .testimonial-card .testimonial-preview {
    order: -1;
    margin-bottom: 8px;
  }
  .testimonial-preview .preview-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* Exit intent */
.exit-intent {
  background: linear-gradient(
    180deg,
    rgba(224, 76, 134, 0.06),
    rgba(107, 124, 255, 0.06)
  );
}
.exit-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 320px;
}
.exit-gallery img {
  width: 100%;
  height: 100%;
  max-height: 156px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: transform 280ms ease;
}
@media (prefers-reduced-motion: no-preference) {
  .exit-gallery img:hover {
    transform: scale(1.02);
  }
}
[data-theme="dark"] .exit-intent {
  background: linear-gradient(
    180deg,
    rgba(224, 76, 134, 0.08),
    rgba(107, 124, 255, 0.08)
  );
}

/* — Recibida · Momentos inolvidables (compact) — */
#recibidaCarousel {
  max-width: min(980px, 100%);
  margin-inline: auto;
  margin-block: 12px 16px;
}
#recibidaCarousel .carousel-inner {
  aspect-ratio: 16 / 9;
  max-height: 420px;
}
#recibidaCarousel .carousel-item,
#recibidaCarousel .carousel-item img {
  height: 100%;
}
#recibidaCarousel .carousel-item img {
  object-fit: cover;
}

/* Controles/indicadores más sutiles */
#recibidaCarousel .carousel-indicators {
  bottom: 8px;
}
#recibidaCarousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
}
#recibidaCarousel .carousel-control-prev-icon,
#recibidaCarousel .carousel-control-next-icon {
  transform: scale(0.85);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* Caption más chico y sobrio */
#recibidaCarousel .carousel-caption {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
}
#recibidaCarousel .carousel-caption h5 {
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  margin-bottom: 0.25rem;
}
#recibidaCarousel .carousel-caption p {
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  margin: 0;
}

/* Breakpoints: bajar altura en tablet/móvil */
@media (max-width: 991.98px) {
  #recibidaCarousel .carousel-inner {
    max-height: 360px;
  }
}
@media (max-width: 576px) {
  #recibidaCarousel .carousel-inner {
    max-height: 240px;
  }
}

/* ---------- Bloque 4 · Contacto + Footer ---------- */
.contact-section {
  background: var(--amor-bg);
  position: relative;
}

.contact-section .form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contact-section .form-stack .form-control,
.contact-section .form-stack textarea {
  min-height: 48px;
}
.contact-section .form-label {
  font-size: 0.95rem;
}
.contact-channels {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.channel-option {
  flex: 1;
  min-width: 180px;
}
.btn-outline-amor {
  border-color: var(--amor-primary);
  color: var(--amor-primary);
  border-radius: var(--amor-radius);
  padding: clamp(10px, 2.5vh, 14px) 24px;
  background: transparent;
  box-shadow: 0 4px 12px rgba(224, 76, 134, 0.15);
}
.btn-outline-amor:hover {
  background: var(--amor-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(224, 76, 134, 0.3);
}
/* Tamaño grande consistente con .btn-amor */
.btn-outline-amor.btn-lg {
  font-size: 1.1rem;
  padding: 0.8rem 1.8rem;
}
/* Enfoque accesible */
.btn-outline-amor:focus-visible {
  outline: var(--amor-focus);
}
.occasion-buttons button {
  border-color: rgba(28, 15, 46, 0.4);
  color: #1d1640;
  transition: background 0.2s ease, color 0.2s ease;
}
.occasion-buttons button.active,
.occasion-buttons button.active:hover {
  background: rgba(224, 76, 134, 0.12);
  color: var(--amor-primary);
  border-color: var(--amor-primary);
}

.carousel-caption {
  background: rgba(13, 11, 28, 0.75);
  backdrop-filter: blur(8px);
  padding: 1rem;
  border-radius: 14px;
}
.carousel-caption h5,
.carousel-caption p {
  color: #fff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}
.occasion-card {
  background: #fff;
  border: 1px solid rgba(20, 10, 28, 0.08);
  border-radius: 18px;
}
.occasion-card h5,
.occasion-card p {
  color: #1c122b;
}

[data-theme="dark"] .occasion-card {
  background: linear-gradient(
    160deg,
    rgba(24, 17, 44, 0.95),
    rgba(14, 8, 33, 0.95)
  );
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8f6ff;
}
[data-theme="dark"] .occasion-card h5,
[data-theme="dark"] .occasion-card p {
  color: #f8f6ff;
}
[data-theme="dark"] .occasion-card ul li {
  color: #d4cde4;
}
[data-theme="dark"] .occasion-card .btn-outline-amor {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
[data-theme="dark"] .occasion-card .btn-outline-amor:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
[data-theme="dark"] .occasion-buttons button {
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .occasion-buttons button.active,
[data-theme="dark"] .occasion-buttons button.active:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ff8edb;
  border-color: #ff8edb;
}
.occasion-card .list-unstyled li {
  color: #2a2a2a;
}

.tarjeta-preview {
  max-width: 420px;
}
.tarjeta-frame {
  border: 2px solid rgba(224, 76, 134, 0.3);
  background: #fff;
  padding: 0.5rem;
}
.tarjeta-preview h4 {
  color: #d65a7a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-theme="dark"] .occasion-card {
  background: #16132a;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8f6ff;
}
[data-theme="dark"] .occasion-card ul li {
  color: #c8c3e2;
}
[data-theme="dark"] .occasion-card .btn-outline-amor {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
[data-theme="dark"] .occasion-card .btn-outline-amor:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
/* Bullets */
.contact-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--amor-ink-soft);
}
.contact-bullets .ico {
  font-size: 18px;
  opacity: 0.9;
}

/* Logo centrado debajo de los bullets */
.contact-brand {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}
.contact-brand img {
  width: clamp(180px, 40vw, 240px);
  height: auto;
  display: block;
  margin-inline: 0;
  filter: drop-shadow(0 1.5px 2.5px rgba(0, 0, 0, 0.28));
}

/* Card del formulario */
.contact-card {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(16, 0, 36, 0.08), 0 2px 8px rgba(16, 0, 36, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Inputs */
.contact-card .form-control,
.contact-card .form-select {
  background: #f7f8fb;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1e1e2a;
  padding: 10px 12px;
  border-radius: 10px;
}
.contact-card .form-control:focus,
.contact-card .form-select:focus {
  border-color: #c99bf5;
  box-shadow: 0 0 0 3px rgba(201, 155, 245, 0.25);
  outline: none;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.channel-option {
  flex: 1 1 150px;
  min-width: 140px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f9f6ff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.channel-option div {
  display: flex;
  flex-direction: column;
}
.channel-option input {
  margin: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--amor-primary);
}
.channel-option strong {
  font-size: 0.95rem;
}
.contact-channels .channel-option:hover {
  border-color: var(--amor-primary);
}
.channel-option input:focus-visible + div {
  outline: 2px solid rgba(224, 76, 134, 0.3);
  outline-offset: 2px;
}
.channel-option input:checked + div {
  border-color: var(--amor-primary);
  background: rgba(224, 76, 134, 0.12);
}

.faq-grid {
  display: grid;
  gap: 0.8rem;
}
.faq-item {
  border: 1px solid rgba(20, 10, 28, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fff;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item p {
  margin: 0.5rem 0 0;
  color: var(--amor-ink-soft);
}
.legal-links a {
  color: #2d1b3d;
  text-decoration: none;
  font-weight: 600;
}
.legal-links a:hover {
  color: #e04c86;
}

/* Mantener enlaces legales en modo claro siempre */
[data-theme="dark"] .legal-links a {
  color: #2d1b3d;
}
[data-theme="dark"] .legal-links a:hover {
  color: #e04c86;
}

/* Botón degradé */
.btn-gradient {
  --from: #a86af7;
  --to: #ff77a8;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--from), var(--to));
  box-shadow: 0 10px 26px rgba(168, 106, 247, 0.25);
  transition: transform 0.08s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(168, 106, 247, 0.32);
}
.btn-gradient:active {
  transform: translateY(0);
}

/* Dark del bloque 4 */
[data-theme="dark"] .contact-section {
  background: #0f1220;
}
[data-theme="dark"] .contact-bullets li {
  color: #cfcfe3;
}
[data-theme="dark"] .contact-card {
  background: #0f1623;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .contact-card .form-control,
[data-theme="dark"] .contact-card .form-select {
  background: #121b2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f4f7;
}
[data-theme="dark"] .contact-card .form-control::placeholder,
[data-theme="dark"] .contact-card .form-select:invalid {
  color: #aab0c0;
}
[data-theme="dark"] .btn-gradient {
  --from: #8c5cf1;
  --to: #ff6aa2;
  box-shadow: 0 12px 28px rgba(140, 92, 241, 0.28);
}

[data-theme="dark"] .hero-media-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6);
}

/* Date input icono visible en oscuro */
[data-theme="dark"]
  .contact-card
  input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.85);
}
[data-theme="dark"] .contact-card input[type="date"] {
  color-scheme: dark;
}

/* Responsive del form */
@media (max-width: 576px) {
  .contact-card {
    padding: 16px;
  }
}

/* Centrado hasta tablets/medianos; izquierda en desktop (≥992px) */
@media (max-width: 991.98px) {
  footer#contacto h2 {
    text-align: center;
  }
  footer#contacto .lead {
    text-align: center;
    max-width: 48ch;
    margin-inline: auto;
  }
  /* Bullets centrados como bloque, texto alineado a la izquierda */
  footer#contacto .contact-bullets {
    max-width: 48ch;
    margin-inline: auto;
    margin-bottom: 12px;
  }
  footer#contacto .contact-bullets li {
    margin: 12px 0;
  }
  .contact-brand {
    justify-content: center;
    margin-top: 20px;
  }
  .contact-brand img {
    margin-inline: auto;
  }
}

/* =========================================================
   🔧 FIX FINAL — Patrón en Bloque 4 (solo modo claro)
   (El atributo data-theme vive en <html>, no en <body>)
   ========================================================= */
html[data-theme="light"] footer#contacto.contact-section {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.94)
    ),
    url("../assets/brand/pattern-horizontal.png") center / 240px auto repeat,
    #ffffff !important;
}

/* contraste nítido en el panel/campos (claro) */
html[data-theme="light"] footer#contacto.contact-section .contact-card,
html[data-theme="light"] footer#contacto.contact-section .form-control,
html[data-theme="light"] footer#contacto.contact-section .form-select {
  background-color: #fff !important;
}

/* (Opcional) Si quisieras también patrón suave en oscuro del bloque 4 */
/* html[data-theme="dark"] footer#contacto.contact-section {
  background:
    linear-gradient(180deg, rgba(18,16,29,.88), rgba(18,16,29,.9)),
    url("../assets/brand/pattern-horizontal.png") center / 240px auto repeat !important;
  background-blend-mode: normal, lighten !important;
} */

/* ==========================================
   BARRA FLOTANTE DE REDES SOCIALES
   ========================================== */

.social-floating {
  position: fixed;
  display: flex !important;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1040 !important;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* MOBILE: Siempre visible, posición a la IZQUIERDA para no chocar con CTA */
@media (max-width: 767.98px) {
  .social-floating {
    bottom: 1rem !important; /* Más abajo, lejos del CTA */
    left: 0.75rem !important; /* IZQUIERDA en lugar de derecha */
    right: auto !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .social-float-item {
    width: 50px !important;
    height: 50px !important;
  }
}

/* DESKTOP: A la derecha, oculto inicialmente */
@media (min-width: 768px) {
  .social-floating {
    bottom: 2rem;
    right: 1.5rem;
    left: auto;
    opacity: 0;
    transform: translateX(120%);
    pointer-events: none;
  }

  .social-floating.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .social-float-item {
    width: 52px;
    height: 52px;
  }
}

.social-float-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-float-item:hover,
.social-float-item:active {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: white;
}

.social-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.social-instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
}

.social-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

/* ==========================================
   TOUR GUIADO
   ========================================== */

#tourModal .modal-content {
  background: var(--amor-bg);
  color: var(--amor-text);
}

#tourModal .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] #tourModal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#tourModal .modal-title {
  color: var(--amor-primary-ink);
  font-family: var(--amor-heading);
}

.tour-step {
  min-height: 300px;
  animation: fadeIn 0.3s ease-in-out;
  color: var(--amor-text);
}

.tour-step h4 {
  color: var(--amor-heading-color);
  font-family: var(--amor-heading);
}

.tour-step p {
  color: var(--amor-text);
  line-height: 1.6;
}

.tour-step .text-muted {
  color: var(--amor-text-muted) !important;
  opacity: 0.85;
}

.tour-step h6 {
  color: var(--amor-text);
  font-weight: 600;
}

.tour-step .card {
  background: var(--amor-card-bg);
  border-color: var(--amor-border-color);
  color: var(--amor-text);
}

.tour-step .border {
  border-color: var(--amor-border-color) !important;
}

.tour-step small {
  color: var(--amor-text);
}

.tour-step .alert {
  background: rgba(13, 110, 253, 0.1);
  border-color: rgba(13, 110, 253, 0.2);
  color: var(--amor-text);
}

[data-theme="dark"] .tour-step .alert {
  background: rgba(13, 110, 253, 0.15);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#tour-prev-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero-media-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

#tour-progress-bar {
  transition: width 0.3s ease;
}

/* ==========================================
   MODALES DE BOOTSTRAP - MODO OSCURO
   ========================================== */

.modal-content {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .modal-content {
  background-color: rgba(26, 28, 35, 0.95);
  color: var(--amor-text);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .modal-footer {
  border-top-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .modal-body ul li {
  color: #e8e9ed;
}

[data-theme="dark"] .modal-title {
  color: #ffffff;
}

[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ==========================================
   LIGHTBOX PARA IMÁGENES DE TESTIMONIOS
   ========================================== */

.carousel-img {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.carousel-img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.image-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.image-lightbox.active {
  display: flex;
}

.image-lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  backdrop-filter: blur(10px);
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
