/* ============================================================
   Carta Digital — estilos específicos del producto
   Paleta cálida: rojo como acento principal
   Complementa ../../assets/css/style.css
============================================================ */

/* ── HERO ───────────────────────────────────────────────── */
.pd-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #FEF2F2 0%, var(--blanco) 50%, #FEE2E2 100%);
}

.pd-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pd-hero-bg .shape-1 {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.pd-hero-bg .shape-2 {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.pd-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.pd-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.pd-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--texto);
  margin-bottom: 20px;
}

.pd-hero-title .highlight {
  color: #DC2626;
  position: relative;
}

.pd-hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--azul);
  border-radius: 2px;
  opacity: 0.25;
}

.pd-hero-sub {
  font-size: 1.1rem;
  color: var(--texto-suave);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.7;
}

.pd-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pd-hero-btns .btn-primary {
  background: #DC2626;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
}

.pd-hero-btns .btn-primary:hover {
  background: #B91C1C;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

/* ── MOCKUP MÓVIL ───────────────────────────────────────── */
.pd-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
}

.pd-phone {
  position: relative;
  z-index: 2;
  width: 260px;
  background: var(--blanco);
  border-radius: 32px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(239, 68, 68, 0.1),
    0 32px 80px rgba(239, 68, 68, 0.14);
  overflow: hidden;
  border: 5px solid #292524;
}

.pd-phone-bar {
  background: #292524;
  padding: 6px 12px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.pd-phone-bar span {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
}

.pd-phone-screen {
  padding: 16px;
}

.pd-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pd-menu-logo {
  width: 28px;
  height: 28px;
  background: #DC2626;
  border-radius: 8px;
}

.pd-menu-title-bar {
  height: 10px;
  width: 80px;
  background: var(--texto);
  border-radius: 4px;
}

.pd-menu-section {
  margin-bottom: 14px;
}

.pd-menu-cat {
  height: 7px;
  width: 60px;
  background: #DC2626;
  border-radius: 3px;
  margin-bottom: 10px;
}

.pd-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #FEE2E2;
}

.pd-menu-item--disabled {
  opacity: 0.4;
}

.pd-menu-item-text {
  flex: 1;
}

.pd-menu-line {
  height: 6px;
  border-radius: 3px;
  margin-bottom: 5px;
}

.pd-menu-line.w80 { width: 80%; background: #d6d3d1; }
.pd-menu-line.w75 { width: 75%; background: #d6d3d1; }
.pd-menu-line.w70 { width: 70%; background: #d6d3d1; }
.pd-menu-line.w60 { width: 60%; background: #e7e5e4; }
.pd-menu-line.w55 { width: 55%; background: #e7e5e4; }
.pd-menu-line.w50 { width: 50%; background: #e7e5e4; }
.pd-menu-line.w45 { width: 45%; background: #e7e5e4; }
.pd-menu-line.w40 { width: 40%; background: #e7e5e4; }

.pd-menu-price {
  width: 28px;
  height: 6px;
  background: #a8a29e;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 5px;
}

.pd-menu-badge {
  font-size: 0.55rem;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 2px 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pd-allergen-bar {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid #FEE2E2;
}

.pd-allergen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--borde);
}

.pd-allergen-dot:nth-child(1) { background: #f87171; }
.pd-allergen-dot:nth-child(2) { background: #34d399; }
.pd-allergen-dot:nth-child(3) { background: #fbbf24; }
.pd-allergen-dot:nth-child(4) { background: #60a5fa; }

/* Tarjetas flotantes */
.pd-hero-float {
  position: absolute;
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid #FEE2E2;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 4;
}

.pd-hero-float span:first-child {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.pd-float-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--texto);
  white-space: nowrap;
}

.pd-float-sub {
  font-size: 0.66rem;
  color: var(--texto-suave);
  white-space: nowrap;
  margin-top: 1px;
}

.pd-float-1 {
  top: 70px;
  right: -10px;
  animation: floatCard 3.6s ease-in-out infinite;
}

.pd-float-2 {
  bottom: 100px;
  right: 10px;
  animation: floatCard 4.2s ease-in-out infinite 0.9s;
}

.pd-float-3 {
  top: 180px;
  left: 0;
  animation: floatCard 3.9s ease-in-out infinite 1.6s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ── PRECIO ─────────────────────────────────────────────── */
.pd-precio {
  background: var(--blanco);
  padding: 2rem 0 0;
}

.pd-precio-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  border-radius: 16px;
  padding: 2rem 2.5rem;
}

.pd-precio-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pd-precio-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texto-suave);
}

.pd-precio-monto {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--texto);
  line-height: 1.1;
}

.pd-precio-monto span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--texto-suave);
}

.pd-precio-nota {
  font-size: 0.82rem;
  color: var(--texto-suave);
  margin-top: 0.25rem;
}

.pd-precio-inner .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.pd-precio-inner .btn-primary {
  background: #DC2626;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
}

.pd-precio-inner .btn-primary:hover {
  background: #B91C1C;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

/* ── BENEFICIOS ─────────────────────────────────────────── */
.pd-beneficios {
  background: var(--blanco);
}

.pd-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pd-benefit {
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.pd-benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.12);
  border-color: #EF4444;
}

.pd-benefit-icon {
  width: 48px;
  height: 48px;
  background: var(--blanco);
  border: 1.5px solid #FECACA;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DC2626;
  margin-bottom: 1.25rem;
}

.pd-benefit-icon--ambar {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
}

.pd-benefit-icon--rojo {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
}

.pd-benefit-icon--verde {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #16A34A;
}

.pd-benefit h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 0.5rem;
}

.pd-benefit p {
  font-size: 0.88rem;
  color: var(--texto-suave);
  line-height: 1.65;
}

/* ── CÓMO FUNCIONA ──────────────────────────────────────── */
.pd-como {
  background: #292524;
  color: var(--blanco);
}

.pd-como .section-label {
  color: #F87171;
}

.pd-como .section-title {
  color: var(--blanco);
}

.pd-como .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

.pd-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.pd-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem 1.6rem;
  flex: 1;
  max-width: 280px;
  transition: transform 0.2s, background 0.2s;
}

.pd-step:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.pd-step-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  color: #F87171;
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 1rem;
}

.pd-step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 0.6rem;
}

.pd-step p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

.pd-step-arrow {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.2);
  padding-top: 4rem;
  flex-shrink: 0;
  user-select: none;
}

/* ── PARA QUIÉN ES ──────────────────────────────────────── */
.pd-usuarios {
  background: linear-gradient(160deg, #DC2626 0%, #B91C1C 100%);
  color: var(--blanco);
}

.pd-usuarios .section-label {
  color: rgba(255, 255, 255, 0.7);
}

.pd-usuarios .section-title {
  color: var(--blanco);
}

.pd-usuarios-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.pd-usuarios-izq {
  position: sticky;
  top: 100px;
}

.pd-usuarios-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin-top: 1.5rem;
}

.pd-usuarios-der {
  display: flex;
  flex-direction: column;
}

.pd-user-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pd-user-card:first-child {
  padding-top: 0;
}

.pd-user-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pd-user-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blanco);
}

.pd-user-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* ── CTA ─────────────────────────────────────────────────── */
.pd-cta {
  background: #FEF2F2;
}

.pd-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.pd-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--texto);
  margin-bottom: 16px;
}

.pd-cta-inner p {
  font-size: 1.02rem;
  color: var(--texto-suave);
  margin-bottom: 32px;
  line-height: 1.65;
}

.pd-cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pd-cta-btns .btn-primary {
  background: #DC2626;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
}

.pd-cta-btns .btn-primary:hover {
  background: #B91C1C;
}

.pd-cta-btns .btn-secondary {
  border-color: #DC2626;
  color: #DC2626;
}

.pd-cta-btns .btn-secondary:hover {
  background: #FEE2E2;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .pd-hero {
    background: linear-gradient(160deg, #FEF2F2 0%, var(--blanco) 100%);
  }

  .pd-hero .container {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .pd-hero-visual {
    display: none;
  }

  .pd-hero-title {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .pd-hero-sub {
    font-size: 0.93rem;
  }

  .pd-hero-btns {
    flex-direction: column;
    gap: 10px;
  }

  .pd-hero-btns .btn {
    justify-content: center;
    width: 100%;
  }

  .pd-precio-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .pd-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-steps {
    flex-direction: column;
    align-items: center;
  }

  .pd-step {
    max-width: 100%;
    width: 100%;
  }

  .pd-step-arrow {
    transform: none;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0;
  }

  .pd-step-arrow::after {
    content: '↓';
    font-size: 1.8rem;
  }

  .pd-usuarios-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pd-usuarios-izq {
    position: static;
  }
}
