* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
  color: #111827;
  overflow-x: hidden;
  line-height: 1.5;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 55px;
  background: #07122e;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.logo {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.logo span {
  color: #14b8a6;
}

nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: .25s;
}

nav a:hover {
  color: #14b8a6;
}

.btn-nav {
  background: #14b8a6;
  padding: 11px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(20,184,166,.22);
}

.btn-nav:hover {
  background: #0f9d8f;
  color: #fff;
  transform: translateY(-2px);
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 92vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 25px;
}

.hero-box {
  max-width: 920px;
}

.badge {
  display: inline-block;
  padding: 10px 18px;
  background: #dff8f4;
  color: #0f766e;
  font-weight: 800;
  border-radius: 40px;
  font-size: 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 68px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -2px;
}

.hero span {
  color: #14b8a6;
}

.hero p {
  font-size: 22px;
  max-width: 760px;
  margin: 0 auto 35px;
  color: #4b5563;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-main {
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: .25s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #14b8a6;
  color: #fff;
  box-shadow: 0 12px 24px rgba(20,184,166,.22);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: #0f9d8f;
}

.btn-secondary {
  background: #fff;
  color: #111827;
  border: 1px solid #dbe2ea;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}

.social-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-bar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 6px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
  transition: .25s;
}

.social-bar img:hover {
  transform: translateY(-4px) scale(1.06);
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 90px 25px;
}

.container {
  max-width: 1180px;
  margin: auto;
}

.title {
  font-size: 42px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 45px;
  letter-spacing: -1px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,.06);
  transition: .25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(0,0,0,.09);
}

.card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.card p {
  color: #4b5563;
  font-size: 15px;
}

/* =========================
   GENERADOR
========================= */
.generator-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  padding: 70px 25px;
  flex-wrap: wrap;
}

.generator-box {
  background: #fff;
  padding: 36px;
  width: 700px;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.generator-box h1 {
  font-size: 46px;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.generator-box p {
  color: #6b7280;
  margin-bottom: 24px;
}

.cv-types {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.cv-types button {
  flex: 1;
  min-width: 160px;
  padding: 15px;
  border: none;
  background: #eef2f7;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .25s;
}

.cv-types button:hover,
.cv-types button.active {
  background: #14b8a6;
  color: #fff;
}

input,
textarea,
select {
  width: 100%;
  padding: 15px 16px;
  margin-bottom: 15px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: .2s;
  background: #fff;
}

input:focus,
textarea:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20,184,166,.10);
}

textarea {
  height: 120px;
  resize: vertical;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.full {
  width: 100%;
  margin-top: 8px;
}

.primary-btn {
  background: #14b8a6;
  color: #fff;
  font-weight: 800;
  border: none;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: .25s;
}

.primary-btn:hover {
  background: #0f9d8f;
  transform: translateY(-2px);
}

/* =========================
   IA BOX
========================= */
.ia-box {
  background: #fff;
  padding: 30px;
  width: 360px;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
  position: sticky;
  top: 95px;
}

.ia-box h2 {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 15px;
}

#mensajeIA {
  background: #f7fafc;
  padding: 18px;
  border-radius: 14px;
  min-height: 220px;
  margin-bottom: 18px;
  line-height: 1.65;
  color: #374151;
  border: 1px solid #eef2f7;
}

.ia-box button {
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;
  border: none;
  background: #14b8a6;
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: .25s;
}

.ia-box button:hover {
  background: #0f9d8f;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #07122e;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  margin-top: 70px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: #14b8a6;
  text-decoration: none;
  font-weight: 700;
}

/* ===================================================
   ESTILOS DE LA HOJA DE PAPEL (PREVISUALIZACIÓN CV)
=================================================== */
.controls-col {
  width: 600px;
  max-width: 100%;
}

.paper-col {
  flex: 1;
  min-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* Separación entre páginas múltiples */
}

/* Contenedor base de cada página A4 */
.cv-paper-container, .cv-page, .cv-page-clone {
  width: 210mm;
  min-height: 297mm;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  display: flex; /* Flexbox para mantener las columnas lado a lado */
  flex-direction: row;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

/* Asegurar que la hoja original y sus clones se comporten igual */
.cv-page-clone {
  margin-top: 15px;
}

/* Forzamos proporciones exactas para que el JS no rompa el diseño */
.cv-paper-container .paper-left,
.cv-page-clone .paper-left {
  width: 32% !important;
  background: #263238;
  color: #ffffff;
  padding: 30px 20px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

/* Estirar el fondo izquierdo sin importar si hay contenido (Página 2) */
.cv-page-clone .paper-left {
  min-height: 100%;
}

.paper-left img {
  display: block;
  width: 130px;
  height: 130px;
  margin: 0 auto 25px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  background: #ffffff;
  object-fit: contain;
  object-position: center center;
  padding: 4px;
}

.contact-info div {
  margin-bottom: 10px;
  word-wrap: break-word; /* Evita que el correo o links rompan la columna */
  overflow-wrap: break-word;
}

.paper-section-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 25px 0 10px;
  border-bottom: 2px solid #14b8a6;
  padding-bottom: 4px;
}

.skills-printed-list {
  list-style-position: inside;
  line-height: 1.8;
  padding-left: 5px;
  word-wrap: break-word;
}

/* Columna derecha (68%) en todas las páginas */
.cv-paper-container .paper-right,
.cv-page-clone .paper-right {
  width: 68% !important;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.paper-header {
  background: #009688;
  color: #ffffff;
  padding: 35px 30px;
}

.paper-header h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 5px;
  word-wrap: break-word;
}

.paper-header h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.9;
  margin-bottom: 15px;
}

.paper-header p {
  font-size: 14px;
  opacity: 0.95;
  line-height: 1.5;
  word-wrap: break-word;
}

/* Contenedor del contenido principal */
.paper-body {
  padding: 30px;
  color: #111827;
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ajuste de margen superior específico para las páginas clonadas */
.cv-page-clone .paper-body {
  padding-top: 40px; /* Evita que el texto pegue al borde superior en la hoja 2 */
}

.exp-item {
  margin-bottom: 24px;
}

.exp-item h4 {
  font-size: 17px;
  color: #111827;
  margin-bottom: 4px;
  font-weight: 800;
}

.exp-row-flex {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 600;
  flex-wrap: wrap; /* En caso de que el puesto o ciudad sean muy largos */
}

.exp-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media(max-width: 1100px) {
  .generator-page { flex-direction: column; align-items: center; }
  .paper-col { width: 100%; overflow-x: auto; padding: 10px; align-items: flex-start; }

  .cv-paper-container, .cv-page-clone { 
    transform: scale(0.85); 
    transform-origin: top left; 
    margin-bottom: -15%; /* Ajusta el espacio muerto generado por el scale */
  }
}

@media(max-width: 900px) {
  .navbar { padding: 18px 20px; flex-direction: column; gap: 15px; }
  nav { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .hero h1 { font-size: 44px; line-height: 1.12; }
  .hero p { font-size: 18px; }
  .title { font-size: 34px; }
  .generator-box, .ia-box { width: 100%; }
  .ia-box { position: relative; top: auto; }
  .two-cols { grid-template-columns: 1fr; }
}

@media(max-width: 520px) {
  .hero h1 { font-size: 36px; }
  .btn-main { width: 100%; }
  .logo { font-size: 24px; }
  .cv-paper-container, .cv-page-clone { transform: scale(0.65); margin-bottom: -40%; }
}

/* ===================================================
   ESTILOS PREMIUM PARA LA GUÍA "TU PRIMER CV"
=================================================== */

.primer-intro-box {
  background-color: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 25px;
  text-align: left;
}

.primer-intro-box h3 {
  color: #1e40af;
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 800;
}

.primer-intro-box p {
  font-size: 14px;
  color: #1e3a8a;
  line-height: 1.6;
  margin-bottom: 0 !important;
}

.comunidad-retencion-box {
  background-color: #f0fdf4;
  border: 2px dashed #22c55e;
  padding: 24px;
  border-radius: 16px;
  margin-top: 35px;
  text-align: center;
}

.comunidad-retencion-box h3 {
  color: #166534;
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 800;
}

.comunidad-retencion-box p {
  font-size: 14px;
  color: #14532d;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-comunidad-wa {
  display: inline-block;
  background-color: #22c55e;
  color: #ffffff !important;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
  transition: all 0.25s ease-in-out;
}

.btn-comunidad-wa:hover {
  background-color: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.35);
}

.comunidad-retencion-box.fb-box {
  background-color: #f0f7ff;
  border: 2px dashed #1877f2;
}

.comunidad-retencion-box.fb-box h3 {
  color: #111827;
}

.comunidad-retencion-box.fb-box p {
  color: #4b5563;
}

.btn-comunidad-fb {
  display: inline-block;
  background-color: #1877f2;
  color: #ffffff !important;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.25);
  transition: all 0.25s ease-in-out;
}

.btn-comunidad-fb:hover {
  background-color: #165ec9;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(22, 94, 201, 0.35);
}
/* =========================
   BOTONES DE EMPLEO (DESTACADOS)
========================= */

/* Estilo para el botón oscuro de vacantes */
.btn-dark:hover {
  background: #111827 !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(7, 18, 46, 0.3);
}

/* Efecto de pulso para el botón principal de buscar empleo */
.btn-pulse {
  background: #00dfa2; /* Verde brillante que ya usas */
  color: #07122e;
  font-weight: 900;
  border: none;
  box-shadow: 0 0 0 0 rgba(0, 223, 162, 0.7);
  animation: pulse-green 2s infinite;
}

.btn-pulse:hover {
  background: #00c790;
  transform: translateY(-3px);
  animation: none; /* Detiene el pulso al pasar el mouse */
  box-shadow: 0 12px 24px rgba(0, 223, 162, 0.4);
}

/* Animación de latido/pulso */
@keyframes pulse-green {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(0, 223, 162, 0.7); }
  50% { transform: scale(1); box-shadow: 0 0 0 12px rgba(0, 223, 162, 0); }
  100% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(0, 223, 162, 0); }
}

/* Estilo para el texto separador */
.divider-text {
  width: 100%;
  text-align: center;
  margin: 5px 0 25px 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}