/* =============================================
   certificados.css
   Estilos de la landing del certificado (certificados.html).
   Se carga solo en esa página vía {% block extra_head %}.

   Todo está scopeado bajo .cert-page para no filtrar el reset (*),
   los tokens ni el body al nav/footer compartido que renderiza base.html
   (estilizado por landing-course.css). Mismo criterio que .about-page.
   ============================================= */

.cert-page{
  --clr-primary:#9D2235;
  --clr-primary-hover:#7b1a14;
  --clr-primary-soft:#F6E7E9;
  --clr-gold:#9E5F0C;
  --clr-gold-soft:#EBA33C;
  --clr-gold-light:#ffd9a0;
  --clr-text-dark:#1F1F1F;
  --clr-text-gray:#3A3537;
  --clr-text-gray-light:#6A6264;
  --clr-bg-white:#ffffff;
  --clr-bg-gray:#F7F4F5;
  --clr-border:#E7E2E3;
  --clr-border-strong:#D2D2D2;
  --clr-blue-light:#E2E8F0;

  --grad-hero:linear-gradient(120deg,#c0433d 0%,#9D2235 52%,#7b1a14 100%);
  --grad-chip:linear-gradient(135deg,#c0433d 0%,#9D2235 55%,#7b1a14 100%);
  --grad-red:linear-gradient(120deg,#c0433d 0%,#9D2235 52%,#7b1a14 100%);

  --font-base:'Inter',system-ui,sans-serif;
  --radius:8px;
  --shadow-md:0 12px 30px -14px rgba(22,10,12,.2);
  --maxw:1140px;

  background:var(--clr-bg-white);
  color:var(--clr-text-dark);
  font-family:var(--font-base);
  font-size:16px;
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
.cert-page *{margin:0;padding:0;box-sizing:border-box}
.cert-page .wrap{max-width:var(--maxw);margin:0 auto;padding:0 1rem}

.cert-page h1,.cert-page h2,.cert-page h3{font-weight:700;letter-spacing:-.025em;line-height:1.12}
.cert-page em{font-style:normal;font-weight:700;background:var(--grad-red);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.cert-page .on-grad em{background:none;color:var(--clr-gold-light);-webkit-text-fill-color:initial}

/* ---------- BUTTONS ---------- */
.cert-page .button{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-family:var(--font-base);font-size:16px;font-weight:600;text-decoration:none;border-radius:var(--radius);padding:14px 26px;cursor:pointer;border:1px solid transparent;transition:background-color .2s,border-color .2s,transform .2s}
.cert-page .button-primary{background:var(--clr-primary);border-color:var(--clr-primary);color:#fff}
.cert-page .button-primary:hover{background:var(--clr-primary-hover);border-color:var(--clr-primary-hover);transform:translateY(-1px)}
.cert-page .button-ghost{background:transparent;border-color:var(--clr-border-strong);color:var(--clr-primary)}
.cert-page .button-ghost:hover{border-color:var(--clr-primary);background:var(--clr-primary-soft)}
.cert-page .button .arr{transition:transform .2s}
.cert-page .button:hover .arr{transform:translateX(3px)}
.cert-page .on-grad .button-primary,.cert-page .cta .button-primary{background:#fff;border-color:#fff;color:var(--clr-primary)}
.cert-page .on-grad .button-primary:hover,.cert-page .cta .button-primary:hover{background:#fff;transform:translateY(-1px) scale(1.01)}
.cert-page .on-grad .button-ghost,.cert-page .cta .button-ghost{color:#fff;border-color:rgba(255,255,255,.45);background:transparent}
.cert-page .on-grad .button-ghost:hover,.cert-page .cta .button-ghost:hover{border-color:#fff;background:rgba(255,255,255,.1)}

/* ---------- HERO ORIGINAL ---------- */
.cert-page .orig-hero{background:#F3F1F2}
.cert-page .orig-hero .container{max-width:1080px;margin:0 auto;padding:60px 1rem;box-sizing:content-box}
.cert-page .orig-hero .hero--grid{display:grid;grid-template-columns:1fr 480px;gap:0 50px;align-items:start}
.cert-page .orig-hero h1{font-size:42px;line-height:1.4;font-weight:700;letter-spacing:normal;margin:0 0 20px;color:var(--clr-text-dark)}
.cert-page .orig-hero p{font-size:16px;line-height:1.8;color:#353535;margin:0 0 16px}
.cert-page .orig-hero .button{display:inline-block;background:var(--clr-primary);border:1px solid var(--clr-primary);padding:20px 16px;min-width:180px;text-align:center;color:#fff;font-size:18px;border-radius:6px;font-weight:500;box-shadow:none;text-decoration:none}
.cert-page .orig-hero .button:hover{background:var(--clr-primary-hover);transform:none}
.cert-page .orig-hero .checklist{list-style:none;display:flex;gap:12px;margin:20px 0 0;padding:0}
.cert-page .orig-hero .checklist.data li{padding-left:26px;position:relative;font-size:14px;font-weight:600;color:#353535}
.cert-page .orig-hero .checklist.data li::before{content:'✓';position:absolute;left:0;top:-1px;color:var(--clr-text-dark);font-size:16px;font-weight:700}
.cert-page .orig-hero .hero-image img,.cert-page .orig-hero .hero-image svg{width:100%;height:auto;border-radius:6px;display:block}
.cert-page .orig-hero .hero-stats{list-style:none;padding:0;margin:40px 0 0;display:flex;gap:30px}
.cert-page .orig-hero .hero-stat{display:flex;flex-direction:column;flex:1;gap:4px}
.cert-page .orig-hero .hero-stat__number{font-size:38px;font-weight:700;color:var(--clr-text-dark);line-height:1.2}
.cert-page .orig-hero .hero-stat__label{color:#353535;font-size:16px}
@media(max-width:980px){.cert-page .orig-hero .container{max-width:480px}.cert-page .orig-hero .hero--grid{grid-template-columns:1fr}.cert-page .orig-hero .hero-text{margin-bottom:20px}.cert-page .orig-hero .hero-stats{flex-direction:column;gap:16px}}
@media(max-width:820px){.cert-page .orig-hero .container--hero{padding:40px 1rem 60px}}
@media(max-width:580px){.cert-page .orig-hero h1{font-size:36px}}
@media(max-width:480px){.cert-page .orig-hero .hero-stat__number{font-size:28px}}

/* ---------- MARQUEE ---------- */
.cert-page .scale{padding:32px 0 8px;text-align:center}
.cert-page .scale p{max-width:48ch;margin:18px auto 0;color:var(--clr-text-gray);font-size:18px}
.cert-page .marquee{margin-top:34px;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
.cert-page .marquee-track{display:flex;gap:12px;width:max-content;animation:cert-scroll 38s linear infinite}
.cert-page .marquee:hover .marquee-track{animation-play-state:paused}
.cert-page .pill{border:1px solid var(--clr-border);border-radius:40px;padding:10px 20px;font-size:14.5px;color:var(--clr-text-gray);background:#fff;white-space:nowrap;font-weight:500}
@keyframes cert-scroll{to{transform:translateX(-50%)}}

/* ---------- SECTION SHELL ---------- */
.cert-page .pad{padding:72px 0}
.cert-page .section--gray{background:var(--clr-bg-gray)}
.cert-page .section-head{max-width:760px}
.cert-page .section-head h2{font-size:clamp(30px,4.4vw,42px);font-weight:700;margin-top:20px;line-height:1.2}
.cert-page .section-head p{font-size:18px;color:var(--clr-text-gray);margin-top:18px;line-height:1.6}

/* ---------- BENEFITS / CARDS ---------- */
.cert-page .cards-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:56px}
.cert-page .card{background:#fff;border:1px solid var(--clr-border);border-radius:var(--radius);padding:24px 20px;transition:border-color .3s,transform .3s,box-shadow .3s}
.cert-page .card:hover{border-color:#efd6da;transform:translateY(-5px);box-shadow:var(--shadow-md)}
.cert-page .card .ico{width:52px;height:52px;border-radius:6px;display:grid;place-items:center;background:#f3f1f2;color:var(--clr-primary);margin-bottom:18px}
.cert-page .card h3{font-size:20px;font-weight:700;margin-bottom:10px;line-height:1.25}
.cert-page .card p{font-size:15.5px;color:var(--clr-text-gray);line-height:1.65}
.cert-page .data-note{margin-top:24px;font-family:var(--font-base);font-size:14px;font-weight:600;color:#353535;display:flex;align-items:center;gap:12px;justify-content:flex-start;text-align:left}
.cert-page .data-note::before{content:"↗";color:var(--clr-primary);font-weight:700}
@media(max-width:920px){.cert-page .cards-4{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.cert-page .cards-4{grid-template-columns:1fr}}

/* ---------- VALUE + COMPARE ---------- */
.cert-page .value-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:60px;align-items:center;margin-top:56px}
.cert-page .value-item{margin-bottom:30px}
.cert-page .value-item h3{font-size:20px;font-weight:700;margin-bottom:8px}
.cert-page .value-item p{font-size:16px;color:var(--clr-text-gray);line-height:1.65}
.cert-page .value-item .src{font-family:var(--font-base);font-size:14px;color:#353535;font-weight:600;margin-top:24px;display:flex;gap:12px}
.cert-page .value-item .src::before{content:"↗";color:var(--clr-primary);font-weight:700}
.cert-page .compare{border:1px solid var(--clr-border);border-radius:6px;overflow:hidden;background:#fff;box-shadow:var(--shadow-md)}
.cert-page .crow{display:grid;grid-template-columns:1.5fr 1fr 1fr}
.cert-page .crow>div{padding:16px 20px;font-size:14.5px;border-bottom:1px solid var(--clr-border)}
.cert-page .crow:last-child>div{border-bottom:none}
.cert-page .crow .hl{background:var(--clr-primary-soft)}
.cert-page .chead>div{font-weight:700;font-size:14px}
.cert-page .chead .hl{background:var(--grad-chip);color:#fff}
.cert-page .crow .lbl{color:var(--clr-text-gray);font-weight:500}
.cert-page .crow .no{color:var(--clr-text-gray-light)}
.cert-page .crow .yes{color:var(--clr-primary);font-weight:700}
@media(max-width:880px){.cert-page .value-grid{grid-template-columns:1fr;gap:40px}}

/* ---------- STEPS (vision-list) ---------- */
.cert-page .vision-list{margin-top:52px;border-top:1px solid var(--clr-border)}
.cert-page .vrow{display:grid;grid-template-columns:80px 1fr 1.3fr;gap:28px;align-items:baseline;padding:34px 0;border-bottom:1px solid var(--clr-border);transition:padding-left .3s}
.cert-page .vrow:hover{padding-left:12px}
.cert-page .vrow .vn{font-family:var(--font-base);font-size:13.5px;font-weight:500;color:var(--clr-gold);letter-spacing:.04em}
.cert-page .vrow h3{font-size:clamp(21px,3vw,28px);font-weight:700;line-height:1.2}
.cert-page .vrow p{font-size:16px;color:var(--clr-text-gray);line-height:1.6}
@media(max-width:780px){.cert-page .vrow{grid-template-columns:54px 1fr;gap:6px 16px}.cert-page .vrow p{grid-column:1/-1;margin-top:6px}}

/* ---------- IMPACT ---------- */
.cert-page .impact{background:var(--clr-blue-light);color:var(--clr-text-dark);position:relative;overflow:hidden}
.cert-page .impact::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(74,111,165,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(74,111,165,.12) 1px,transparent 1px);background-size:58px 58px;mask-image:radial-gradient(86% 86% at 50% 28%,#000,transparent 82%);-webkit-mask-image:radial-gradient(86% 86% at 50% 28%,#000,transparent 82%)}
.cert-page .impact::after{content:"";position:absolute;inset:0;background:radial-gradient(46% 60% at 86% 8%,rgba(157,34,53,.12),transparent 60%),radial-gradient(50% 62% at 4% 98%,rgba(74,111,165,.22),transparent 62%)}
.cert-page .impact .wrap{position:relative;z-index:1}
.cert-page .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:64px}
.cert-page .stat{border-top:1px solid rgba(74,111,165,.3);padding-top:24px}
.cert-page .stat .big{font-size:clamp(40px,5.4vw,66px);font-weight:700;line-height:.95;letter-spacing:-.03em;background:var(--grad-red);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.cert-page .stat .lbl{margin-top:14px;font-size:14.5px;color:var(--clr-text-gray);line-height:1.5}
@media(max-width:880px){.cert-page .stats{grid-template-columns:1fr 1fr;gap:38px 24px}}

/* ---------- TESTIMONIALS ---------- */
.cert-page .testi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:56px}
.cert-page .testi{background:#fff;border:1px solid var(--clr-border);border-radius:var(--radius);padding:32px 30px;display:flex;flex-direction:column;transition:border-color .3s,transform .3s,box-shadow .3s}
.cert-page .testi:hover{border-color:#efd6da;transform:translateY(-5px);box-shadow:var(--shadow-md)}
.cert-page .testi .stars{color:var(--clr-gold-soft);font-size:15px;letter-spacing:2px;margin-bottom:14px}
.cert-page .testi blockquote{font-size:16px;color:var(--clr-text-gray);line-height:1.65;flex:1;margin-bottom:22px}
.cert-page .testi .who{display:flex;align-items:center;gap:13px}
.cert-page .testi .av{width:44px;height:44px;border-radius:50%;background:#e4e4e4;color:var(--clr-text-gray);display:grid;place-items:center;font-weight:700;flex:none}
.cert-page .testi .who b{display:block;font-size:15px;color:var(--clr-text-dark)}
.cert-page .testi .who span{font-size:13px;color:var(--clr-text-gray-light)}
@media(max-width:880px){.cert-page .testi-grid{grid-template-columns:1fr}}

/* ---------- COURSES ---------- */
.cert-page .cards.course{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:52px 0 0}
.cert-page .cards.course .card{position:relative;width:23%;box-sizing:border-box;background:#fff;padding:10px;border-radius:6px;margin-right:12px;border:1px solid #D2D2D2;height:auto}
.cert-page .cards.course .card:hover{text-decoration:none;border:1px solid var(--clr-primary)}
.cert-page .cards.course .card a{text-decoration:none;display:block;color:inherit}
.cert-page .cards.course .card a:hover{text-decoration:none}
.cert-page .cards.course .card .card-image{overflow:hidden;border-radius:6px;margin-bottom:10px}
.cert-page .cards.course .card .card-image img{width:102%;margin:-1% -1% -4% -1%;display:block}
.cert-page .cards.course .card .course-details .course-name{color:var(--clr-text-dark);font-size:16px;font-weight:600;margin-bottom:6px;letter-spacing:normal;line-height:1.4}
.cert-page .cards.course .card .course-details .course-description{font-size:15px;color:#353535;line-height:1.7;margin:20px 0}
.cert-page .cards.course .card .course-details .svg-certificates{display:inline-block}
.cert-page .cards.course .card .course-details .certificates{display:inline-flex;align-items:center;gap:5px;font-size:14px;font-weight:600;color:var(--clr-primary);position:absolute;bottom:14px}
.cert-page .cards.course .card:last-of-type{margin-right:5px}
.cert-page .courses-cta{margin-top:40px;text-align:left}
@media(max-width:980px){
  .cert-page .cards.course .card{width:48%;margin-bottom:12px}
  .cert-page .cards.course .card:nth-child(2),.cert-page .cards.course .card:last-of-type{margin-right:0}
}
@media(max-width:580px){
  .cert-page .cards.course .card{width:100%;margin:12px 0 0;position:inherit;min-height:auto}
  .cert-page .cards.course .card:first-of-type{margin-top:0}
  .cert-page .cards.course .card .course-details .certificates{position:inherit;min-height:auto}
}

/* ---------- FAQ ---------- */
.cert-page .container{max-width:1080px;margin:0 auto;padding:60px 1rem;box-sizing:content-box}
.cert-page .container-testimonials{padding:20px 1rem 80px}
.cert-page .container .content-section{max-width:820px}
.cert-page .container-testimonials h2{font-weight:600;letter-spacing:normal;font-size:30px;line-height:1.4;margin:0 0 18px;color:var(--clr-text-dark)}
.cert-page .tab-navigation{border:1px solid #D2D2D2;border-radius:6px;padding:20px}
.cert-page .tabs-menu{position:relative;overflow:hidden;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #D2D2D2}
.cert-page .tabs-menu:last-of-type{border:none;padding-bottom:0;margin-bottom:0}
.cert-page details>summary{list-style:none}
.cert-page details>summary::-webkit-details-marker{display:none}
.cert-page details>summary.content-label{display:flex;align-items:center;justify-content:space-between;padding:5px;cursor:pointer;border-radius:4px;-webkit-user-select:none;user-select:none;font-weight:500;font-size:16px;color:var(--clr-text-dark);line-height:1.4}
.cert-page details>summary.content-label:hover,
.cert-page details[open]>summary.content-label{background:#F3F1F2}
.cert-page .summary-icon{flex-shrink:0;width:20px;height:20px;margin-left:12px;display:flex;align-items:center;justify-content:center;color:var(--clr-primary);transition:transform .25s ease}
.cert-page .summary-icon::before{content:'';display:block;width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .25s ease}
.cert-page details[open]>summary .summary-icon::before{transform:rotate(-135deg) translate(-2px,-2px)}
.cert-page .content-tab p{padding:12px 5px 0;line-height:1.8;color:#353535}
.cert-page .content-tab .checklist{list-style:none;display:flex;gap:12px;margin:20px 0 0;padding:0}
.cert-page .content-tab .checklist.data li{padding-left:26px;position:relative;font-size:14px;font-weight:600;color:#353535}
.cert-page .content-tab .checklist.data li::before{content:'✓';position:absolute;left:0;top:-1px;color:var(--clr-text-dark);font-size:16px;font-weight:700}

/* ---------- CTA ---------- */
.cert-page .cta{position:relative;overflow:hidden;color:#fff;text-align:center;padding:128px 0 132px}
.cert-page .cta::before{content:"";position:absolute;inset:0;background:var(--grad-hero);clip-path:polygon(0 7%,100% 0,100% 100%,0 100%)}
.cert-page .cta::after{content:"";position:absolute;inset:0;background:radial-gradient(40% 60% at 50% 4%,rgba(255,255,255,.22),transparent 60%);clip-path:polygon(0 7%,100% 0,100% 100%,0 100%)}
.cert-page .cta .wrap{position:relative;z-index:1}
.cert-page .cta h2{font-size:clamp(32px,5.4vw,56px);font-weight:700;margin:22px auto 0;max-width:20ch;color:#fff;line-height:1.2;text-shadow:0 1px 30px rgba(70,10,10,.18)}
.cert-page .cta p{margin:22px auto 0;max-width:56ch;color:rgba(255,255,255,.9);font-size:18px;line-height:1.6}
.cert-page .cta-actions{margin-top:38px;display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* ---------- REVEAL ---------- */
.cert-page .reveal{opacity:0;transform:translateY(26px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.cert-page .reveal.in{opacity:1;transform:none}
.cert-page .reveal[data-d="1"]{transition-delay:.08s}.cert-page .reveal[data-d="2"]{transition-delay:.16s}.cert-page .reveal[data-d="3"]{transition-delay:.24s}.cert-page .reveal[data-d="4"]{transition-delay:.32s}
@media(prefers-reduced-motion:reduce){.cert-page .reveal{opacity:1;transform:none;transition:none}.cert-page .marquee-track{animation:none}}
