/* Página del curso de PRP: secciones propias (prefijo p-). Usa las variables de style.css. */
:root { --blush: #FBF4F3; --rose: #F3DEDC; --ink: #1A1414; --gold: #C9A227; }

.p-wrap { overflow-x: hidden; }
.p-section { padding: 96px 0; position: relative; }
.p-section.dark { background: var(--ink); color: #fff; }
.p-section.blush { background: var(--blush); }
.p-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12; margin-bottom: 16px; }
.p-sub { color: var(--gray); font-size: 1.05rem; max-width: 640px; }
.p-section.dark .p-sub { color: rgba(255,255,255,.72); }
.p-head { margin-bottom: 48px; }
.p-head.center { text-align: center; }
.p-head.center .p-sub { margin: 0 auto; }

/* Botones */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; border-radius: 999px; padding: 16px 30px; font-size: 1rem; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.p-btn-primary { background: var(--red); color: #fff; box-shadow: 0 14px 30px rgba(217,19,18,.28); }
.p-btn-primary:hover { background: var(--red-dark); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(217,19,18,.34); }
.p-btn-ghost { border: 1.5px solid rgba(26,20,20,.18); color: var(--ink); background: #fff; }
.p-btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.p-btn svg { width: 18px; height: 18px; }

/* Hero */
.p-hero { position: relative; padding: 150px 0 90px; background: radial-gradient(1200px 600px at 85% -10%, var(--rose), transparent 60%), linear-gradient(180deg, var(--blush), #fff); }
.p-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.p-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--rose); color: var(--red); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.p-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(217,19,18,.15); }
.p-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.04; margin: 22px 0 20px; letter-spacing: -.01em; }
.p-hero h1 em { font-style: italic; color: var(--red); }
.p-hero-text { font-size: 1.12rem; color: var(--gray); max-width: 540px; margin-bottom: 28px; }
.p-offer { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; background: #fff; border: 1px solid var(--rose); border-radius: 22px; padding: 18px 22px; max-width: 540px; box-shadow: 0 20px 50px rgba(120,50,50,.08); margin-bottom: 26px; }
.p-offer-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--red); line-height: 1; }
.p-offer-price s { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--gray); margin-left: 12px; vertical-align: middle; }
.p-offer-meta { font-size: .9rem; color: var(--gray); line-height: 1.4; }
.p-offer-meta b { color: var(--ink); }
.p-count { display: flex; gap: 8px; margin-left: auto; }
.p-count div { background: var(--ink); color: #fff; border-radius: 12px; min-width: 54px; padding: 8px 6px; text-align: center; }
.p-count b { display: block; font-size: 1.25rem; line-height: 1; }
.p-count span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.p-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.p-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; font-size: .9rem; color: var(--gray); }
.p-trust li { display: flex; align-items: center; gap: 8px; }
.p-trust svg { width: 18px; height: 18px; color: var(--red); flex: none; }

.p-hero-media { position: relative; }
.p-hero-photo { border-radius: 32px; overflow: hidden; box-shadow: 0 40px 80px rgba(80,30,30,.22); aspect-ratio: 4/5; }
.p-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.p-float { position: absolute; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 20px 50px rgba(60,20,20,.18); display: flex; align-items: center; gap: 12px; font-size: .88rem; line-height: 1.3; animation: p-bob 6s ease-in-out infinite; }
.p-float b { display: block; font-size: 1rem; }
.p-float .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blush); color: var(--red); display: grid; place-items: center; flex: none; }
.p-float .ic svg { width: 22px; height: 22px; }
.p-float.f1 { left: -34px; top: 14%; }
.p-float.f2 { right: -26px; top: 46%; animation-delay: -2s; }
.p-float.f3 { left: 8%; bottom: -26px; animation-delay: -4s; }
@keyframes p-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Cifras */
.p-stats { background: var(--ink); color: #fff; padding: 34px 0; }
.p-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.p-stats b { display: block; font-family: var(--font-display); font-size: 2.2rem; color: #fff; line-height: 1.1; }
.p-stats span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* Problema / solución */
.p-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.p-card { background: #fff; border: 1px solid #F0E3E2; border-radius: 26px; padding: 36px; }
.p-card.bad { background: #FAF7F7; }
.p-card.good { background: var(--ink); color: #fff; border-color: var(--ink); }
.p-card h3 { font-family: var(--font-display); font-size: 1.55rem; margin-bottom: 18px; }
.p-list { list-style: none; display: grid; gap: 14px; }
.p-list li { display: flex; gap: 12px; align-items: flex-start; }
.p-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.p-card.bad svg { color: #B9A9A8; }
.p-card.good svg { color: #FF8A8A; }

/* Módulos */
.p-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.p-mod { border-radius: 18px; overflow: hidden; position: relative; background: #000; box-shadow: 0 14px 34px rgba(0,0,0,.25); transition: transform .35s ease, box-shadow .35s ease; }
.p-mod img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .6s ease; }
.p-mod:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.p-mod:hover img { transform: scale(1.05); }
.p-mod .free { position: absolute; top: 10px; right: 10px; background: #22A35A; color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

/* Video */
.p-video { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.p-video-frame { border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45); background: #000; }
.p-video-frame video { width: 100%; display: block; }
.p-badge { display: inline-block; background: rgba(217,19,18,.16); color: #FF9B9B; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }

/* Pasos */
.p-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; counter-reset: paso; }
.p-step { counter-increment: paso; }
.p-step-img { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3/4; margin-bottom: 14px; }
.p-step-img img, .p-step-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-video .ek-player { width: 100%; }
.p-step-img::after { content: counter(paso); position: absolute; left: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: .95rem; }
.p-step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.p-step p { font-size: .84rem; color: var(--gray); line-height: 1.45; }

/* Materiales */
.p-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.p-docs-stack { position: relative; height: 520px; }
.p-docs-stack img { position: absolute; width: 56%; border-radius: 12px; box-shadow: 0 30px 60px rgba(80,30,30,.22); background: #fff; transition: transform .4s ease; }
.p-docs-stack img:nth-child(1) { left: 0; top: 40px; transform: rotate(-7deg); }
.p-docs-stack img:nth-child(2) { left: 22%; top: 0; z-index: 2; }
.p-docs-stack img:nth-child(3) { right: 0; top: 50px; transform: rotate(7deg); z-index: 1; }
.p-docs-stack:hover img:nth-child(1) { transform: rotate(-10deg) translateX(-14px); }
.p-docs-stack:hover img:nth-child(3) { transform: rotate(10deg) translateX(14px); }
.p-docs-list { list-style: none; display: grid; gap: 16px; margin: 26px 0 30px; }
.p-docs-list li { display: flex; gap: 14px; align-items: flex-start; }
.p-docs-list .n { width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 600; display: grid; place-items: center; flex: none; font-size: .9rem; }
.p-docs-list b { display: block; }
.p-docs-list span { font-size: .9rem; color: var(--gray); }

/* Certificado */
.p-cert { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.p-cert img { border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.4); transform: rotate(-2deg); }

/* Instructora */
.p-teacher { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; background: #fff; border-radius: 30px; padding: 46px; border: 1px solid #F0E3E2; box-shadow: 0 24px 60px rgba(120,50,50,.08); }
.p-teacher-mark { width: 150px; height: 150px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; }
.p-teacher-mark img { width: 96px; }
.p-teacher blockquote { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.45; margin-bottom: 14px; }
.p-teacher p { color: var(--gray); }

/* Para quién */
.p-who { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.p-who div { background: #fff; border: 1px solid #F0E3E2; border-radius: 18px; padding: 22px 16px; text-align: center; font-weight: 500; }
.p-who svg { width: 30px; height: 30px; color: var(--red); margin: 0 auto 10px; display: block; }
.p-note { margin-top: 22px; font-size: .86rem; color: var(--gray); text-align: center; }

/* Precio */
.p-price-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.p-price { background: #fff; color: var(--ink); border-radius: 30px; padding: 40px; box-shadow: 0 40px 90px rgba(0,0,0,.4); position: relative; }
.p-price-tag { position: absolute; top: -16px; left: 40px; background: var(--red); color: #fff; font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; }
.p-price-now { font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; color: var(--red); line-height: 1; }
.p-price-old { color: var(--gray); text-decoration: line-through; font-size: 1.1rem; margin-left: 8px; }
.p-price-small { color: var(--gray); font-size: .92rem; margin: 10px 0 24px; }
.p-price .p-list { margin-bottom: 28px; }
.p-price .p-list svg { color: var(--red); }
.p-price .p-btn { width: 100%; }
.p-guarantee { display: flex; gap: 14px; align-items: center; margin-top: 18px; font-size: .88rem; color: var(--gray); }
.p-guarantee svg { width: 40px; height: 40px; color: var(--red); flex: none; }

/* FAQ */
.p-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.p-faq details { background: #fff; border: 1px solid #F0E3E2; border-radius: 18px; padding: 20px 24px; }
.p-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: '+'; color: var(--red); font-size: 1.4rem; line-height: 1; transition: transform .3s ease; }
.p-faq details[open] summary::after { transform: rotate(45deg); }
.p-faq details p { color: var(--gray); margin-top: 12px; }

/* Cierre */
.p-final { text-align: center; padding: 110px 0; background: radial-gradient(800px 400px at 50% 0%, rgba(217,19,18,.35), transparent 70%), var(--ink); color: #fff; }
.p-final .p-title { max-width: 760px; margin: 0 auto 18px; }
.p-final .p-sub { margin: 0 auto 32px; color: rgba(255,255,255,.75); }

@media (max-width: 1080px) {
  .p-steps { grid-template-columns: repeat(4, 1fr); }
  .p-modules { grid-template-columns: repeat(3, 1fr); }
  .p-who { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .p-section { padding: 72px 0; }
  .p-hero { padding: 120px 0 70px; }
  .p-hero-grid, .p-split, .p-video, .p-docs, .p-cert, .p-price-wrap { grid-template-columns: 1fr; gap: 40px; }
  .p-hero-media { max-width: 440px; margin: 0 auto; }
  .p-float.f1 { left: -8px; } .p-float.f2 { right: -8px; }
  .p-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .p-docs-stack { height: 420px; max-width: 460px; margin: 0 auto; width: 100%; }
  .p-teacher { grid-template-columns: 1fr; text-align: center; padding: 34px 24px; }
  .p-teacher-mark { margin: 0 auto; }
}
@media (max-width: 600px) {
  .p-modules { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-steps { grid-template-columns: repeat(2, 1fr); }
  .p-who { grid-template-columns: repeat(2, 1fr); }
  .p-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .p-stats-grid div:last-child { grid-column: span 2; }
  .p-count { margin-left: 0; }
  .p-offer { padding: 16px; }
  .p-hero-actions .p-btn { width: 100%; }
  .p-float { font-size: .78rem; padding: 10px 12px; }
  .p-float .ic { width: 34px; height: 34px; }
  .p-docs-stack { height: 330px; }
  .p-price { padding: 34px 22px; }
  .p-price-now { font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) { .p-float { animation: none; } }

/* Evita que las columnas de la grilla crezcan más que la pantalla */
.p-hero-grid > *, .p-split > *, .p-video > *, .p-docs > *, .p-cert > *, .p-price-wrap > *, .p-teacher > * { min-width: 0; }
.p-hero h1, .p-title { overflow-wrap: break-word; }

/* Consulta por WhatsApp junto a los botones de compra */
.p-wa { margin-top: 16px; font-size: .9rem; color: var(--gray); }
.p-wa a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.p-final .p-wa { color: rgba(255,255,255,.75); margin-top: 22px; }
.p-final .p-wa a { color: #fff; }
.p-offer-local { margin-top: 4px; font-size: .8rem; color: var(--gray); }
@media (max-width: 600px) { .p-hero { padding-top: 40px; } }
