/* ===== HERO ===== */
.cv-hero {
  background: linear-gradient(135deg, rgba(0,114,187,0.28), rgba(0,114,187,0.12)),
              url('../../img/hero_cv.jpg') center/cover no-repeat;
  text-align: center;
  padding: 90px 20px;
  color: #fff;
}
.cv-hero__inner { width: min(1100px, 92%); margin: 0 auto; }
.cv-hero h1 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-bottom: 8px; }
.cv-hero p  { color: #f3f7fb; }

/* ===== LAYOUT ===== */
.cv-wrap { width: min(1200px, 92%); margin: 28px auto 60px; }
.cv-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 28px;
  align-items: stretch;
}

/* Imagen lateral */
.cv-side {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  background: #fff;
  min-height: 320px;
}
.cv-side img { width: 100%; height: 100%; object-fit: cover; }

/* Tarjeta — azul corporativo suave */
.cv-card {
  background: rgba(0,114,187,0.07);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  padding: 22px 22px 12px;
  display: flex;
  flex-direction: column;
}
.cv-card__head h2 {
  color: #0072BB;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 6px;
}
.cv-card__head p { color: #444; }

/* Formulario */
.cv-form { margin-top: 10px; }
.cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cv-field { display: flex; flex-direction: column; margin-bottom: 14px; }

.cv-field label { font-weight: 600; color: #222; margin-bottom: 6px; }
.cv-field label span { color: #c33; margin-left: 4px; }

/* Inputs estilo línea inferior (minimal A) */
.cv-field input[type="text"],
.cv-field input[type="email"],
.cv-field input[type="tel"],
.cv-field input[type="file"],
.cv-field textarea {
  border: none;
  border-bottom: 2px solid rgba(0,0,0,0.12);
  padding: 10px 6px;
  background: transparent;
  outline: none;
  transition: border-color .2s ease;
  font-size: 1rem;
  color: #222;
}
.cv-field textarea { resize: vertical; min-height: 110px; }
.cv-field input:focus,
.cv-field textarea:focus { border-bottom-color: #0072BB; }

.hint { font-size: .85rem; color: #666; margin-top: 6px; }

/* Consentimiento */
.cv-consent .checkbox { display: flex; align-items: center; gap: 10px; color: #444; font-size: .95rem; }

/* Acciones */
.cv-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.btn-primary {
  background: #0072BB; color: #fff; border: none; border-radius: 10px;
  padding: 12px 22px; font-weight: 700; cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(0,114,187,.25);
}
.btn-primary:hover { background: #0464a2; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.form-state { color: #444; font-size: .95rem; }

/* ===== MODAL (estilo empresarial azul) ===== */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: none; align-items: center; justify-content: center;
  z-index: 999;
}
.modal.is-open { display: flex; }
.modal__dialog {
  width: min(520px, 92%);
  background: #0072BB;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  padding: 28px 22px 22px;
  position: relative;
  text-align: center;
}
.modal__logo {
  width: 160px; height: auto; display: block; margin: 0 auto 8px;
  filter: brightness(0) invert(1); /* si tu logo es oscuro, se invierte a blanco */
}
.modal__title { font-size: 1.4rem; margin: 8px 0 6px; }
.modal__text  { color: #eaf5ff; margin-bottom: 16px; }
.modal__close {
  position: absolute; top: 8px; right: 12px;
  background: transparent; border: none; color: #fff; font-size: 24px; cursor: pointer;
}
.btn-secondary {
  background: #fff; color: #0a4f79; border: none; border-radius: 8px;
  padding: 10px 18px; font-weight: 700; cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .cv-grid { grid-template-columns: 1fr; }
  .cv-side { max-height: 340px; }
}
@media (max-width: 768px) {
  .cv-row { grid-template-columns: 1fr; }
}


/* CTA STICKY - AYUDA CV */
.cta-sticky-cv {
  position: fixed;
  right: 20px;
  bottom: 110px; /* justo encima del botón WhatsApp */
  background: var(--color-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 200;
}

.cta-sticky-cv:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cta-sticky-cv {
    left: 20px;
    right: 20px;
    bottom: 95px;
    text-align: center;
    justify-content: center;
  }
}
