/* ==========================
   VARIABLES (paleta y tipografía)
   ========================== */
:root {
  --color-principal: #00bda6;
  --color-principal-hover: #008b76;
  --color-secundario: #ff7a00;
  --color-secundario-dark: #e56600;
  --color-whatsapp: #25d366;
  --color-logo-azul: #1e90ff;
  --color-fondo: #f7f9fb;
  --color-texto: #222;
  --color-acento: #ffffff;
  --color-logros-bg: #f8f9fa;
  --hero-gradient: linear-gradient(to right, #00bda6, #008b76);
  --fuente-base: 'Segoe UI', Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.18s ease;
  --sombra-base: 0 6px 18px rgba(0,0,0,0.08);
  --sombra-intensa: 0 18px 48px rgba(0,0,0,0.2);
}

/* ==========================
   RESET / BASE
   ========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

html, body { height: 100%; }

body {
  font-family: var(--fuente-base);
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  padding-top: 60px;
}

a { text-decoration: none; color: inherit; }
a:hover { opacity: 0.88; }

a:focus,
button:focus,
input:focus {
  outline: 3px solid rgba(0,189,166,0.14);
  outline-offset: 3px;
}

/* ==========================
   HEADER
   ========================== */
.sticky-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: var(--color-acento);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.06);
  z-index: 1000;
}

.sticky-header .logo {
  font-weight: 900;
  font-size: 1.7rem;
  font-style: italic;
  color: var(--color-logo-azul);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* CTA Header */
.btn-inscribete {
  background: var(--color-secundario);
  color: var(--color-acento);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255,122,0,0.18);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-inscribete:hover,
.btn-inscribete:focus {
  background: var(--color-secundario-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255,122,0,0.22);
}

/* ==========================
   HERO PRINCIPAL
   ========================== */
.hero {
  margin: 20px 0 -10px 0;
  padding: 40px 20px;
  background: var(--hero-gradient);
  color: var(--color-acento);
  text-align: center;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.titulo-principal {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 10px;
}

.descripcion-principal {
  font-size: 1.15rem;
  margin: 0 auto 18px;
  max-width: 720px;
}

/* Bot贸n primario en hero (blanco con texto verde) */
.btn-cta {
  display: inline-block;
  background: var(--color-acento);
  color: var(--color-principal);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.btn-cta:hover { transform: translateY(-3px); }

/* ==========================
   SECCIONES / CARDS / LOGROS / BENEFICIOS
   ========================== */
.beneficios,
.logros,
.sectores-competencias,
.formulario,
.beneficios-persona,
.progress-block,
.plan-estudios,
.faq-section {
  padding: 40px 20px;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: -15px;
}

.card {
  background: var(--color-acento);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--sombra-base);
  text-align: center;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 12px 30px rgba(0,0,0,0.1), 0 5px 15px rgba(0,189,166,0.15);
}

.icono { font-size: 2.2rem; margin-bottom: 12px; }

.btn-cta-small {
  display: inline-block;
  background: var(--color-principal);
  color: var(--color-acento);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-cta-small:hover { 
  background: var(--color-principal-hover); 
  transform: translateY(-2px); 
}

/* ==========================
   BLOQUE COMPARATIVO / BENEFICIOS
   ========================== */
.comparativo {
  background: var(--color-acento);
  box-shadow: var(--sombra-base);
  border-radius: var(--radius-lg);
  margin: 30px auto;
  padding: 30px 20px;
  max-width: 900px;
}

.comparativo h2 {
  color: var(--color-principal);
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.tabla-comparativa {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.tabla-comparativa th, .tabla-comparativa td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}
.tabla-comparativa th {
  background: var(--color-principal);
  color: var(--color-acento);
  font-weight: 700;
}
.tabla-comparativa td:first-child {
  text-align: left;
  font-weight: 600;
  color: #333;
}

/* ==========================
   VIDEO / MULTIMEDIA
   ========================== */
.video-section {
  background: var(--color-fondo);
  text-align: center;
  padding: 40px 20px;
}
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sombra-base);
  max-width: 900px;
  margin: 0 auto;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ==========================
   FORMULARIO DE CONTACTO / INSCRIPCI脫N
   ========================== */
.formulario {
  background: var(--color-acento);
  padding: 50px 20px;
  box-shadow: var(--sombra-base);
  border-radius: var(--radius-lg);
  margin: 40px auto;
  max-width: 850px;
}

.formulario h2 {
  color: var(--color-principal);
  font-size: 1.6rem;
  margin-bottom: 20px;
  text-align: center;
}

.formulario form {
  display: grid;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.formulario input,
.formulario select,
.formulario textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: var(--fuente-base);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.formulario input:focus,
.formulario select:focus,
.formulario textarea:focus {
  border-color: var(--color-principal);
  box-shadow: 0 0 0 3px rgba(0,189,166,0.18);
}

.formulario button {
  background: var(--color-principal);
  color: var(--color-acento);
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}
.formulario button:hover {
  background: var(--color-principal-hover);
  transform: translateY(-2px);
}

/* ==========================
   FOOTER 1
   ========================== */
footer {
  background: #222;
  color: var(--color-acento);
  padding: 20px;
  text-align: center;
}
footer p { margin-bottom: 10px; }
footer a {
  display: inline-block;
  margin: 6px 8px;
  text-decoration: none;
  color: var(--color-acento);
  background: var(--color-whatsapp);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

/* botón web secundario */
.btn-web {
  display: inline-block;
  background: var(--color-acento);
  color: #0073e6;
  padding: 12px 24px;
  margin-top: 12px;
  text-decoration: none;
  border: 2px solid #0073e6;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
}
.btn-web:hover { background: #0073e6; color: var(--color-acento); }

/* ==========================
   MODAL VOCACIONAL (estructura base) - UNIFICADO
   ========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease forwards;
}
.modal.show,
.modal.activate,
.modal.active {
  display: flex;
}

.modal-content {
  background: var(--color-acento);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--sombra-intensa);
  max-width: 420px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  animation: popIn 0.4s ease forwards;
}

.modal h2 {
  color: var(--color-principal);
  margin-bottom: 10px;
}

.modal p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 20px;
}

.modal .close-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  color: #777;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--transition);
}
.modal .close-btn:hover { color: var(--color-principal); }

/* ==========================
   ANIMACIONES MODAL (UNIFICADAS)
   ========================== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes aparecerModal {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

/* ==========================
   GALACTUS+ MODAL DE RESULTADO (UNIFICADO)
   ========================== */
.modal-resultado {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.4s ease forwards;
}

.modal-resultado.active {
  display: flex;
}

.modal-resultado-content {
  background: var(--color-acento);
  color: var(--color-texto);
  border-radius: var(--radius-lg);
  padding: 28px 22px 36px;
  max-width: 480px;
  width: 95%;
  text-align: center;
  box-shadow: var(--sombra-intensa);
  position: relative;
  animation: aparecerModal 0.35s ease forwards;
  transform: scale(0.92);
  opacity: 0;
}

.modal-resultado-content h2 {
  font-size: 1.65rem;
  color: var(--color-principal);
  margin-bottom: 12px;
  font-weight: 800;
}

.modal-resultado-content p {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 22px;
  color: #333;
}

/* === SVG CIRCULO DE PROGRESO === */
.modal-resultado-content svg {
  width: 180px;
  height: 180px;
  margin: 0 auto 10px;
  display: block;
}

.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 12;
}

.circle-progress {
  fill: none;
  stroke: var(--color-principal);
  stroke-width: 12;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dasharray 0.3s ease;
}

#resultadoPuntaje {
  fill: #222;
  font-family: var(--fuente-base);
}

/* === BOTONES DENTRO DEL MODAL === */
.modal-resultado-content button {
  background: var(--color-principal);
  color: var(--color-acento);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--transition), transform var(--transition);
}

.modal-resultado-content button:hover {
  background: var(--color-principal-hover);
  transform: translateY(-2px);
}

.modal-resultado-content .modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 26px;
  color: #777;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-resultado-content .modal-close:hover {
  color: var(--color-principal);
}

/* === BLOQUE DE ACCIONES POST RESULTADO === */
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.98rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  min-width: 180px;
}

.btn-action:hover {
  transform: translateY(-2px);
}

.btn-action.btn-secondary {
  background: #fff;
  color: var(--color-principal);
  border: 2px solid var(--color-principal);
}

.btn-action.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-action.btn-primary {
  background: var(--color-principal);
  color: #fff;
}

/* === BOTONES ESPECÍFICOS === */
.btn-descargar {
  background: var(--color-principal);
  color: var(--color-acento);
}
.btn-descargar:hover {
  background: var(--color-principal-hover);
}

.btn-compartir {
  background: var(--color-whatsapp);
  color: var(--color-acento);
}
.btn-compartir:hover {
  background: #1ebe57;
}

.btn-inscribirse {
  background: var(--color-secundario);
  color: var(--color-acento);
  font-size: 1.05rem;
  padding: 14px 24px;
  box-shadow: 0 8px 24px rgba(255,122,0,0.25);
}
.btn-inscribirse:hover {
  background: var(--color-secundario-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,122,0,0.32);
}

/* ===========================
   ESTILOS DE LOS BOTONES (modal-buttons)
   =========================== */
.modal-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-buttons button {
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

#downloadResults {
  background-color: #f5f5f5;
  color: #333;
}

#downloadResults:hover {
  background-color: #e0e0e0;
}

#shareWhatsapp {
  background-color: #25d366;
  color: white;
}

#shareWhatsapp:hover {
  background-color: #1ebe5d;
}

#inscribirse {
  background-color: #004aad;
  color: white;
  font-size: 1rem;
  animation: pulse 3s infinite ease-in-out;
}

#inscribirse:hover {
  background-color: #00347a;
}

/* ===========================
   C脥RCULO DE PORCENTAJE
   =========================== */
.circle-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring__circle {
  transition: stroke-dashoffset 1s ease-out;
  stroke-linecap: round;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 1.2rem;
  color: #333;
}

/* ==========================
   RESPONSIVE AVANZADO
   ========================== */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 1. unificaré 8rem;
  }

  .quiz-card {
    padding: 16px;
  }

  .formulario {
    padding: 30px 16px;
  }
}

@media (max-width: 720px) {
  .quiz-controls-wrap {
    gap: 10px;
  }

  .btn-primary, .btn-secondary {
    font-size: 0.9rem;
    padding: 8px 10px;
    min-width: 130px;
  }

  .progress-bar {
    height: 10px;
  }

  .modal-resultado-content {
    width: 94%;
    padding: 24px 18px;
  }

  .modal-resultado-content svg {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  header a.logo {
    font-size: 1rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .formulario input,
  .formulario button {
    font-size: 0.95rem;
  }

  .modal-resultado-content {
    padding: 22px 16px 28px;
  }
  .btn-action {
    width: 100%;
    min-width: unset;
  }
}

/* ==========================
   TRANSICIONES Y EFECTOS SUAVES
   ========================== */
a, button {
  transition: all 0.25s ease;
}

button:active {
  transform: scale(0.96);
}

/* ==========================
   CLASES DE ESTADOS
   ========================== */
.is-hidden { display: none !important; }
.is-visible { display: block !important; }

/* Layout principal: 1/4 icono, 3/4 contenido */
.sector-layout {
  display: flex;
  align-items: center;      /* Centrado vertical */
  gap: 16px;
  padding: 16px;
}

/* Icono: ocupa 1/4 del ancho */
.sector-icono {
  flex: 1;                  /* 1 parte de 4 */
  display: flex;
  justify-content: center;  /* Centrado horizontal */
  align-items: center;      /* Centrado vertical */
}

.sector-icono .icono {
  font-size: 2.8rem;
}

/* Contenido: ocupa 3/4 del ancho */
.sector-contenido {
  flex: 3;                  /* 3 partes de 4 */
  display: flex;
  flex-direction: column;
  justify-content: center;  /* Centrado vertical */
  align-items: center;      /* Centrado horizontal */
  gap: 8px;
  text-align: center;
}

.sector-contenido h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #222;
}

/* Botón centrado dentro del contenido */
.sector-contenido .btn-cta-small {
  align-self: center;
  font-size: 0.9rem;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: var(--color-principal, #0066cc);
  color: white;
  cursor: pointer;
}

.sector-contenido .btn-cta-small:hover {
  background: #0055aa;
}

/* ==========================
   TARJETA "COMPARTIR" (restaurada a diseño original)
   ========================== */
.card-compartir {
  background: #e6fff225; /* verde muy claro (fondo) */
  border: 3px dashed var(--color-whatsapp);
  border-radius: 16px;
  padding: 22px;
  box-shadow: none;
  color: #264d3c;
  text-align: center;
  max-width: 760px;
  margin: 18px auto;
}

.card-compartir .icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 6px auto 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
  font-size: 28px;
  color: inherit;
}

.card-compartir h3 {
  margin: 6px 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f4b3e;
}

.card-compartir p {
  margin: 8px 0;
  line-height: 1.45;
  color: #3e554a;
  font-size: 0.98rem;
}

/* contenedor de acciones dentro de la tarjeta */
.card-compartir .acciones-compartir {
  margin-top: 18px;
}

/* botón principal — pill grande estilo WhatsApp */
.card-compartir .btn-cta-whatsapp {
  display: inline-block;
  background: var(--color-whatsapp);
  color: var(--color-acento);
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,211,102,0.18);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  vertical-align: middle;
}

/* icono dentro del botón si existe */
.card-compartir .btn-cta-whatsapp .icon {
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

/* hover & active */
.card-compartir .btn-cta-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37,211,102,0.22);
  background: #1ebe57;
}

/* cuadro de cita / nota interior (recuadro con raya izquierda) */
.card-compartir blockquote,
.card-compartir .highlight {
  margin: 18px auto 0;
  padding: 16px 18px;
  background: rgba(0,189,166,0.03);
  border-left: 6px solid rgba(0,189,166,0.18);
  border-radius: 8px;
  font-style: italic;
  color: #2f5246;
  max-width: calc(100% - 36px);
  box-sizing: border-box;
}

/* botón Whatsapp desde CARD */
.btn-whatsapp {
  display: inline-block;
  background: var(--color-whatsapp);   /* verde WhatsApp */
  color: var(--color-acento);          /* texto blanco */
  padding: 14px 30px;
  border-radius: 999px;                /* pill */
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,211,102,0.18);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  vertical-align: middle;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: #1ebe57;                 /* verde un poco más oscuro al pasar el mouse */
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37,211,102,0.22);
}

/* responsive para la tarjeta compartir */
@media (max-width: 420px) {
  .card-compartir {
    padding: 16px;
    border-width: 3px;
    border-radius: 14px;
  }
  .card-compartir h3 { font-size: 1.12rem; }
  .card-compartir .btn-cta-whatsapp {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
  }
}