/* =========================================================
   Resiliencia Consultora RRHH — estilos.css
   Línea editorial: sobria, corporativa, profesional.
   Bordó como color principal, magenta solo como apoyo puntual.
   ========================================================= */

:root {
  /* Color */
  --color-plum: #5C1F45;
  --color-plum-dark: #33122A;
  --color-plum-darker: #23091D;
  --color-accent: #93265B;
  /* magenta de apoyo, uso puntual */
  --color-ink: #221D20;
  --color-text-soft: #58494F;
  --color-paper: #FFFFFF;
  --color-surface: #F5F4F5;
  /* gris claro */
  --color-line: #E4E0E2;
  --color-success: #2E6B4F;
  --color-error: #A3323A;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --wrap-width: 1120px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-card: 0 16px 32px -22px rgba(34, 29, 32, 0.28);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.5em;
  line-height: 1.18;
  color: var(--color-plum-dark);
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--color-plum);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-plum);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 100;
}

.skip-link:focus {
  left: 1em;
  top: 1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  font-weight: 600;
  margin-bottom: 0.6em;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
}

.section-head p {
  color: var(--color-text-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.9em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--color-plum-dark);
  color: #fff;
}

.btn-light {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-plum);
}

.btn-light:hover {
  background: #a83e71;
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-plum-dark);
  border-color: var(--color-plum-dark);
}

.btn-outline:hover {
  background: var(--color-plum-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-plum);
  border-color: var(--color-plum);
}

.btn-ghost:hover {
  background: var(--color-plum);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1.05em 2.5em;
  font-size: 1.02rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 51;
  background: var(--color-surface);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  height: 80px;
  width: auto;
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--color-plum-dark);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  color: var(--color-text-soft);
  text-transform: uppercase;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-ink);
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  border-bottom-color: var(--color-plum);
  color: var(--color-plum);
}

.nav a.nav-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 0.55em 1.3em;
  border-radius: var(--radius);
  border-bottom: none;
}

.nav a.nav-cta:hover {
  background: var(--color-plum-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 100%;
  height: 2px;
  background: var(--color-plum-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (imagen de fondo + overlay + fixed) ---------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  color: #1F0A17;
  overflow: hidden;
  background-image:
    linear-gradient(125deg, rgba(243, 212, 231, 0.75) 100%, rgba(235, 182, 211, 0.75) 45%, rgba(243, 178, 214, 0.75) 0%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 820px) {
  .hero {
    background-attachment: scroll;
    min-height: 78vh;
  }
}

.site-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-pattern svg {
  width: 100%;
  height: 100%;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero-inner {
  position: relative;
  max-width: 620px;
  padding: 6rem 0;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  color: #961163;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 0.3em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-bottom: 1.1em;
}

.hero-lead {
  font-size: 1.02rem;
  color: #422938;
  max-width: 46ch;
  /* font-weight: 500; Un toque de grosor extra para mejorar la lectura sobre color */
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* ---------- Quiénes somos ---------- */
.about {
  background-image:
    linear-gradient(125deg, rgba(243, 212, 231, 0.75) 100%, rgba(235, 182, 211, 0.75) 45%, rgba(243, 178, 214, 0.75) 0%);
}

.about-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  color: var(--color-plum-dark);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.about-inner p {
  color: var(--color-text-soft);
  font-size: 1.03rem;
}

.about-rule {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 1.4rem;
  border-radius: 2px;
}

/* ---------- Servicios ---------- */
.services {
  background-image:
    linear-gradient(125deg, rgba(243, 212, 231, 0.75) 100%, rgba(235, 182, 211, 0.75) 45%, rgba(243, 178, 214, 0.75) 0%);
}

.services h2 {
  color: var(--color-plum-dark);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.service-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.service-group h3 {
  font-size: 1.05rem;
  color: var(--color-plum);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-plum);
  margin-bottom: 1.4rem;
}

.service-list {
  display: grid;
  gap: 0.9rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.service-item .mark {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-plum);
  margin-top: 0.5em;
}

.service-item span.label {
  font-size: 0.96rem;
  color: var(--color-ink);
  font-weight: 500;
}

/* ---------- Bolsa de empleo ---------- */
.jobbank {
  background-image:
    linear-gradient(125deg, rgba(243, 212, 231, 0.75) 100%, rgba(235, 182, 211, 0.75) 45%, rgba(243, 178, 214, 0.75) 0%);
  /* color: #fff; */
}

.jobbank-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.jobbank h2 {
  color: var(--color-plum-dark);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.jobbank p {
  color: var(--color-text-soft);
  font-size: 1.03rem;
}

.jobbank .btn {
  margin-top: 0.5rem;
}

/* ---------- Contacto ---------- */
.contact {
  background-image:
    linear-gradient(125deg, rgba(243, 212, 231, 0.75) 100%, rgba(235, 182, 211, 0.75) 45%, rgba(243, 178, 214, 0.75) 0%);
}

.contact h2 {
  color: var(--color-plum-dark);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; /* Un poco más de espacio entre bloques */
}

.contact-item {
  background: #ffffff;
  border: 2px solid rgba(92, 31, 69, 0.14); /* Contorno sutil en el bordó de la marca */
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -10px rgba(92, 31, 69, 0.05); /* Sombra suave de base */
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-item:hover {
  background: rgba(147, 38, 91, 0.14);
  box-shadow: 0 16px 36px -12px rgba(147, 38, 91, 0.18); /* Sombra más brillante */
  transform: translateY(-4px); /* Sutil elevación tridimensional */
}

.contact-item .label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-soft);
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-item .value {
  font-weight: 600;
  color: var(--color-plum-dark);
  font-size: 0.95rem;
  word-break: break-word;
  line-height: 1.4;
}

/* El icono SVG en sí */
.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--color-plum); /* Tu bordó principal */
}

/* Contenedor circular del icono */
.contact-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(147, 38, 91, 0.08); /* Fondo rosa pastel muy suave */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: background-color 0.25s ease;
}

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(14, 14, 14, 0.95);
  color: #E8E6E7;
  /* antes: #D8C2CF */
  padding: 1.25rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand .brand-mark {
  height: 70px;
}

.footer-brand .brand-name {
  color: #fff;
  font-size: 1rem;
}

.footer-brand .brand-sub {
  color: #C9C6C8;
  /* antes: #C79CB3 */
}

.footer-links h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.7rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #D5D2D4;
  /* antes: #DFC2D4 */
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.footer-meta-wrap {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-meta {
  padding-top: 1.5rem;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer-meta > span {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.footer-meta #anio {
  display: inline;
  width: auto;
}

.footer-meta a {
  display: inline-block;
  color: #D5D2D4;
}

.footer-meta a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  overflow-wrap: anywhere;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   Formulario — enviar-cv.html
   ========================================================= */
.form-hero {
  /* background: var(--color-surface); */
  /* background: transparent; */
  background-image: linear-gradient(125deg, rgba(243, 212, 231, 0.75) 100%, rgba(235, 182, 211, 0.75) 45%, rgba(243, 178, 214, 0.75) 0%);
  border-bottom: 1px solid transparent !important;
}

.form-hero-inner {
  max-width: 640px;
  padding: 3.5rem 0 2.5rem;
}

.form-hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
}

.form-hero p {
  color: var(--color-text-soft);
  max-width: 50ch;
}

.form-page {
  background-image: linear-gradient(125deg, rgba(243, 212, 231, 0.75) 100%, rgba(235, 182, 211, 0.75) 45%, rgba(243, 178, 214, 0.75) 0%);
}

.form-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
}

.form-aside-card {
  background: var(--color-surface);
  border: 2px solid rgba(92, 31, 69, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 12px 32px -10px rgba(92, 31, 69, 0.06);
}

.form-aside-card h2 {
  font-size: 1rem;
  color: var(--color-plum);
  margin-bottom: 0.85em;
}

.checklist {
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.checklist li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--color-plum);
  font-weight: 700;
}

/* ---------- Política de Privacidad ---------- */
.policy {
  background-image: linear-gradient(125deg, rgba(243, 212, 231, 0.75) 100%, rgba(235, 182, 211, 0.75) 45%, rgba(243, 178, 214, 0.75) 0%);
}

.policy-content {
  max-width: 760px;
}

.policy-updated {
  color: var(--color-text-soft);
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.policy-content h2 {
  font-family: var(--font-display);
  color: var(--color-plum-dark);
  font-size: 1.25rem;
  margin: 2.2rem 0 0.75rem;
}

.policy-content h2:first-of-type {
  margin-top: 0;
}

.policy-content p {
  color: var(--color-text-soft);
  margin-bottom: 0.9rem;
}

.policy-content a {
  color: var(--color-accent);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.policy-list {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
  color: var(--color-text-soft);
  list-style: disc;
}

.cv-form {
  background: #fff;
  border: 2px solid rgba(92, 31, 69, 0.16);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  box-shadow: 0 12px 32px -10px rgba(92, 31, 69, 0.06);
  display: grid;
  gap: 1.35rem;
  transition: border-color 0.3s ease;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.35rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0.72em 0.9em;
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--color-surface);
  color: var(--color-ink);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-plum);
  background: #fff;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%235C1F45' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  padding-right: 2.4em;
}

.field.invalid input,
.field.invalid select {
  border-color: var(--color-error);
  background: #FCF0F1;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  margin: 0;
}

.field-error {
  font-size: 0.8rem;
  color: var(--color-error);
  margin: 0;
  min-height: 1.1em;
}

.file-field {
  position: relative;
}

.file-field input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-label {
  display: flex;
  align-items: stretch;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.file-label-text {
  flex: 1;
  padding: 0.72em 0.9em;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-label-btn {
  flex: none;
  padding: 0.72em 1.1em;
  background: #fff;
  border-left: 1px solid var(--color-line);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--color-plum);
}

.field-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.6rem;
}

.field-checkbox input {
  margin-top: 0.3em;
  width: 16px;
  height: 16px;
  accent-color: var(--color-plum);
}

.field-checkbox label {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-text-soft);
}

.field-checkbox .field-error {
  grid-column: 1 / -1;
}

.form-status {
  border-radius: var(--radius);
  padding: 0.9em 1.1em;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.success {
  background: #E7F2EC;
  color: var(--color-success);
  border: 1px solid #BFDDCB;
}

.form-status.error {
  background: #FCEEEE;
  color: var(--color-error);
  border: 1px solid #F0C6C8;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {

  .service-groups,
  .form-page-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .contact-row {
    grid-template-columns: 1fr; /* Se apilan verticalmente en móviles */
    gap: 1.25rem;
  }

  /* El footer pasa de 3 columnas a 1 sola columna, ordenada */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    flex: none;
  }

  .header-inner {
    gap: 0.75rem;
  }

  /* Logo y texto de marca un poco más chicos para que entren cómodos
     junto al botón de menú en pantallas angostas */
  .brand-mark {
    height: 56px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.6rem;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.open {
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 24px 1.25rem;
  }

  .nav ul li {
    width: 100%;
  }

  .nav a {
    display: block;
    padding: 0.85em 0;
    border-bottom: 1px solid var(--color-line);
  }

  .nav a.nav-cta {
    margin-top: 0.75em;
    text-align: center;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 4.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }
}

@media (max-width: 600px) {
  /* Footer móvil: composición vertical inspirada en el ejemplo,
     manteniendo la identidad visual de Resiliencia */
  .site-footer {
    padding: 2.75rem 0 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding-bottom: 2.25rem;
    text-align: left;
  }

  .footer-inner > div {
    width: 100%;
  }

  .footer-brand {
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .footer-brand .brand-mark {
    height: 72px;
  }

  .footer-brand .brand-name {
    font-size: 1.08rem;
  }

  .footer-brand .brand-sub {
    font-size: 0.68rem;
  }

  .footer-inner > div:first-child > br {
    display: none;
  }

  .footer-inner > div:first-child > div:last-child {
    margin-top: 1.15rem;
  }

  .footer-inner > div:first-child p {
    max-width: 34rem;
    margin: 0;
    color: #BDB9BC;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .footer-inner h4 {
    margin: 0 0 1.15rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0;
  }

  .footer-links {
    gap: 0.9rem;
  }

  .footer-links a,
  .footer-social {
    justify-content: flex-start;
    color: #C9C6C8;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .footer-links svg,
  .footer-social svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
  }

  .footer-social {
    margin-top: 0;
    margin-bottom: 0.9rem;
    align-items: flex-start;
  }

  .footer-meta-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .footer-meta {
    padding-top: 1.5rem;
    margin-top: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .footer-meta > span {
    display: block;
  }

  .footer-meta a {
    color: #D5D2D4;
  }

  .contact-row {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3.5rem 0;
  }

  .wrap {
    padding: 0 18px;
  }

  .cv-form {
    padding: 1.5rem;
  }

  .brand-mark {
    height: 46px;
  }

  .header-inner .brand-sub {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .btn-lg {
    width: 100%;
  }

  .footer-brand .brand-mark {
    height: 64px;
  }
}

/* ---------- Nuevos Estilos para un Formulario Llamativo ---------- */

/* Alinear etiquetas e iconos en fila */
.field label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem; /* Separación sutil entre icono y texto */
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-plum-dark); /* Color oscuro elegante */
}

/* Dimensiones y color de los iconos vectoriales */
.field-icon {
  width: 17px;
  height: 17px;
  color: var(--color-accent); /* Magenta de apoyo dinámico */
  flex-shrink: 0;
}

/* Ajustes de diseño de los inputs (Campos más estilizados) */
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0.85em 1em; /* Un poco más de altura interna */
  background: #ffffff; /* Fondo blanco para mayor contraste */
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Efecto Contorno Premium y Sombra Llamativa al hacer foco en un campo */
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-plum); /* Contorno en el bordó corporativo */
  background: #ffffff;
  /* Sombra perimetral suave difuminada en el color de la marca */
  box-shadow: 0 0 0 4px rgba(92, 31, 69, 0.12);
}

/* Efecto mejorado también en el área interactiva de subir archivos */
.file-field:hover .file-label {
  border-color: var(--color-plum);
}
.field input[type="file"]:focus ~ .file-label {
  box-shadow: 0 0 0 4px rgba(92, 31, 69, 0.12);
  border-color: var(--color-plum);
}

.cv-form:focus-within {
  border-color: rgba(92, 31, 69, 0.35);
}


/* =========================================================
   Selector progresivo de perfil laboral
   ========================================================= */
.career-section {
  min-width: 0;
  margin: 0.35rem 0 0.15rem;
  padding: 0;
  border: 0;
}

.career-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.career-heading-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--color-plum);
  background: rgba(92, 31, 69, 0.08);
}

.career-heading-icon svg {
  width: 22px;
  height: 22px;
}

.career-heading legend {
  padding: 0;
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  color: var(--color-plum-dark);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

.career-heading p {
  margin: 0;
  max-width: 58ch;
  color: var(--color-text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.career-interests {
  display: grid;
  gap: 0.9rem;
}

.interest-block {
  position: relative;
  min-width: 0;
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid #e5d9e0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px -24px rgba(47, 17, 38, 0.8);
}

.interest-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, var(--color-plum), var(--color-accent));
}

.interest-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.interest-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #f6edf2;
  color: var(--color-plum);
  font-size: 0.76rem;
  font-weight: 700;
}

.interest-main-label {
  color: var(--color-text-soft);
  font-size: 0.76rem;
}

/* Importante: minmax(0,1fr) + min-width:0 evita que los selects
   se monten uno encima del otro en escritorio. */
.interest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 2rem;
  row-gap: 1rem;
}

.interest-grid > .field,
.interest-block .field {
  min-width: 0;
}

.interest-block select,
.interest-block input[type="text"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.interest-block select:disabled,
.interest-block input:disabled {
  cursor: not-allowed;
  color: #8d858a;
  background-color: #f5f3f4;
}

.position-field {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee6ea;
}

.position-field.is-locked {
  opacity: 0.72;
}

.optional-label {
  color: var(--color-text-soft);
  font-size: 0.78rem;
  font-weight: 400;
}

.interest-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
}

.btn-add-interest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid #d9c4d0;
  border-radius: 10px;
  background: #fff;
  color: var(--color-plum);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-add-interest svg {
  width: 17px;
  height: 17px;
}

.btn-add-interest:hover {
  border-color: var(--color-plum);
  background: #fbf5f8;
}

.btn-add-interest:disabled {
  display: none;
}

.interest-counter {
  color: var(--color-text-soft);
  font-size: 0.78rem;
}

.btn-remove-interest {
  border: 0;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  background: transparent;
  color: #9a3d4c;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-remove-interest:hover {
  background: #fff0f2;
}

@media (max-width: 700px) {
  .interest-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .interest-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-add-interest {
    width: 100%;
  }

  .interest-counter {
    text-align: center;
  }
}

/* Corrección definitiva del checkbox de Política de Privacidad */
.cv-form .field-checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 4px;
  align-items: start;
}

.cv-form .field-checkbox input[type="checkbox"] {
  grid-column: 1;
  grid-row: 1;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
}

.cv-form .field-checkbox > label {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
  line-height: 1.5;
}

.cv-form .field-checkbox > label a {
  display: inline;
}

.cv-form .field-checkbox .field-error {
  grid-column: 2;
  grid-row: 2;
}

/* ---------- Cabecera fija en móvil ---------- */
@media (max-width: 820px) {
  body {
    padding-top: 78px;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    z-index: 1000;
  }
}

/* =========================================================
   Correcciones móviles finales — CV y Política de Privacidad
   Evita que nombres largos de archivos o textos del checkbox
   ensanchen el formulario en navegadores móviles.
   ========================================================= */
.cv-form,
.cv-form .field,
.cv-form .file-field,
.cv-form .file-label,
.cv-form .field-checkbox {
  min-width: 0;
  max-width: 100%;
}

.cv-form .file-label {
  width: 100%;
}

.cv-form .file-label-text {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cv-form .file-label-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cv-form .file-field input[type="file"] {
  max-width: 100%;
}

.cv-form .field-checkbox > label {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.cv-form .field-checkbox > label a {
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .cv-form .file-label-btn {
    padding-left: 0.8em;
    padding-right: 0.8em;
  }
}

/* =========================================================
   FIX DEFINITIVO — selector de CV en móvil
   Impide que el nombre nativo de un archivo largo altere
   el ancho intrínseco del formulario.
   ========================================================= */
.cv-form .file-field {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.cv-form .file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.cv-form .file-label {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  cursor: pointer;
}

.cv-form .file-label-text {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cv-form .file-label-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}


/* =========================================================
   BLINDAJE MÓVIL — enviar CV
   Mantiene el layout móvil en dispositivos táctiles aunque
   Chrome altere temporalmente el layout viewport.
   ========================================================= */
@media (max-device-width: 900px), (hover: none) and (pointer: coarse) {
  html,
  body {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .wrap,
  .form-hero-inner,
  .form-page-grid,
  .form-intro,
  .cv-form,
  .career-section,
  .career-interests,
  .interest-block,
  .interest-grid,
  .interest-grid > .field,
  .field-row,
  .field,
  .file-field,
  .file-label,
  .field-checkbox,
  .footer-inner {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .form-page-grid,
  .field-row,
  .interest-grid,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .form-page-grid {
    gap: 2.25rem !important;
  }

  .field-row,
  .interest-grid {
    gap: 1rem !important;
  }

  .cv-form input,
  .cv-form select,
  .cv-form button,
  .cv-form label {
    min-width: 0;
    max-width: 100%;
  }
}


/* =========================================================
   RECONSTRUCCIÓN /ENVIAR-CV — 2026-10-02
   Layout independiente, mobile-first y sin depender del grid
   general del sitio. Conserva la identidad visual de Resiliencia.
   ========================================================= */
.cv-rebuild-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(125deg, rgba(243,212,231,.75) 100%, rgba(235,182,211,.75) 45%, rgba(243,178,214,.75) 0%);
}

.cv-rebuild-shell {
  width: min(100% - 32px, 920px);
  max-width: 920px;
  min-width: 0;
  margin-inline: auto;
}

.cv-rebuild-hero {
  width: 100%;
  padding: 3.2rem 0 2rem;
}

.cv-rebuild-hero-inner { max-width: 920px; }
.cv-rebuild-hero .eyebrow { margin-bottom: .45rem; }
.cv-rebuild-hero h1 {
  margin: 0 0 .65rem;
  color: var(--color-plum-dark);
  font-size: clamp(2rem, 7vw, 2.65rem);
}
.cv-rebuild-hero p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--color-text-soft);
}

.cv-rebuild-section {
  width: 100%;
  padding: 0 0 4.5rem;
}

/* Una sola columna por defecto: esta es la clave del nuevo layout. */
.cv-rebuild-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cv-rebuild-intro,
.cv-rebuild-form,
.cv-rebuild-form > *,
.cv-rebuild-form .field,
.cv-rebuild-form .career-section,
.cv-rebuild-form .career-interests,
.cv-rebuild-form .interest-block,
.cv-rebuild-form .interest-grid,
.cv-rebuild-form .file-field,
.cv-rebuild-form .file-label {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.cv-rebuild-intro .form-aside-card {
  padding: 1.35rem 1.45rem;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(92,31,69,.16);
  border-radius: 12px;
  box-shadow: 0 10px 28px -22px rgba(51,18,42,.35);
}

.cv-rebuild-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  background: #fff;
  border: 1px solid rgba(92,31,69,.18);
  border-radius: 14px;
  box-shadow: 0 18px 42px -28px rgba(51,18,42,.4);
}

/* Nada dentro del formulario puede imponer su ancho intrínseco. */
.cv-rebuild-form input:not([type="checkbox"]):not([type="file"]),
.cv-rebuild-form select,
.cv-rebuild-form textarea,
.cv-rebuild-form button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.cv-rebuild-form .field-row,
.cv-rebuild-form .interest-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* El input nativo queda fuera del flujo; el label visible es el control. */
.cv-rebuild-form .file-field {
  position: relative;
  overflow: hidden;
}
.cv-rebuild-form .file-field input[type="file"] {
  position: fixed !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}
.cv-rebuild-form .file-label {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  cursor: pointer;
}
.cv-rebuild-form .file-label-text {
  display: block;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cv-rebuild-form .file-label-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cv-rebuild-form .field-checkbox {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: .65rem;
  align-items: start;
}
.cv-rebuild-form .field-checkbox label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.cv-rebuild-form .field-checkbox .field-error { grid-column: 1 / -1; }

/* Solo en pantallas realmente amplias se usan dos columnas internas. */
@media (min-width: 760px) {
  .cv-rebuild-shell { width: min(100% - 48px, 920px); }
  .cv-rebuild-form .field-row,
  .cv-rebuild-form .interest-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 1.25rem;
  }
}

/* En teléfonos táctiles siempre una columna, aunque el navegador reporte
   temporalmente un layout viewport de escritorio. */
@media (hover: none) and (pointer: coarse) {
  .cv-rebuild-shell {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }
  .cv-rebuild-form .field-row,
  .cv-rebuild-form .interest-grid {
    display: flex !important;
    flex-direction: column !important;
  }
}


/* =========================================================
   AJUSTES VISUALES CV REBUILD v2
   Fondo translúcido + patrón visible + header siempre fijo
   + tarjeta “Antes de enviarlo” más compacta.
   ========================================================= */

/* El patrón vuelve a verse detrás del rosa, como en el index. */
.cv-rebuild-page {
  position: relative;
  z-index: 1;
  background: rgba(243, 212, 231, 0.58);
}

.cv-rebuild-hero,
.cv-rebuild-section {
  background: transparent;
}

/* Header/barra superior siempre visible al hacer scroll. */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

body {
  padding-top: 81px;
  background-color: #f3d4e7;
}

/* “Antes de enviarlo” más chico y liviano. */
.cv-rebuild-intro {
  width: 100%;
}

.cv-rebuild-intro .form-aside-card {
  width: min(100%, 720px);
  margin-inline: auto;
  padding: .9rem 1.1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .70);
}

.cv-rebuild-intro .form-aside-card h2 {
  margin-bottom: .45rem;
  font-size: .95rem;
}

.cv-rebuild-intro .checklist {
  gap: .28rem;
}

.cv-rebuild-intro .checklist li {
  font-size: .82rem;
  line-height: 1.4;
}

@media (max-width: 720px) {
  body {
    padding-top: 78px;
  }

  .cv-rebuild-hero {
    padding-top: 2.35rem;
  }

  .cv-rebuild-intro .form-aside-card {
    padding: .8rem .95rem;
  }
}

/* =========================================================
   AJUSTE COMPACTO CV REBUILD v3
   Reduce el tamaño visual de la tarjeta del formulario sin
   comprometer legibilidad ni comodidad táctil en móvil.
   ========================================================= */
.cv-rebuild-layout {
  width: min(100% - 32px, 760px);
  max-width: 760px;
  margin-inline: auto;
  gap: 1rem;
}

.cv-rebuild-form {
  padding: 1.45rem 1.65rem;
  gap: 1rem;
  border-radius: 12px;
}

.cv-rebuild-form .field {
  gap: .3rem;
}

.cv-rebuild-form .field-row,
.cv-rebuild-form .interest-grid {
  gap: .85rem;
}

.cv-rebuild-form input:not([type="checkbox"]):not([type="file"]),
.cv-rebuild-form select {
  min-height: 44px;
  padding-top: .58rem;
  padding-bottom: .58rem;
}

.cv-rebuild-form .career-section {
  padding: 1rem;
}

.cv-rebuild-form .interest-block {
  padding: .9rem;
}

@media (max-width: 720px) {
  .cv-rebuild-layout {
    width: min(100% - 28px, 760px);
  }

  .cv-rebuild-form {
    padding: 1.15rem 1rem;
    gap: .9rem;
    border-radius: 10px;
  }
}
