:root {
  --bg: #f1efec;
  --surface: #faf6f6;
  --ink: #1a1814;
  --ink-soft: #6b6560;
  --accent: #5ab5d3;
  --border: #ddd9d2;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --background: green;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-image: url("fondo.jpg");
  background-size: cover;      /* ocupa toda la pantalla */
  background-position: center; /* centra la imagen */
  background-repeat: no-repeat;
  background-attachment: fixed; /* opcional */
  color: black;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 78px;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* NAV */
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 800;
}

/* MENU */
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 99px;
  font-weight: 500;
  font-size: 1rem;
  transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent);
  color: rgb(255, 255, 255);
}

/* BOTÓN */
.btn-contact {
  padding: 10px 22px;
  border-radius: 99px;
  background: var(--accent);
  color: white;
}

/* FIX ESTABILIDAD */
header,
.nav-inner,
.nav-links {
  flex-shrink: 0;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 800;
  letter-spacing: -.6px;
  display: flex; align-items: center; gap: 10px;
  -webkit-font-smoothing: antialiased;
}
.logo-img{
  height:90px;
  width:auto;
  display:block;
  object-fit:contain;
}
.logo-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.logo-dot svg { width: 16px; height: 16px; fill: #fff; }
.nav-links {
  display:flex;
  gap:22px;
  list-style:none;
}
.nav-links a {
  font-size: 1rem; font-weight: 500;
  padding: 8px 18px; border-radius: 99px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: #5ab5d3;
  color: white;
}

.btn-contact {
  font-size: 1rem; font-weight: 600;
  padding: 10px 22px; border-radius: 99px;
  background: var(--accent); color: #fff; border: none;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-contact:hover { opacity: .87; transform: translateY(-1px); }

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  max-width: 1200px;
  margin: 20px auto;
  padding: 72px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent2); background: #e5f0ed; padding: 6px 16px; border-radius: 99px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -.04em; margin-bottom: 20px;
  -webkit-font-smoothing: antialiased;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.2rem; color: var(--ink-soft);
  line-height: 1.7; max-width: 480px; margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-size: 1.05rem; font-weight: 600;
  padding: 16px 32px; border-radius: 99px; border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(196,92,46,.35); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  font-size: 1.05rem; font-weight: 500;
  padding: 16px 32px; border-radius: 99px;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}
.btn-secondary:hover { border-color: var(--accent); background: #fdf4f0; }

/* hero stat cards */
.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat-card {
  background: rgba(255,255,255,0.75);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card:nth-child(1) { grid-column: span 2; background: var(--accent); color: #fff; border-color: transparent; }
.stat-card:nth-child(1) .stat-label { color: rgba(255,255,255,.7); }
.stat-num {
  font-family: var(--font-head);
  font-size: 3rem; font-weight: 700; line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -.03em;
  -webkit-font-smoothing: antialiased;
}
.stat-label { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.stat-icon { font-size: 2.2rem; margin-bottom: 12px; }

/* ─── STATS BAR ──────────────────────────────────────── */
.stats-bar {
  background: rgba(255,255,255,0.75);
  padding: 28px 24px;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px;
}
.stats-item { text-align: center; color: black; }
.stats-item .num {
  font-family: var(--font-head);
  font-size: 2.6rem; font-weight: 700; color: var(--accent3);
  letter-spacing: -.03em;
  -webkit-font-smoothing: antialiased;
}
.stats-item .desc { font-size: .95rem; color: black; margin-top: 2px; }

/* ─── SEARCH SECTION ─────────────────────────────────── */
.search-section {
  max-width: 1200px; margin: 56px auto 0;
  padding: 0 24px; scroll-margin-top: 115px;
}
.search-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin-bottom:40px;
}
.search-header h2{
  width:100%;
  text-align:center;
}
.search-header h2 {
  font-family: var(--font-head);
  font-size: 1.9rem; font-weight: 700;
  letter-spacing: -.02em;
  color: white;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  -webkit-font-smoothing: antialiased;
}
.results-count {
  font-size: 1rem; color: var(--ink-soft);
  background: rgba(255,255,255,0.75); padding: 8px 16px; border-radius: 99px;
}

/* search bar */
.search-bar {
  display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1; min-width: 240px;
  position: relative;
}
.search-input-wrap svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; stroke: var(--ink-soft); fill: none;
  stroke-width: 2; pointer-events: none;
}
.search-input {
  width: 100%; padding: 16px 20px 16px 50px;
  border: 1.5px solid var(--border); border-radius: 99px;
  background: var(--surface); font-family: inherit; font-size: 1.05rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--ink);
}
.search-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(196,92,46,.12);
}
.search-input::placeholder { color: #b5b0aa; }
select.filter-select {
  padding: 16px 20px; border: 1.5px solid var(--border);
  border-radius: 99px; background: var(--surface);
  font-family: inherit; font-size: 1rem; color: var(--ink);
  cursor: pointer; min-width: 160px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6560' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  transition: border-color var(--transition);
}
select.filter-select:focus { outline: none; border-color: var(--accent); }

/* filter chips */
.filter-chips {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.chip {
  padding: 7px 16px; border-radius: 99px;
  font-size: .95rem; font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--ink-soft);
  cursor: pointer; transition: all var(--transition);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.chip.clear-all {
  border-color: transparent; background: var(--tag-bg);
  color: var(--ink-soft);
}
.chip.clear-all:hover { background: #e4dfd6; color: var(--ink); }

/* ─── GRID DE TARJETAS ───────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  animation: fadeUp .35s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
}
.card-type {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 99px;
}
.type-universidad { background: #ffffff; color: #2354b8; }
.type-terciario   { background: #fef3e2; color: #b86a0e; }
.type-tecnica     { background: #fcfdfd; color: #1a7a56; }
.type-formacion   { background: #fefdff; color: #7c38b8; }

.card-fav {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.card-fav svg { width: 15px; height: 15px; fill: none; stroke: var(--ink-soft); stroke-width: 2; }
.card-fav:hover { border-color: var(--accent); }
.card-fav.saved svg { fill: var(--accent); stroke: var(--accent); }

.card-inst {
  font-size: .9rem; color: var(--ink-soft); font-weight: 500;
  margin-bottom: 6px; display: flex; align-items: center; gap: 5px;
}
.card-inst svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700;
  line-height: 1.28; margin-bottom: 10px;
  flex: 1;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
.card-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: .9rem; color: var(--ink-soft);
  margin-bottom: 16px;
}
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-meta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.card-areas {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px;
}
.area-tag {
  font-size: .83rem; padding: 4px 12px; border-radius: 99px;
  background: var(--tag-bg); color: var(--ink-soft); font-weight: 500;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 14px;
}
.card-footer .since { font-size: .9rem; color: var(--ink-soft); }
.btn-ver {
  font-size: .95rem; font-weight: 600; color: var(--accent);
  display: flex; align-items: center; gap: 5px;
  background: none; border: none;
  transition: gap var(--transition);
}
.btn-ver:hover { gap: 9px; }
.btn-ver svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* empty state */
.empty-state {
  grid-column: 1/-1;
  text-align: center; padding: 64px 24px;
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 {
  font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 8px;
}
.empty-state p { color: var(--ink-soft); font-size: 1.1rem; }

/* ─── MODAL ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,24,20,.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 580px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 32px;
  transform: scale(.95) translateY(16px);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 24px 80px rgba(26,24,20,.2);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.modal-header h2 {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; line-height: 1.3;
}
.modal-close {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--border); background: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background var(--transition);
}
.modal-close:hover { background: var(--tag-bg); }
.modal-close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2; fill: none; }
.modal-body { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); }
.modal-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 20px 0;
}
.modal-item {
  background: var(--bg); border-radius: var(--radius);
  padding: 14px 16px;
}
.modal-item .label { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); font-weight: 600; margin-bottom: 4px; }
.modal-item .value { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.btn-web {
  flex: 1; padding: 15px; border-radius: 99px; border: none;
  background: var(--accent); color: #fff;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity var(--transition);
}
.btn-web:hover { opacity: .87; }
.btn-web svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-waze {
  flex: 1; padding: 15px; border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent; color: var(--ink);
  font-family: inherit; font-size: 1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: border-color var(--transition), background var(--transition);
}
.btn-waze:hover { border-color: var(--accent); background: #fdf4f0; }
.btn-waze svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  margin-top: 80px;
  background: linear-gradient(135deg, #1a3a5c 0%, #26a8d7 100%);
  padding: 48px 24px 36px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 40px;
  align-items: center; justify-content: space-between;
}
.footer-logos {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-logo-tv {
  height: 86px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer-logo-muni {
  height: 86px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.3);
}
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { font-size: .95rem; color: rgba(255,255,255,.75); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .85rem; color: rgba(255,255,255,.5); }
@media(max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-center { align-items: center; }
  .footer-links { justify-content: center; }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 40px 16px 32px; gap: 32px; }
  .hero-visual { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
  .nav-links { display: none; }
  .search-section { padding: 0 16px; }
  .filter-chips { gap: 6px; }
  .modal-row { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ─── LOADING SKELETON ───────────────────────────────── */
.skeleton-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 220px;
}
.skel {
  background: linear-gradient(90deg, #e8e3db 25%, #f0ebe3 50%, #e8e3db 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-title { height: 18px; width: 60%; margin-bottom: 10px; }
.skel-sub   { height: 13px; width: 80%; margin-bottom: 6px; }
.skel-tag   { height: 24px; width: 28%; border-radius: 99px; display: inline-block; }

/* ─── CV GUIDE ───────────────────────────────────── */
.cv-guide{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:30px;
  max-width:1200px;
  margin:40px auto;
  padding:0 20px;
}

.guide-card{
  background:var(--surface);
  border:1.5px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px;
  box-shadow:var(--shadow);
  transition:0.25s;
}

.guide-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
}

.guide-number{
  font-family:var(--font-head);
  font-size:2rem;
  color:var(--accent);
  margin-bottom:12px;
  font-weight:800;
}

.guide-card h3{
  margin-bottom:10px;
  font-family:var(--font-head);
}

.guide-card p{
  color:var(--ink-soft);
  line-height:1.7;
}

/* TEMPLATE */

.cv-template{
  margin-top:48px;
  background:var(--surface);
  border:1.5px solid var(--border);
  border-radius:var(--radius-lg);
  padding:40px;
  box-shadow:var(--shadow);
}

.template-header{
  border-bottom:1px solid var(--border);
  padding-bottom:20px;
  margin-bottom:30px;
}

.template-header h2{
  font-family:var(--font-head);
  font-size:2rem;
  margin-bottom:8px;
}

.template-header p{
  color:var(--ink-soft);
  margin-bottom:4px;
}

.template-header span{
  color:var(--accent);
  font-size:.95rem;
}

.template-block{
  margin-bottom:32px;
}

.template-block h3{
  font-family:var(--font-head);
  margin-bottom:14px;
  color:var(--accent);
}

.template-block p,
.template-block li{
  color:var(--ink-soft);
  line-height:1.7;
}

.template-item{
  margin-bottom:18px;
}

.template-item strong{
  display:block;
  margin-bottom:6px;
}

.skills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.skills span{
  background:var(--tag-bg);
  padding:8px 14px;
  border-radius:99px;
  font-size:.95rem;
  color:var(--ink);
}
/* ─── CV BUILDER ─────────────────────────────────── */

.cv-builder{
  margin-top:50px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

.builder-form{
  background:var(--surface);
  border:1.5px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px;
  box-shadow:var(--shadow);

  display:flex;
  flex-direction:column;
  gap:14px;
}

.builder-form h3{
  font-family:var(--font-head);
  margin-bottom:8px;
}

.builder-form input,
.builder-form textarea{
  width:100%;
  padding:14px 16px;
  border:1.5px solid var(--border);
  border-radius:12px;
  font-family:inherit;
  font-size:1rem;
  resize:none;
}

.builder-form textarea{
  min-height:100px;
}

.builder-form input:focus,
.builder-form textarea:focus{
  outline:none;
  border-color:var(--accent);
}

.builder-preview{
  background:var(--surface);
  border:1.5px solid var(--border);
  border-radius:var(--radius-lg);
  padding:32px;
  box-shadow:var(--shadow);
}

@media (max-width:768px){

  .cv-builder{
    grid-template-columns:1fr;
  }

}
.cv-buttons{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
/* ─── IMPRIMIR SOLO CV ───────────────────────────── */

@media print {

  body *{
    visibility:hidden;
  }

  .builder-preview,
  .builder-preview *{
    visibility:visible;
  }

  .builder-preview{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    padding:40px;
    background:white;
  }

}
.logo {
  display: flex;
  align-items: center;
}

.btn-contact{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* RESPONSIVE CELULAR */
@media (max-width:768px){

  .cv-guide{
    grid-template-columns:1fr;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    padding: 20px;
  }

  h1 {
    font-size: 28px;
    text-align: center;
  }

  p {
    font-size: 16px;
    text-align: center;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .hero{
    grid-template-columns:1fr;
    margin:10px;
    padding:24px 16px;
  }

  .hero h1{
    font-size:2.2rem;
    text-align:center;
  }

  .hero p{
    text-align:center;
    max-width:100%;
  }

  .hero-ctas{
    justify-content:center;
  }

  .hero-visual{
    grid-template-columns:1fr;
  }

  .stat-card:nth-child(1){
    grid-column:span 1;
  }

  .search-bar{
    flex-direction:column;
  }

  .search-input-wrap,
  .filter-select{
    width:100%;
  }

  .modal-actions{
    flex-direction:column;
  }

  .btn-web,
  .btn-waze{
    width:100%;
  }

  .card-footer{
    flex-direction:column;
    align-items:flex-start;
  }

  .logo-img{
    height:95px;
  }

}

.btn-detalles {
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    background: #111;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-detalles:hover {
    background: #333;
}

.modal-tags{
    display:flex;
    gap:12px;
    align-items:center;
    margin-top:20px;
    flex-wrap:wrap;
}

.area-modal{
    color:#666;
    font-size:15px;
}

.beca-modal{
    background:#fff2de;
    color:#d18b00;
    padding:8px 16px;
    border-radius:999px;
    font-weight:600;
    font-size:14px;
}

/* 1. Le damos espacio arriba a la modal para que el botón tenga su lugar */
.modal {
  position: relative; /* Clave para que el botón se posicione respecto a la modal */
  padding-top: 70px !important; /* Deja espacio libre arriba para el botón */
}

/* 2. Estilo del botón "Cerrar" arriba a la derecha */
.btn-cerrar-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  
  /* Forma de botón e interior */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  
  /* Dimensiones y diseño */
  padding: 8px 16px;
  background-color: #f1efec; /* Fondo grisáceo suave a tono con la paleta */
  color: var(--ink-soft, #6b6560);
  border: 1px solid var(--border, #ddd9d2);
  border-radius: 10px; /* Bordes redondeados sutiles */
  
  /* Tipografía */
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body), sans-serif;
  cursor: pointer;
  
  /* Transición suave para los efectos */
  transition: all 0.2s ease-in-out;
  z-index: 10;
}

/* 3. Efecto Hover (Pasar el mouse) */
.btn-cerrar-modal:hover {
  background-color: #e4e0da; /* Oscurece un toque el fondo */
  color: var(--ink, #1a1814);
  border-color: #c0b9af;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Animación sutil para el icono interno de la cruz */
.btn-cerrar-modal svg {
  transition: transform 0.2s ease;
}

.btn-cerrar-modal:hover svg {
  transform: rotate(90deg); /* Gira la cruz al pasar el mouse */
}

.menu-toggle{
  display:none;
  border:none;
  background:none;
  color:  gray;
  font-size:32px;
  cursor:pointer;
}

@media (max-width:768px){

  .menu-toggle{
    display:block;
  }

  .btn-contact{
    display:none;
  }

  .nav-inner{
    position:relative;
  }

  .nav-links{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:white;
    flex-direction:column;
    gap:0;
    box-shadow:0 10px 20px rgba(0,0,0,.1);
    z-index:999;
  }

  .nav-links.open{
    display:flex;
  }

  .nav-links li{
    width:100%;
  }

  .nav-links a{
    display:block;
    width:100%;
    text-align:center;
    padding:15px;
  }
}



