/* =====================================================================
   Jesús Daconte — CV para hoteles/hostales
   Tipografía: Manrope (titulares) + Inter (texto)
   Pantalla: landing responsive.  Impresión/PDF: CV 2 columnas (sidebar + main)
   ===================================================================== */

:root {
  --verde:        #0f5132;
  --verde-700:    #12643f;
  --verde-soft:   #e7f1ea;
  --arena:        #faf6ec;
  --arena-2:      #f1ead8;
  --ambar:        #c8881a;
  --ambar-2:      #e2a52e;
  --caraiba:      #15606e;
  --grafia:       #1d2a24;
  --grafia-soft:  #4a5a52;
  --grafia-mute:  #6f7d76;
  --linea:        #e3dccb;
  --blanco:       #ffffff;
  --radio:        14px;
  --radio-sm:     10px;
  --shadow-sm:    0 1px 3px rgba(20, 40, 30, 0.08);
  --shadow-md:    0 10px 30px rgba(20, 40, 30, 0.10);
  --shadow-lg:    0 24px 60px rgba(20, 40, 30, 0.14);
  --maxw:         1080px;
  --ff-title:     "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-sans:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--grafia);
  background: var(--arena);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--ff-title); margin: 0; }

/* ---------- CV dock: oculto en pantalla ---------- */
.cv { display: none; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 1000;
  background: var(--verde); color: #fff;
  padding: .6rem 1rem; border-radius: 8px;
}

/* ============================================================
   LANDING (pantalla)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 236, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.navbar {
  max-width: var(--maxw); margin: 0 auto; padding: .8rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-family: var(--ff-title); font-weight: 800; font-size: 1.4rem;
  letter-spacing: .03em; color: var(--verde);
}
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.6rem;
}
.nav-list a {
  font-size: .95rem; font-weight: 500; color: var(--grafia-soft);
  transition: color .15s;
}
.nav-list a:hover { color: var(--verde); }
.nav-cta, .nav-cta:hover {
  background: var(--verde); color: #fff !important;
  padding: .45rem .95rem; border-radius: 999px;
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 38px; height: 38px; border-radius: 8px; position: relative; z-index: 110;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; border-radius: 2px;
  background: var(--verde); position: absolute; left: 50%; transform: translateX(-50%);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 18px; transform: translateX(-50%) rotate(-45deg); }

/* Hero */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.4rem 3rem;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center;
}
.hero-eyebrow {
  margin: 0 0 .8rem; font-family: var(--ff-title); font-size: .9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--caraiba);
}
.hero-title {
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05;
  margin: 0 0 1.1rem; color: var(--verde); letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 1.12rem; color: var(--grafia-soft);
  max-width: 38ch; margin: 0 0 1.8rem;
}
.hero-lead strong { color: var(--grafia); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; }
.hero-meta dt { margin: 0; font-size: .92rem; color: var(--grafia-soft); font-weight: 500; }
.hero-photo { position: relative; display: grid; place-items: center; }
.hero-photo img {
  width: 100%; max-width: 420px; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radio); box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.hero-photo::after {
  content: ""; position: absolute; inset: -8% -8% auto auto;
  width: 60%; height: 60%; border-radius: 50%;
  background: radial-gradient(circle, var(--ambar-2) 0%, transparent 70%);
  opacity: .35; z-index: -1;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--verde); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--verde-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: var(--linea); color: var(--grafia); }
.btn-ghost:hover { border-color: var(--verde); color: var(--verde); }
.btn-lg { font-size: 1.05rem; padding: .95rem 1.9rem; margin-top: 1.6rem; }

/* Stats */
.stats {
  background: var(--verde); color: #fff;
  padding: 2.4rem 1.4rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem; max-width: var(--maxw); margin: 0 auto;
}
.stat { text-align: left; padding: .5rem 1rem; border-left: 2px solid rgba(255,255,255,.25); }
.stat-number {
  display: block; font-family: var(--ff-title); font-weight: 800;
  font-size: 2.6rem; line-height: 1; color: var(--ambar-2);
}
.stat-label { font-size: .92rem; opacity: .9; display: block; margin-top: .3rem; max-width: 22ch; }
.stat-label.small { font-size: .9rem; max-width: 40ch; }

/* Sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.4rem; }
.section-alt { background: var(--arena-2); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 2.4rem; }
.section-head h2 {
  font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--verde); margin: 0 0 .5rem; letter-spacing: -0.01em;
}
.section-head p { margin: 0; color: var(--grafia-soft); font-size: 1.05rem; max-width: 60ch; }

/* Timeline */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 0; top: .3rem; bottom: .3rem;
  width: 2px; background: var(--linea);
}
.job {
  position: relative; margin-bottom: 2.2rem; padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--linea);
}
.job:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.job::before {
  content: ""; position: absolute; left: -1.6rem; top: .5rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--verde); transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--arena);
}
.section-alt .job::before { box-shadow: 0 0 0 4px var(--arena-2); }
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.job-org { font-weight: 700; color: var(--caraiba); font-size: 1.05rem; }
.job-dates { font-size: .9rem; color: var(--grafia-mute); font-weight: 500; }
.job-title {
  font-weight: 700; font-size: 1.35rem;
  color: var(--verde); margin: .3rem 0 .2rem; letter-spacing: -0.01em;
}
.job-loc { font-size: .9rem; color: var(--grafia-mute); margin: 0 0 .9rem; }
.job-list { margin: 0; padding-left: 1.2rem; list-style: none; }
.job-list li {
  position: relative; padding-left: .2rem; margin-bottom: .5rem;
  color: var(--grafia-soft); font-size: .98rem;
}
.job-list li::before {
  content: ""; position: absolute; left: -1rem; top: .45rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ambar);
}
.job-secondary {
  background: var(--arena-2); padding: 1.4rem 1.4rem 0; border-radius: var(--radio);
  border: 1px dashed var(--linea); border-bottom: 1px dashed var(--linea);
}
.job-secondary::before { background: var(--grafia-mute); }

/* Skills grid */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.skill-card {
  background: #fff; border: 1px solid var(--linea);
  border-radius: var(--radio); padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.skill-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.skill-card h3 {
  font-weight: 700; font-size: 1.05rem;
  color: var(--verde); margin: 0 0 .7rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--arena-2);
}
.tag-list { list-style: none; margin: 0; padding: 0; }
.tag-list li {
  font-size: .9rem; color: var(--grafia-soft); padding: .35rem 0;
  border-bottom: 1px dotted var(--linea);
}
.tag-list li:last-child { border-bottom: 0; }
.tag-list strong { color: var(--grafia); }

/* Certifications */
.cert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.cert-list li {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-sm);
  padding: 1rem 1.2rem; box-shadow: var(--shadow-sm);
  font-size: .98rem; color: var(--grafia-soft);
}
.cert-list a:hover { color: var(--verde); }
.cert-list strong { color: var(--grafia); }

/* Contact */
.section-contact { text-align: center; }
.section-contact .section-head p { margin: 0 auto; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; max-width: 720px; margin: 0 auto 1rem;
}
.contact-item {
  display: flex; align-items: center; gap: .7rem;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-sm);
  padding: 1rem 1.2rem; box-shadow: var(--shadow-sm);
  font-weight: 500; color: var(--grafia); transition: all .2s;
}
.contact-item:hover { border-color: var(--verde); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-ic {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--verde-soft); color: var(--verde); font-weight: 700; font-style: italic;
}

/* Footer */
.site-footer {
  background: var(--verde); color: #fff; text-align: center;
  padding: 2rem 1.4rem; font-size: .9rem; opacity: .9;
}

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 2rem; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 160px; border-width: 4px; }
  .hero-photo::after { display: none; }
  .hero-content { text-align: center; }
  .hero-lead { max-width: none; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; gap: .8rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(250, 246, 236, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--linea);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; display: flex;
    transition: max-height .3s ease, padding .3s ease;
    padding: 0;
    z-index: 200;
  }
  .nav-list.open {
    max-height: 400px;
    padding: .5rem 0;
  }
  .nav-list a { padding: .85rem 1.4rem; border-bottom: 1px solid var(--linea); }
  .nav-cta { border-radius: 0; text-align: center; }
  .nav-toggle { display: block; }
}

/* ============================================================
   CV / PDF (impresión) — Layout 2 columnas
   ============================================================ */
@page {
  size: A4;
  margin: 0;
}

@media print {
  /* Reset total de la página para el PDF */
  html, body {
    background: #fff !important;
    margin: 0 !important; padding: 0 !important;
    font-size: 10pt;
    line-height: 1.45;
    color: #1d2a24;
  }

  /* Ocultar todo lo de la landing */
  .landing, .nav-toggle, .skip-link, .site-header, .site-footer { display: none !important; }

  /* Mostrar el dock del CV */
  .cv {
    display: grid;
    grid-template-columns: 70mm 1fr;
    min-height: 297mm;
    width: 210mm;
    margin: 0; padding: 0;
    border: 0; box-shadow: none;
    break-inside: auto;
  }

  /* ---------- Sidebar (columna izquierda) ---------- */
  .cv-side {
    background: #0f5132;
    color: #f3f8f4;
    padding: 8mm 7mm 6mm 9mm;
    break-inside: avoid;
    break-after: avoid;
  }
  .cv-photo {
    width: 34mm; height: 34mm; margin: 0 auto 5mm;
    border-radius: 50%; overflow: hidden;
    background: #fff;
    border: 2.5px solid #e2a52e;
  }
  .cv-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
    border-radius: 50%;
  }
  .cv-name {
    font-family: var(--ff-title);
    font-size: 14pt; font-weight: 800;
    line-height: 1.1; margin: 0 0 3mm;
    text-align: center; color: #fff;
    letter-spacing: -0.01em;
  }
  .cv-role {
    font-size: 8pt; font-weight: 600;
    text-align: center; margin: 0 0 5mm;
    color: #e2a52e; line-height: 1.35;
    text-transform: uppercase; letter-spacing: .1em;
  }
  .cv-contact, .cv-block { margin-bottom: 3.5mm; }
  .cv-block:last-child { margin-bottom: 0; }
  .cv-block-title {
    font-family: var(--ff-title);
    font-size: 8.5pt; font-weight: 800;
    text-transform: uppercase; letter-spacing: .12em;
    color: #e2a52e;
    padding-bottom: 1mm;
    margin: 0 0 1.8mm;
    border-bottom: 1px solid rgba(226,165,46,.4);
  }
  .cv-contact-list, .cv-bullets {
    list-style: none; margin: 0; padding: 0;
  }
  .cv-contact-list li, .cv-bullets li {
    font-size: 7.8pt; line-height: 1.35;
    padding: .5mm 0; color: #e7f1ea;
    word-break: break-word;
  }
  .cv-bullets strong, .cv-contact-list strong { color: #fff; }
  .cv-cert li { font-size: 7.5pt; }
  .cv-tags {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 1.2mm;
  }
  .cv-tags li {
    font-size: 7.5pt; padding: .7mm 1.8mm;
    background: rgba(255,255,255,.12);
    border-radius: 3mm; color: #fff;
  }

  /* ---------- Main (columna derecha) ---------- */
  .cv-main {
    padding: 9mm 9mm 6mm 7mm;
    break-inside: auto;
  }
  .cv-section { margin-bottom: 2.5mm; break-inside: avoid; }
  .cv-section:last-child { margin-bottom: 0; }
  .cv-title {
    font-family: var(--ff-title);
    font-size: 11pt; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em;
    color: #0f5132;
    padding-bottom: 1mm; margin: 0 0 2.5mm;
    border-bottom: 2px solid #c8881a;
  }
  .cv-intro {
    font-size: 9pt; line-height: 1.45; margin: 0;
    color: #4a5a52;
  }
  .cv-intro strong { color: #0f5132; }

  .cv-job {
    margin-bottom: 3mm; padding-bottom: 2.5mm;
    border-bottom: 1px dotted #d0c9b5;
    break-inside: avoid;
  }
  .cv-job:last-of-type { border-bottom: 0; margin-bottom: 0; }
  .cv-job-head {
    display: flex; justify-content: space-between;
    align-items: baseline; gap: 3mm; margin: 0 0 .6mm;
  }
  .cv-job-head h3 {
    font-family: var(--ff-title);
    font-size: 10pt; font-weight: 800;
    color: #12643f; letter-spacing: -0.01em;
  }
  .cv-job-dates {
    font-size: 8pt; font-weight: 600;
    color: #6f7d76; white-space: nowrap;
  }
  .cv-job-org {
    font-size: 8pt; color: #15606e; font-weight: 600;
    margin-bottom: 1.2mm;
  }
  .cv-job-list {
    list-style: none; margin: 0; padding: 0;
  }
  .cv-job-list li {
    position: relative;
    font-size: 8.4pt; line-height: 1.38;
    color: #4a5a52;
    padding-left: 3mm; margin-bottom: .8mm;
  }
  .cv-job-list li::before {
    content: "•"; position: absolute; left: 0; top: 0;
    color: #c8881a; font-weight: 700;
  }
  .cv-job-secondary {
    background: #faf6ec;
    padding: 2.5mm; border-radius: 2.5mm;
    border: 1px dashed #d0c9b5;
  }

  /* No añadir enlaces inventados */
  a[href]:after { content: ""; }
}
