/*Certificaciones*/

.cert-page{
  background:#FAF9F7;
  color:#3F3C3C;
  font-family:'Roboto', sans-serif;
}

.cert-eyebrow{
  font-family:'Roboto', sans-serif;
  font-weight:700;
  font-size:13px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#EC5C30;
  margin-bottom:12px;
}

/* Hero */
.cert-hero{
  background:
    linear-gradient(rgba(63,60,60,0.85), rgba(63,60,60,0.85)),
    url('../../img/certificaciones/hero-bg.jpg');
  background-size:cover;
  background-position:center;
  padding:96px 8vw 88px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:48px;
  flex-wrap:wrap;
}

.cert-hero-badge{
  flex-shrink:0;
  width:320px;
  height:320px;
  filter:drop-shadow(0 20px 40px rgba(0,0,0,0.45));
}

.cert-hero-circle{
  position:absolute;
  top:-120px;
  right:-120px;
  width:420px;
  height:420px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(236,92,48,0.25), transparent 70%);
}

.cert-hero-content{
  max-width:900px;
  min-width:320px;
  flex:1 1 480px;
  position:relative;
}

.cert-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:rgba(236,92,48,0.15);
  border:1px solid rgba(236,92,48,0.4);
  color:#EC5C30;
  font-family:'Roboto', sans-serif;
  font-weight:700;
  font-size:13px;
  letter-spacing:2px;
  text-transform:uppercase;
  padding:8px 16px;
  border-radius:100px;
  margin-bottom:28px;
}

.cert-hero h1{
  font-family:'Roboto', sans-serif;
  font-weight:800;
  font-size:clamp(26px, 3.4vw, 42px);
  line-height:1.08;
  color:#fff;
  margin:0 0 22px;
  letter-spacing:-0.5px;
}

.cert-hero p{
  font-size:19px;
  line-height:1.6;
  color:#D9D6D2;
  max-width:720px;
  margin:0;
}

.cert-hero p strong{
  color:#fff;
}

/* Section header (reused) */
.cert-section-header{
  text-align:center;
  max-width:680px;
  margin:0 auto 44px;
}

.cert-section-header h2{
  font-family:'Roboto', sans-serif;
  font-weight:800;
  font-size:clamp(26px, 3vw, 36px);
  margin:0 0 14px;
  color:#3F3C3C;
}

.cert-section-header--wide{
  max-width:1000px;
}

.cert-section-header--wide h2{
  white-space:nowrap;
  font-size:clamp(22px, 2.6vw, 36px);
}

.cert-section-header p{
  font-size:16px;
  line-height:1.65;
  color:#66625E;
  margin:0;
}

/* Certificado principal */
.cert-main{
  max-width:1100px;
  margin:0 auto;
  padding:80px 8vw 40px;
}

.cert-card{
  background:#fff;
  border-radius:20px;
  box-shadow:0 24px 60px -30px rgba(63,60,60,0.35);
  border:1px solid #ECE9E5;
  overflow:hidden;
}

.cert-card img{
  width:100%;
  display:block;
}

.cert-card-footer{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  justify-content:center;
  padding:28px 24px;
  border-top:1px solid #ECE9E5;
}

.cert-btn-download{
  font-family:'Roboto', sans-serif;
  font-weight:700;
  font-size:15px;
  letter-spacing:0.3px;
  background:#EC5C30;
  color:#fff;
  padding:15px 30px;
  border-radius:10px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:0.3s;
}

.cert-btn-download:hover{
  background:#c94a24;
  color:#fff;
}

.cert-token{
  font-size:14px;
  color:#9A958F;
  font-family:'Roboto', sans-serif;
  letter-spacing:0.3px;
}

/* Detalles tecnicos */
.cert-details-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:20px 8vw 80px;
}

.cert-details{
  background:#fff;
  border:1px solid #ECE9E5;
  border-radius:16px;
  overflow:hidden;
}

.cert-details summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:24px 28px;
  font-family:'Roboto', sans-serif;
  font-weight:700;
  font-size:17px;
  color:#3F3C3C;
}

.cert-details summary::-webkit-details-marker{
  display:none;
}

.cert-details summary .cert-toggle-label{
  font-size:13px;
  font-weight:600;
  color:#EC5C30;
  letter-spacing:1px;
  text-transform:uppercase;
}

.cert-details-body{
  padding:0 28px 32px;
  border-top:1px solid #ECE9E5;
}

.cert-details-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:24px;
  margin:26px 0 30px;
}

.cert-field-label{
  font-size:12px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:#9A958F;
  margin-bottom:6px;
}

.cert-field-value{
  font-size:15px;
  color:#3F3C3C;
}

.cert-field-value.mono{
  font-family:monospace;
  word-break:break-all;
}

.cert-field-full{
  grid-column:1/-1;
}

.cert-legal-note{
  font-size:14px;
  line-height:1.7;
  color:#66625E;
  margin:0 0 20px;
}

.cert-reverse-img{
  width:100%;
  border-radius:12px;
  border:1px solid #ECE9E5;
  display:block;
}

/* Verificacion QR */
.cert-qr-section{
  background:#F2EFEA;
  padding:80px 8vw;
}

.cert-qr-grid{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:56px;
  align-items:center;
}

.cert-qr-grid h2{
  font-family:'Roboto', sans-serif;
  font-weight:800;
  font-size:clamp(24px, 2.8vw, 32px);
  margin:0 0 16px;
  color:#3F3C3C;
}

.cert-qr-grid p{
  font-size:16px;
  line-height:1.7;
  color:#66625E;
  margin:0 0 16px;
}

.cert-qr-link{
  font-family:'Roboto', sans-serif;
  font-weight:700;
  font-size:15px;
  color:#EC5C30;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:0.3s;
}

.cert-qr-link:hover{
  color:#c94a24;
}

.cert-qr-card{
  background:#fff;
  border-radius:20px;
  padding:24px;
  box-shadow:0 24px 60px -30px rgba(63,60,60,0.3);
  border:1px solid #ECE9E5;
}

.cert-qr-card img{
  width:100%;
  border-radius:8px;
  display:block;
}

/* Eventos y participaciones */
.cert-events{
  max-width:1100px;
  margin:0 auto;
  padding:88px 8vw 100px;
}

.cert-events-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:28px;
}

.cert-event-card{
  background:#fff;
  border:1px solid #ECE9E5;
  border-radius:18px;
  overflow:hidden;
  display:block;
  text-decoration:none;
  color:inherit;
  transition:transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cert-event-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 40px -20px rgba(63,60,60,0.35);
  border-color:#EC5C30;
  color:inherit;
}

.cert-event-media{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
  transition:transform 0.4s ease;
}

.cert-event-card:hover .cert-event-media{
  transform:scale(1.035);
}

.cert-event-media--full{
  aspect-ratio:auto;
  height:auto;
  object-fit:contain;
}

.cert-event-media-placeholder{
  width:100%;
  aspect-ratio:4/3;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:16px;
  background:#F5F3F0;
  color:#9A958F;
  font-family:'Roboto', sans-serif;
  font-weight:600;
  font-size:13px;
  letter-spacing:0.3px;
}

.cert-event-body{
  padding:22px 24px;
}

.cert-event-body h3{
  font-family:'Roboto', sans-serif;
  font-weight:700;
  font-size:18px;
  margin:0 0 8px;
  color:#3F3C3C;
}

.cert-event-body p{
  font-size:14px;
  line-height:1.6;
  color:#66625E;
  margin:0;
}

@media (max-width: 768px){

  .cert-section-header--wide h2{
    white-space:normal;
  }

  .cert-hero{
    padding:64px 6vw 56px;
  }

  .cert-hero-badge{
    width:200px;
    height:200px;
    margin:0 auto;
  }

  .cert-hero{
    justify-content:center;
    text-align:center;
  }

  .cert-hero-content{
    text-align:left;
  }

  .cert-main{
    padding:56px 6vw 24px;
  }

  .cert-details-wrap{
    padding:16px 6vw 56px;
  }

  .cert-qr-section{
    padding:56px 6vw;
  }

  .cert-qr-grid{
    grid-template-columns:1fr;
    gap:32px;
  }

  .cert-qr-card{
    max-width:320px;
    margin:0 auto;
  }

  .cert-events{
    padding:56px 6vw 64px;
  }

}
