/* ── Variables PVLM ────────────────────────── */
:root {
  --azul:       #0028a0;
  --azul-mid:   #0035cc;
  --azul-claro: #e8ecfa;
  --amarillo:   #f0b400;
  --amarillo-clr:#fff8e1;
  --gris-oscuro:#2d2d2d;
  --gris-medio: #6b7280;
  --gris-claro: #f4f6f9;
  --blanco:     #ffffff;
  --borde:      #dde3ed;
  --radio:      10px;
  --sombra:     0 2px 12px rgba(0,40,160,.09);
  --fuente:     'Inter', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--fuente); color: var(--gris-oscuro); background: var(--gris-claro); line-height: 1.6; }
a { color: var(--azul-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Tipografía ────────────────────────────── */
h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.15; color: var(--azul); }
h2 { font-size: 1.5rem; font-weight: 700; color: var(--azul); }
h3 { font-size: 1.1rem; font-weight: 600; color: var(--azul); }
p  { color: var(--gris-medio); }

/* ── Layout ────────────────────────────────── */
.contenedor { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.seccion    { padding: 5rem 0; }

/* ── Navbar ────────────────────────────────── */
.navbar {
  background: var(--blanco);
  border-bottom: 3px solid var(--amarillo);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--sombra);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.5rem; max-width: 1100px; margin: 0 auto;
}
.logo img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a { color: var(--gris-oscuro); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--azul-mid); text-decoration: none; }

/* ── Botones ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.4rem; border-radius: var(--radio);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: all .18s;
  text-decoration: none;
}
.btn-primario   { background: var(--amarillo); color: var(--azul); }
.btn-primario:hover  { background: #d9a200; text-decoration: none; color: var(--azul); }
.btn-secundario { background: var(--blanco); color: var(--azul); border-color: var(--azul); }
.btn-secundario:hover { background: var(--azul-claro); text-decoration: none; }
.btn-azul       { background: var(--azul); color: #fff; }
.btn-azul:hover { background: #001a7a; text-decoration: none; color: #fff; }
.btn-sm    { padding: .4rem .9rem; font-size: .85rem; }
.btn-bloque { display: block; width: 100%; text-align: center; }

/* ── Hero ──────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--azul) 0%, #0035cc 100%);
  color: var(--blanco);
  padding: 6rem 1.5rem;
  text-align: center;
  border-bottom: 5px solid var(--amarillo);
}
.hero h1  { color: var(--blanco); margin-bottom: 1.2rem; }
.hero p   { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Tarjetas ──────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.tarjeta {
  background: var(--blanco); border-radius: var(--radio);
  padding: 2rem; box-shadow: var(--sombra);
  border: 1px solid var(--borde);
  transition: transform .2s, box-shadow .2s;
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,40,160,.13); }
.tarjeta-icono {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--azul-claro); color: var(--azul-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.tarjeta h3  { margin-bottom: .5rem; }
.tarjeta p   { font-size: .93rem; }

/* ── Formularios ───────────────────────────── */
.form-grupo  { margin-bottom: 1.2rem; }
.form-fila   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--azul); }
input, select, textarea {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--borde); border-radius: var(--radio);
  font-size: .95rem; font-family: var(--fuente);
  background: var(--blanco); color: var(--gris-oscuro);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--azul-mid);
  box-shadow: 0 0 0 3px rgba(0,40,160,.12);
}
textarea { resize: vertical; min-height: 90px; }

/* ── Panel / Zona privada ──────────────────── */
.panel-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; background: var(--azul); color: var(--blanco);
  flex-shrink: 0; display: flex; flex-direction: column;
  padding: 1.5rem 0;
  border-right: 4px solid var(--amarillo);
}
.sidebar-logo { padding: 0 1.5rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.15); margin-bottom: 1rem; }
.sidebar-logo img { height: 44px; width: auto; }
.sidebar-menu  { list-style: none; flex: 1; }
.sidebar-menu a {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1.5rem; color: rgba(255,255,255,.8);
  font-size: .93rem; font-weight: 500; transition: background .15s;
  text-decoration: none;
}
.sidebar-menu a:hover, .sidebar-menu a.activo {
  background: rgba(255,255,255,.12); color: #fff;
  border-left: 3px solid var(--amarillo);
}
.sidebar-menu .icono { font-size: 1.1rem; }
.sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.panel-contenido { flex: 1; padding: 2rem; overflow-y: auto; }
.panel-header { margin-bottom: 2rem; }
.panel-header h1 { font-size: 1.6rem; }
.panel-header p  { margin-top: .3rem; }

/* ── Tablas ────────────────────────────────── */
.tabla-wrap { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--azul); color: #fff; padding: .85rem 1rem; text-align: left; font-size: .88rem; font-weight: 600; }
td { padding: .85rem 1rem; border-bottom: 1px solid var(--borde); font-size: .9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gris-claro); }

/* ── Badges ────────────────────────────────── */
.badge { display: inline-block; padding: .2rem .7rem; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-pendiente { background: var(--amarillo-clr); color: #8a6000; }
.badge-recogido  { background: #e6f4ea; color: #1a7a3a; }
.badge-cancelado { background: #fce8e8; color: #b91c1c; }

/* ── Alertas ───────────────────────────────── */
.alerta { padding: .9rem 1.2rem; border-radius: var(--radio); margin-bottom: 1.2rem; font-size: .93rem; font-weight: 500; }
.alerta-error { background: #fce8e8; color: #b91c1c; border: 1px solid #f5c6c6; }
.alerta-exito { background: #e6f4ea; color: #1a7a3a; border: 1px solid #b7dfbf; }
.alerta-info  { background: var(--azul-claro); color: var(--azul); border: 1px solid #c5d9f5; }

/* ── Login ─────────────────────────────────── */
.login-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--azul) 0%, #0035cc 100%);
  padding: 1.5rem;
}
.login-caja {
  background: var(--blanco); border-radius: 16px;
  padding: 2.5rem; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  border-top: 5px solid var(--amarillo);
}
.login-logo { display: flex; justify-content: center; margin-bottom: 1.8rem; }
.login-logo img { height: 60px; width: auto; }
.login-caja h2 { margin-bottom: .4rem; }
.login-caja .subtitulo { color: var(--gris-medio); font-size: .93rem; margin-bottom: 1.8rem; }

/* ── Footer ────────────────────────────────── */
footer {
  background: var(--azul); color: rgba(255,255,255,.7);
  text-align: center; padding: 2rem 1rem; font-size: .88rem;
  border-top: 4px solid var(--amarillo);
}
footer a { color: rgba(255,255,255,.85); }

/* ── Stats ─────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--blanco); border-radius: var(--radio);
  padding: 1.4rem 1.6rem; box-shadow: var(--sombra);
  border-left: 4px solid var(--amarillo);
}
.stat-num   { font-size: 2rem; font-weight: 800; color: var(--azul); }
.stat-label { font-size: .88rem; color: var(--gris-medio); margin-top: .2rem; }

/* ── Formulario recogida ───────────────────── */
.tipo-selector { display:flex; gap:1rem; margin-bottom:2rem; }
.tipo-btn {
  flex:1; padding:1.1rem; border:2px solid var(--borde); border-radius:var(--radio);
  background:var(--blanco); cursor:pointer; text-align:center; transition:all .18s;
  font-family:var(--fuente);
}
.tipo-btn:hover  { border-color:var(--azul); background:var(--azul-claro); }
.tipo-btn.activo { border-color:var(--azul); background:var(--azul-claro); box-shadow: 0 0 0 3px rgba(0,40,160,.1); }
.tipo-btn .icono-grande { font-size:1.8rem; display:block; margin-bottom:.4rem; }
.tipo-btn strong { display:block; color:var(--azul); font-size:.95rem; }
.tipo-btn small  { color:var(--gris-medio); font-size:.82rem; }
.bloque-form {
  background:var(--gris-claro); border:1px solid var(--borde);
  border-radius:var(--radio); padding:1.5rem; margin-bottom:1.5rem;
}
.bloque-form h3 { margin-bottom:1.2rem; display:flex; align-items:center; gap:.6rem; }
.btn-misdatos {
  font-size:.82rem; padding:.35rem .8rem; margin-left:auto;
  background:var(--amarillo-clr); color:#7a5e00; border:1px solid var(--amarillo);
  border-radius:6px; cursor:pointer; font-family:var(--fuente); font-weight:600;
  transition:background .15s;
}
.btn-misdatos:hover { background:#ffe57a; }
.separador { border:none; border-top:1px solid var(--borde); margin:1.5rem 0; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  .form-fila { grid-template-columns: 1fr; }
  .panel-layout { flex-direction: column; }
  .sidebar { width: 100%; padding: 1rem 0; border-right: none; border-bottom: 4px solid var(--amarillo); }
  .sidebar-menu a { padding: .55rem 1rem; }
  .panel-contenido { padding: 1.2rem; }
  .nav-links { display: none; }
  .tipo-selector { flex-direction: column; }
}

/* ── Navbar dropdown ───────────────────────── */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio); box-shadow: var(--sombra);
  min-width: 260px; list-style: none; padding: .5rem 0; z-index: 200;
  margin-top: .5rem;
}
.dropdown-menu li a {
  display: block; padding: .6rem 1.2rem;
  color: var(--gris-oscuro); font-size: .92rem;
  transition: background .15s;
}
.dropdown-menu li a:hover { background: var(--azul-claro); color: var(--azul); text-decoration: none; }
.nav-dropdown:hover .dropdown-menu { display: block; }
@media (max-width: 768px) { .nav-dropdown:hover .dropdown-menu { display: none; } }

/* ── Burger / menú móvil ───────────────────── */
.nav-burger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: .3rem; }
.nav-mobile { display: none; background: var(--blanco); border-top: 1px solid var(--borde); }
.nav-mobile.abierto { display: block; }
.nav-mobile ul { list-style: none; padding: .5rem 0 1rem; }
.nav-mobile ul li a { display: block; padding: .65rem 1.5rem; color: var(--gris-oscuro); font-weight: 500; }
.nav-mobile ul li a:hover { background: var(--azul-claro); }
.nav-mobile.abierto { display: block; }

/* ── Hero servicio ─────────────────────────── */
.hero-servicio {
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(135deg, var(--azul) 0%, #0035cc 100%);
  border-bottom: 5px solid var(--amarillo);
  color: #fff;
}
.hero-servicio .icono-servicio {
  font-size: 3rem; display: block; margin-bottom: 1rem;
}
.hero-servicio h1 { color: #fff; margin-bottom: .5rem; }
.hero-servicio p  { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 650px; }

/* ── Puntos clave ──────────────────────────── */
.puntos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem; margin: 2rem 0;
}
.punto {
  display: flex; align-items: flex-start; gap: .8rem;
  background: var(--blanco); border-radius: var(--radio);
  padding: 1.1rem 1.3rem; box-shadow: var(--sombra);
  border: 1px solid var(--borde);
}
.punto-check {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem; font-weight: 700; margin-top: .1rem;
}
.punto p { color: var(--gris-oscuro); font-size: .93rem; margin: 0; }

/* ── CTA banda ─────────────────────────────── */
.cta-banda {
  background: var(--amarillo); border-radius: var(--radio);
  padding: 2.5rem; text-align: center; margin: 3rem 0;
}
.cta-banda h2 { color: var(--azul); margin-bottom: .6rem; }
.cta-banda p  { color: var(--azul); opacity: .8; margin-bottom: 1.5rem; }

/* ── Grid servicios index ──────────────────── */
.servicios-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.servicio-card {
  background: var(--blanco); border-radius: var(--radio);
  border: 1px solid var(--borde); box-shadow: var(--sombra);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.servicio-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,40,160,.13); text-decoration: none; }
.servicio-card-header {
  padding: 1.8rem 1.8rem 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.servicio-card-icono {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0; color: #fff;
}
.servicio-card-header h3 { margin: 0; font-size: 1.05rem; }
.servicio-card-header p  { margin: .2rem 0 0; font-size: .85rem; color: var(--gris-medio); }
.servicio-card-body { padding: 0 1.8rem 1.8rem; flex: 1; }
.servicio-card-body p { font-size: .9rem; margin-bottom: 1rem; }
.servicio-card-link {
  font-size: .88rem; font-weight: 600; color: var(--azul-mid);
  display: inline-flex; align-items: center; gap: .3rem;
}

/* ── Footer ────────────────────────────────── */
footer { background: var(--azul); border-top: 4px solid var(--amarillo); padding: 3rem 1.5rem 1.5rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer-col ul  { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-col ul li:not(:has(a)) { color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-copy { max-width: 1100px; margin: 1.2rem auto 0; color: rgba(255,255,255,.4); font-size: .82rem; text-align: center; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
