:root {
  --bg-gradient: linear-gradient(to bottom, #110d3e, rgba(0,0,3,0.96));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}
html, body{
  /* overflow-x: hidden !important; */
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: none; 
}

body {
  font-family: 'Sora', sans-serif;
  min-height: 100vh;
  background: var(--bg-gradient);
  color: white;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 24px; */
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  gap: 32px;
}

.certification-label {
  font-size: 24px;
  font-weight: 600;
  line-height: 20px;
}

.certification-title {
  font-size: 46px;
  font-weight: 700;
  line-height: 60px;
  max-width: 1012px;
}

.certification-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  width: 1040px;
}

.certification-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.certification-details {
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.certification-details--info {
  font-size: 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 12px;
  display: flex;
  align-items: center;
  /* cursor: pointer; */
  gap: 8px;
}

.certification-details--info:hover {
  background: rgba(255, 255, 255, 0.24);
}

.video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 16px;
  padding: 16px 24px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: 0px 4px 12.3px -5px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(20px);
  width: 740px;
}

.card-info--title {
  font-size: 26px;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 16px;
}

.card-info--description {
  font-size: 16px;
  font-weight: 300;
  line-height: 20px;
}

.video-placeholder {
  width: 740px;
  /* height: 416px; */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  z-index: 2;
}

.main-content {
  display: flex;
  padding: 2rem;
  gap: 24px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 18px;
  background: #FFFFFF;
  padding: 16px 24px;
  width: 400px;
  z-index: 3;
}

.form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 8px; */
  /* margin-bottom: 16px; */
}

.form-title {
  text-align: center;
  color: #873AE3;
  font-size: 20px;
  font-weight: 800;
}

.form-description {
  text-align: center;
  color: #243141;
  width: 80%;
  font-size: 12px;
  font-weight: 400;
}

.form-logo {
  width: 160px;
  align-self: center;
}

.input-custom {
  width: 100%;
  height: 45px;
  padding: 0 16px; 
  border: 1px solid #BDBDBD;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  outline: none;
  box-sizing: border-box;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form-checkbox--text {
  font-size: 10px;
  color: #6C757D;
}

.form-button {
  background-color: #873AE3;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-button:hover {
  background-color: #6f2bbd;
}

.footer {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
}

.footer-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-details {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  width: 100%;
}

.detail-img {
  height: 100px;
  object-fit: cover;
  max-width: none;
}

.footer-details--item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 300;
}

strong {
  font-weight: 600;
}




.certificaciones-moviles{
  width:100%;
  /* background:#D4DAE0; */
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:16px 0px 28px;
}

.certificaciones__title{
  font-family:"Sora",system-ui,sans-serif;
  font-weight:700;
  font-size:20px;
  line-height:24px;
  color:#263A44;
  text-align:center;
  margin-bottom:10px;
}

/* SWIPER: no usar flex aquí */
.isos-swiper{
  width: 100%;
  overflow: hidden;
  margin: 0 auto 20px;
  padding: 0 8px;          /* gutters para que se vea el “peek” del vecino */
}
.isos-swiper .swiper-slide{
  width: 312px;            /* = .certificados-card width */
}
.isos-swiper .certificados-card{
  margin: 0;               /* evita empuje lateral dentro del slide */
}
.isos-swiper .swiper-slide{ display:flex; justify-content:center; }

/* Tarjeta */
.certificados-card{
  width:312px;                 /* ancho consistente */
  padding:16px;
  border-radius:16px;
  background:#EBEEF1;
  text-align:center;
  box-shadow:0 8px 24px rgba(26,40,64,.12);
  color:#263A44;
  margin:0 auto 20px;          /* separador entre tarjetas */
}
.certificados-media{
  height:110px;
  display:grid;
  place-items:center;
  border-radius:12px;
}
.certificados-media img{ max-width:100%; max-height:100%; height:auto; display:block; }
.certificados-text{ font:400 13px/18px "Sora",sans-serif; }

/* ACTIVO: fondo #0D3272 + texto blanco */
.isos-swiper .swiper-slide-active .certificados-card{
  background:#0D3272; color:#fff;
}
.isos-swiper .swiper-slide-active .certificados-text{ color:#fff; }

/* visibilidad por breakpoints */
@media (max-width:900px){ .certificates-area{ display:none; } }
@media (min-width:900px){ .certificaciones-moviles{ display:none;}}
@media (max-width: 900) {
  .footer{
    display:none;
 }
  
}


/* Slider Certificados */
.flex-items-datos.swiper{
  overflow: hidden;
  height: 180px;           /* AJUSTA a tu diseño (≈ 2 tarjetas + gap) */
}
.flex-items-datos{ width:490px !important }
.cert-row{
display:flex;
gap:12px;
align-items:flex-start;
}

/* NORMALIZA TODOS LOS SVG */
.cert-row > svg{
width:48px;
height:48px;
flex:0 0 48px;
display:block;
}

/* texto */
.cert-row__txt{ flex:1; }
.cert-row__title{ margin:0 0 6px; font-weight:800; font-size:16px; line-height:1.15; text-align:left; }
.cert-row__sub{ margin:0; font-size:13px; color:#475569; text-align:left; }

/* lista estática (cuando no hay swiper) */
.flex-items-datos .swiper-wrapper{ 
  display:block; 
}
.flex-items-datos .swiper-slide{ margin-bottom:16px; }
.flex-items-datos .swiper-slide:last-child{ margin-bottom:0; }

.bg-svg-wrapper {
  position: absolute;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.degradado1 {
  top: 0;
  right: 0;
  width: 550px;
 }
 .degradado2 {
  left: 0;
  width: 550px;
 }

/* ===== SWIPER ===== */
.mySwiper {
  max-width: 740px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mySwiper .swiper-wrapper {
  display: flex;
  align-items: center;
}

.mySwiper .swiper-slide {
  display: flex;
  justify-content: center;
}

.swiper-pagination {
  margin-top: 8px;
  position: static;
}

.swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
  width: 10px;
  height: 10px;
  transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}


/*Formulario  Ingenium*/
.form-ingenium {
  background: #ffffff;
  box-shadow: 0px 24px 50px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 22px;
  width: 100%;
  font-family: "Sora", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 460px;
  z-index: 2;
}

.form-header {
  text-align: center;
  /* margin-bottom: 32px; */
}

.form-logo {
  width: 190px;
  margin-bottom: 8px;
}

.form-header h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
  color: #0029ff;
  margin: 4px 0;
}

.form-header p {
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: #243141;
  max-width: 360px;
  margin: 0 auto;
}

/* FORM GENERAL */
form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* GRUPO DE CAMPOS */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  line-height: 20px;
  color: #949494;
  font-weight: 400;
}

.form-group input {
  height: 40px;
  padding: 0 24px;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #243141;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder {
  color: #949494;
}

.form-group input:focus {
  outline: none;
  border-color: #0b34db;
}

/* 🔹 TELÉFONO UNIFICADO (select + input en un solo borde) */
.telefono-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  overflow: hidden;
  height: 42px;
  transition: border-color 0.2s ease;
}

.telefono-wrapper:focus-within {
  border-color: #0b34db;
}

/* Select de código de país */
.telefono-wrapper select {
  border: none;
  outline: none;
  height: 100%;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: #243141;
  background-color: transparent;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23070D15' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}

/* Input del número */
.telefono-wrapper input {
  border: none;
  outline: none;
  height: 100%;
  flex: 1;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 500;
  color: #243141;
  font-family: inherit;
}

.telefono-wrapper input::placeholder {
  color: #949494;
}

/* Evitar doble borde al enfocar */
.telefono-wrapper select:focus,
.telefono-wrapper input:focus {
  outline: none;
}

/* CHECKBOX */
.terminos {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #6c757d;
  font-size: 10px;
  line-height: 13px;
}

.terminos input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #9a004c;
  border-radius: 3px;
}

/* BOTÓN */
form button {
  background: var(--primary-gradient);
  color: #fafafa;
  border: none;
  border-radius: 8px;
  height: 60px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.3s ease;
  margin-top: 8px;
}

form button:hover {
  opacity: 0.9;
}
@media (max-width: 1000px) {
  .partner-bg {
    flex-direction: column;
    align-items: center;
  }

}
/* RESPONSIVE */
@media (max-width: 480px) {


  .form-header h3 {
    font-size: 22px;
  }

  form button {
    font-size: 16px;
    height: 52px;
  }

  .telefono-wrapper {
    height: 40px;
  }

  .telefono-wrapper select,
  .telefono-wrapper input {
    font-size: 16px;
  }
}@media (max-width: 768px) {
  .header {
    padding: 1rem;
    gap: 16px;
  }

  .certification-title {
    font-size: 32px;
    line-height: 36px;
  }

  .certification-description {
    width: 100%;
    padding: 0 16px;
    font-size: 14px;
  }

  .certification-details {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .certification-details--info {
    font-size: 14px;
    padding: 8px 16px;
  }

  .main-content {
    max-width: 100%;
    flex-direction: column;
    padding: 1rem;
    gap: 16px;
    align-items: center;
  }

  .card-info {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .card-info--title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .card-info--description {
    font-size: 14px;
  }

  .video-placeholder {
    width: 100%;
    /* max-width: 400px; */
    height: auto;
  }
  .form-ingenium {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    box-sizing: border-box;
  }
  .form-ingenium form {
    width: 100%;
    max-width: 100%;
  }

  .form-header h3 {
    font-size: 20px;
  }

  .form-header p {
    font-size: 13px;
    width: 100%;
  }
  form {
    width: 100%;
    max-width: 400px;
    padding: 16px;
  }

  .footer {
    max-width: 100%;
    /* padding: 0 16px; */
  }

  .footer-title {
    font-size: 24px;
    padding: 0 16px;
  }

  .footer-details {
    display: none;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-details--item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
  }

  .detail-img {
    height: 80px;
  }
  .video-section {
    max-width: 100%;
  }
}


.input-error {
  border: 1px solid #ff4d4d !important;
  /* background-color: #fff6f6; */
  transition: all 0.3s ease;
}

.telefono-wrapper.telefono-error {
  border: 1px solid #ff4d4d !important;
  background-color: #fff6f6;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}
input[type="checkbox"].checkbox-error {
  outline: 1px solid #ff4d4d;
  border-radius: 4px;
}
input[type="checkbox"].checkbox-error + label {
  color: #ff4d4d;
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  margin-right: 8px;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .bg-svg-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .certification-label {
    font-size: 16px;
  }
}
