/* Estilos comunes para todas las webs de nicho - extraídos de index.php */
:root {
  scroll-behavior: smooth;
  --bg-white: #ffffff;
  --bg-gray-50: #f9fafb;
  --bg-primary-tint: #f5fcfd;
}
.bg-white { background-color: var(--bg-white); }
.bg-gray-50 { background-color: var(--bg-gray-50); }
.bg-primary-tint { background-color: var(--bg-primary-tint); }
.section-bg-consultoria {
  background: linear-gradient(90deg, rgba(var(--primary-rgb, 0, 189, 203), 0.10) 0%, rgba(var(--primary-rgb, 0, 189, 203), 0.05) 100%);
}
.section-bg-editar-web {
  background: linear-gradient(90deg, rgba(var(--primary-rgb, 0, 189, 203), 0.05) 0%, rgba(var(--primary-rgb, 0, 189, 203), 0.10) 100%);
}
.gradient-hero { background: linear-gradient(135deg, var(--hero-bg, #f0fdfe) 0%, var(--primary-light, #e0f7fa) 100%); }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--primary, #00bdcb); color: white; font-weight: 700;
  padding: 0.875rem 2rem; border-radius: 0.5rem; font-size: 1.125rem;
  cursor: pointer; border: none; transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn-cta:hover { background-color: var(--primary-dark, #009aad); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background-color: transparent; color: var(--primary, #00bdcb); font-weight: 700;
  padding: 0.875rem 2rem; border-radius: 0.5rem; font-size: 1.125rem;
  cursor: pointer; border: 2px solid var(--primary, #00bdcb); transition: background 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background-color: var(--primary-light, #e0f7fa); }
/* Hero móvil: enlace "Ver Precios" solo texto (no botón) */
.hero-ver-precios {
  color: var(--primary, #00bdcb);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.hero-ver-precios:hover { color: var(--primary-dark, #009aad); text-decoration: underline; }
.card { background: white; border-radius: 0.75rem; border: 1px solid #e5e7eb; box-shadow: 0 1px 6px rgba(0,0,0,0.07); }
.feature-card { background: white; padding: 2rem; border-radius: 0.75rem; border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,0.05); transition: all 0.3s; }
.feature-card:hover { border-color: rgba(var(--primary-rgb, 0, 189, 203), 0.3); box-shadow: 0 4px 16px rgba(var(--primary-rgb, 0, 189, 203), 0.12); background-color: rgba(var(--primary-rgb, 0, 189, 203), 0.03); }

/* Features: carrusel horizontal en móvil (1 tarjeta + asomo de la siguiente) */
@media (max-width: 767px) {
  .features-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    scroll-padding-inline: 1rem;
  }
  .features-grid::-webkit-scrollbar {
    display: none;
  }
  .features-grid > .feature-card {
    flex: 0 0 78%;
    width: 78%;
    max-width: 78%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .features-grid::after {
    content: '';
    flex: 0 0 0.25rem;
  }
}

@media (min-width: 768px) {
  .features-grid.features-more-collapsed .feature-card--more {
    display: none;
  }
}
.check-icon { color: #22c55e; flex-shrink: 0; }
.excluded-icon { color: #dc2626; flex-shrink: 0; }
.primary-icon { color: var(--primary, #00bdcb); flex-shrink: 0; }
/* Plan Profesional destacado (paleta primary) */
.plan-profesional { background: var(--hero-bg, #f0fdfe); border: 2px solid var(--primary, #00bdcb); box-shadow: 0 4px 20px rgba(var(--primary-rgb, 0, 189, 203), 0.2); }
.plan-profesional .check-icon { color: var(--primary, #00bdcb); }
.plan-profesional .tooltip-icon { border-color: var(--primary, #00bdcb); color: var(--primary, #00bdcb); }
/* Submenú precios (móvil): pestañas tipo Publicidad | Diseño Web */
.precios-subnav-link {
  position: relative;
  padding-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}
.precios-subnav-link:hover { color: #374151; }
.precios-subnav-link-active,
.precios-subnav-link-active:hover {
  color: var(--primary, #00bdcb);
}
.precios-subnav-link-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: var(--primary, #00bdcb);
  border-radius: 1px;
}
#plan-inferior,
#plan-medio,
#plan-superior { scroll-margin-top: 6rem; }
/* Precios: tarjetas de plan */
#precios .plan-card {
  overflow: visible;
}
#precios .plan-price-original {
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: line-through;
  color: #9ca3af;
}
#precios .plan-offer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.75rem;
  padding: 0.25rem;
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: 9999px;
  background: rgba(22, 163, 74, 0.12);
  font-size: 0.9375rem;
  line-height: 1.25;
  color: #16a34a;
}
#precios .plan-offer-pill-label {
  display: inline-flex;
  align-items: center;
  background: #16a34a;
  color: #fff;
  border: 1px solid #15803d;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
#precios .plan-offer-pill-text {
  margin: 0;
  padding-right: 0.75rem;
  font-weight: 500;
  color: #15803d;
}
#precios .plan-web-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6b7280;
  text-decoration: none;
}
#precios .plan-web-link:hover {
  color: #4b5563;
  text-decoration: underline;
}
#precios .plan-web-link svg {
  color: #9ca3af;
  flex-shrink: 0;
}
#precios .plan-feature-check {
  color: var(--primary, #00bdcb);
  flex-shrink: 0;
}
#precios .check-icon {
  color: var(--primary, #00bdcb);
}
#precios .excluded-icon {
  color: #9ca3af;
}
#precios .plan-addon-btn--active {
  background-color: var(--primary, #00bdcb) !important;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0 !important;
  gap: 0 !important;
}

/* Badge "Más Popular" en tarjetas de precio (ads + web) */
.plan-popular-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary, #00bdcb);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  z-index: 10;
  white-space: nowrap;
}

/* Marquee ejemplos: hilera infinita (2 copias, animación 0 → -50%, sin scroll) */
.marquee-inner { animation: marqueeLoop linear infinite; display: flex; width: max-content; }
.marquee-set { display: flex; flex-shrink: 0; width: max-content; }
@keyframes marqueeLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-wrap:hover .marquee-inner { animation-play-state: paused; }
.marquee-wrap.marquee-paused .marquee-inner { animation-play-state: paused; }
.marquee-wrap.marquee-user-control .marquee-inner { animation: none !important; }
.marquee-card { border: 4px solid #e5e7eb; border-radius: 1rem; overflow: hidden; transition: border-color 0.3s; }
.marquee-card:hover { border-color: var(--primary, #00bdcb); }
.marquee-card-inner { transition: transform 0.3s ease; transform-origin: center; }
.marquee-card.group:hover .marquee-card-inner { transform: scale(1.05); }
.marquee-arrow { transition: background-color 0.2s, color 0.2s; }
.marquee-arrow:hover { background-color: var(--primary-light, #e0f7fa); }
.marquee-arrow:hover svg { color: var(--primary, #00bdcb); }
.marquee-ver-diseno { display: inline-flex; align-items: center; justify-content: center; background: #ffffff; color: #344256; font-weight: 600; padding: 0.5rem 1.25rem; border-radius: 9999px; border: 2px solid rgba(255,255,255,0.9); box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-size: 0.9375rem; }

/* Ejemplos: móvil = 1 imagen estrecha (355×593) + flechas por fuera */
@media (max-width: 767px) {
  #ejemplos .marquee-viewport .marquee-inner { animation: none !important; transition: transform 0.3s ease; }
  #ejemplos .marquee-viewport .marquee-set:nth-child(2) { display: none; }
  #ejemplos .marquee-wrap .marquee-set { width: max-content; }
  /* Viewport estrecho centrado; flechas en los laterales, sin montarse */
  #ejemplos .marquee-wrap {
    padding-left: 4rem;
    padding-right: 4rem;
    justify-content: center;
  }
  #ejemplos .marquee-viewport {
    flex: 0 0 auto;
    width: 355px;
    max-width: calc(100% - 1rem);
    margin: 0;
    min-height: 0;
  }
  /* Tarjeta con relación de aspecto 355×593; el ancho lo asigna JS = viewport (estrecho) */
  #ejemplos .marquee-wrap .marquee-card-item {
    height: auto;
    min-height: 0;
    aspect-ratio: 355 / 593;
    margin-left: 0;
    margin-right: 0;
  }
  #ejemplos .marquee-wrap .marquee-card-item .marquee-card-inner,
  #ejemplos .marquee-wrap .marquee-card-item img {
    height: 100%;
    object-fit: cover;
  }
}

/* Ejemplos: tablet y desktop — espacio para flechas fuera solo en pantallas grandes */
@media (min-width: 1272px) {
  #ejemplos .marquee-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* 1024–1271px: flechas dentro (como tablet) para que se vean bien y no se monten */
@media (min-width: 1024px) and (max-width: 1271px) {
  #ejemplos .marquee-wrap .marquee-arrow-prev {
    left: 0.75rem;
    right: auto;
  }
  #ejemplos .marquee-wrap .marquee-arrow-next {
    left: auto;
    right: 0.75rem;
  }
  #ejemplos .marquee-wrap {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* Ejemplos: tablet = 2 imágenes visibles + animación horizontal + flechas visibles */
@media (min-width: 768px) and (max-width: 1023px) {
  #ejemplos .marquee-card-item {
    width: calc(50vw - 2rem) !important;
    min-width: 260px;
    max-width: 380px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  /* Flechas dentro del área, visibles y sin montarse (tablet) */
  #ejemplos .marquee-wrap .marquee-arrow-prev {
    left: 0.75rem;
    right: auto;
  }
  #ejemplos .marquee-wrap .marquee-arrow-next {
    left: auto;
    right: 0.75rem;
  }
  #ejemplos .marquee-wrap {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer.open { max-height: 500px; }
.faq-toggle h3 { transition: color 0.2s ease; }
.faq-toggle:hover h3 { color: var(--primary, #00bdcb); }
.faq-toggle .font-semibold.text-gray-900 { transition: color 0.2s ease; }
.faq-toggle:hover .font-semibold.text-gray-900 { color: var(--primary, #00bdcb); }
/* Panel features (igual que web.tsx: transiciones y hover) */
.panel-tab { transition: all 0.3s ease; }
.panel-tab:not(.active):hover { background-color: rgba(0,0,0,0.02); }
.panel-tab .tab-icon,
.panel-tab .tab-label { transition: color 0.3s ease; }
/* No seleccionado: mismo color que los h2 de la web */
.panel-tab:not(.active) .tab-icon,
.panel-tab:not(.active) .tab-label { color: #344256; }
.panel-tab:not(.active):hover .tab-icon,
.panel-tab:not(.active):hover .tab-label { color: #344256; }
/* Seleccionado: título e icono en primary */
.panel-tab.active .tab-icon,
.panel-tab.active .tab-label { color: var(--primary, #00bdcb); }
.panel-feature-desc { max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.5s ease-in-out; }
.panel-feature-desc.open { max-height: 10rem; opacity: 1; margin-top: 0.75rem; }
/* Animations panel: fade-in + zoom-in al cambiar (como animate-in fade-in zoom-in-95 duration-500) */
.anim-panel { position: absolute; inset: 0; opacity: 0; transform: scale(0.95); pointer-events: none; transition: opacity 0.5s ease-out, transform 0.5s ease-out; display: flex; }
.anim-panel.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.anim-cursor { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 50; transition: left 0.5s ease-in-out, top 0.5s ease-in-out, transform 0.3s ease-out; }
.anim-cursor.is-clicking { transform: translate(-50%, -50%) scale(0.8); }
.anim-cursor svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
/* WhatsApp button (estilo React: slide-up + scale-pulse) */
@keyframes scale-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes slide-up {
  0% { transform: translateY(100px) scale(0.8); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.animate-scale-pulse { animation: scale-pulse 0.8s ease-in-out infinite; }
.animate-slide-up { animation: slide-up 0.6s ease-out forwards; }

/* Precios: precio flotante al añadir extra opcional */
#precios li {
  overflow: visible;
}

#precios .plan-feature-label-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#precios .plan-addon-price-float {
  position: absolute;
  left: calc(100% + 0.5rem);
  bottom: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary, #00bdcb);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  animation: plan-addon-price-float-up 2.5s ease-out forwards;
  will-change: transform, opacity;
}

#precios .plan-addon-price-float--down {
  color: #6b7280;
  animation: plan-addon-price-float-down 2.5s ease-out forwards;
}

@keyframes plan-addon-price-float-up {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  60% {
    opacity: 1;
    transform: translateY(-22px);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}

@keyframes plan-addon-price-float-down {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  60% {
    opacity: 1;
    transform: translateY(22px);
  }
  100% {
    opacity: 0;
    transform: translateY(40px);
  }
}

#whatsapp-btn.whatsapp-init { opacity: 0; transform: translateY(100px) scale(0.8); pointer-events: none; }
/* Header: sin altura fija, más alto como en React (container 1400px) */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: white; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; min-height: 70px; }
/* Títulos h2/h3: mismo color que --foreground en React */
h2, h3 { color: #344256; }
/* Process step connector: desde el borde derecho del círculo hasta el borde izquierdo del siguiente */
.step-connector { position: absolute; left: calc(50% + 48px); top: 48px; width: calc(150% - 48px); height: 0; border-top: 2px dashed rgba(var(--primary-rgb, 0, 189, 203), 0.3); }
/* Cal embed placeholder */
#cal-embed { width: 100%; min-height: 400px; }
/* Tooltip */
.tooltip-wrap { position: relative; display: inline-flex; align-items: center; }
.tooltip-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1.5px solid var(--primary, #00bdcb); color: var(--primary, #00bdcb); font-size: 0.7rem; font-weight: bold; cursor: pointer; margin-left: 0.35rem; }
.tooltip-box { display: none; position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%); background: #1e293b; color: white; font-size: 0.75rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; width: 220px; z-index: 50; line-height: 1.4; }
.tooltip-wrap:hover .tooltip-box, .tooltip-wrap:focus-within .tooltip-box { display: block; }
@media (max-width: 768px) {
  /* marquee: mismo estilo en móvil */
}

/* Overlay diseño: superpuesto con iframe y X roja para cerrar */
.diseno-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.diseno-overlay[hidden] { display: none !important; }
.diseno-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.diseno-overlay-content {
  position: relative;
  width: 100%;
  max-width: 93%;
  height: 100%;
  max-height: 90vh;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 1;
}
.diseno-overlay-close {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: #dc2626;
  border: 2px solid white;
  color: white;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.diseno-overlay-close:hover {
  background: #b91c1c;
  transform: translateX(-50%) scale(1.05);
}

.diseno-overlay-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary, #00bdcb);
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.diseno-overlay-arrow:hover {
  background: var(--primary-light, #e0f7fa);
  color: var(--primary, #00bdcb);
  transform: translateY(-50%) scale(1.05);
}
.diseno-overlay-arrow-prev { left: 1rem; }
.diseno-overlay-arrow-next { right: 1rem; }
.diseno-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
/* Ocultar botón WhatsApp mientras se ve el ejemplo en el overlay */
body.diseno-overlay-open #whatsapp-btn {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.2s, opacity 0.2s;
}

