/* ═══════════════════════════════════════════
   ccp-loreto.css — Base, Header, Hero, Footer
   Tokens globales usados por todas las secciones
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

:root {
  --verde:    #1b4d35;
  --verde2:   #256847;
  --verde3:   #2e7d52;
  --verde-lt: #e8f5ee;
  --oro:      #c9a84c;
  --oro2:     #e8c96a;
  --crema:    #faf8f4;
  --gris:     #f2f4f2;
  --txt:      #1a2e22;
  --txt2:     #5a7060;
  --borde:    #d8e8dc;
  --sombra:   0 2px 16px rgba(27,77,53,.1);
  --radio:    10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Source Sans 3', sans-serif; background: var(--crema); color: var(--txt); overflow-x: hidden; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* Material Icons helper */
.mi {
  font-family: 'Material Symbols Outlined';
  font-style: normal; font-size: 24px; line-height: 1;
  -webkit-font-smoothing: antialiased; user-select: none; vertical-align: middle;
}
.mi.sm { font-size: 18px; }
.mi.lg { font-size: 32px; }
.mi.xl { font-size: 40px; }

/* ── SECCIONES — clases modulares ─────── */
.page-section      { padding: 48px 16px; }
.page-section-alt  { padding: 48px 16px; background: var(--gris); }
.page-section-dark { padding: 48px 16px; background: var(--verde); }
.section-inner     { max-width: 1200px; margin: 0 auto; }

.sec-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--verde3);
  margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.sec-eyebrow .mi    { font-size: 16px; }
.sec-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--borde); max-width: 120px; }
.sec-eyebrow-lt     { color: var(--oro2); }
.sec-eyebrow-lt::after { background: rgba(255,255,255,.15); }

.sec-title    { font-family: 'Playfair Display', serif; font-size: clamp(22px,4vw,30px); color: var(--verde); margin-bottom: 6px; }
.sec-sub      { font-size: 15px; color: var(--txt2); margin-bottom: 28px; }
.sec-title-lt { color: white; }
.sec-sub-lt   { color: rgba(255,255,255,.55); }

/* ── HEADER ───────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--verde);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.header-inner {
  display: flex; align-items: center;
  padding: 10px 16px; gap: 12px;
  max-width: 1200px; margin: 0 auto;
}
.header-logo { display: flex; align-items: center; gap: 10px; flex: 1; }
.logo-mark {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--oro); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 13px; font-weight: 700; color: var(--verde);
  line-height: 1.1; text-align: center; padding: 2px;
}
.header-title { color: white; }
.header-title strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; }
.header-title span   { font-size: 10px; color: rgba(255,255,255,.5); letter-spacing: .5px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-verificar {
  background: transparent; border: 1.5px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.85); padding: 7px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
  display: none; align-items: center; gap: 5px;
}
.btn-acceder {
  background: var(--oro); color: var(--verde); border: none;
  padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 700;
}
.btn-burger {
  background: rgba(255,255,255,.1); border: none;
  width: 38px; height: 38px; border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.btn-burger span { display: block; width: 20px; height: 2px; background: white; border-radius: 2px; }

/* Nav desktop */
.desktop-nav { display: none; background: var(--verde2); border-top: 1px solid rgba(255,255,255,.1); }
.desktop-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; padding: 0 16px;
}
.desktop-nav a {
  color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500;
  padding: 10px 14px; transition: .2s;
  border-bottom: 3px solid transparent;
  display: flex; align-items: center; gap: 5px;
}
.desktop-nav a:hover  { color: white; background: rgba(255,255,255,.06); }
.desktop-nav a.active { color: var(--oro2); border-bottom-color: var(--oro2); }
.desktop-nav .dns { flex: 1; }

/* Barra verificar (desplegable) */
.verify-bar {
  background: var(--verde3); overflow: hidden;
  max-height: 0; transition: max-height .4s ease;
}
.verify-bar.open { max-height: 80px; }
.verify-bar-inner {
  max-width: 600px; margin: 0 auto;
  padding: 10px 16px; display: flex; gap: 8px;
}
.verify-input {
  flex: 1; padding: 10px 14px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1); color: white;
  font-size: 14px; font-family: inherit;
}
.verify-input::placeholder { color: rgba(255,255,255,.5); }
.verify-input:focus { outline: none; border-color: var(--oro); background: rgba(255,255,255,.15); }
.btn-consultar {
  background: var(--oro); color: var(--verde); border: none;
  padding: 10px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 700; font-family: inherit;
  display: flex; align-items: center; gap: 6px;
}
.btn-consultar:disabled { background: #ccc; cursor: not-allowed; }

/* ── HERO / CARRUSEL ──────────────────── */
.hero { position: relative; overflow: hidden; background: var(--verde); }
.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.leaf-deco { position: absolute; opacity: .1; }
.leaf-tl   { top: -30px; left: -30px; width: 200px; transform: rotate(-10deg); }
.leaf-br   { bottom: -20px; right: -20px; width: 160px; transform: rotate(165deg); }

.carousel-wrap     { position: relative; width: 100%; }
.carousel-viewport {
  overflow: hidden; width: 100%;
  height: 0; padding-bottom: 56.25%; max-height: 480px; position: relative;
}
@media (max-width: 600px) { .carousel-viewport { padding-bottom: 75%; max-height: 320px; } }
.carousel-track {
  display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1);
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.carousel-slide   { flex: 0 0 100%; min-width: 100%; position: relative; overflow: hidden; height: 100%; }
.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 6s ease;
}
.carousel-slide.active img { transform: scale(1); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,40,25,.85) 0%, rgba(15,40,25,.2) 60%, transparent 100%);
  display: flex; align-items: flex-end; padding: 24px 20px;
}
.slide-content    { color: white; max-width: 580px; }
.slide-label      { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--oro2); margin-bottom: 6px; }
.slide-content h2 { font-family: 'Playfair Display', serif; font-size: clamp(20px,5vw,34px); line-height: 1.2; margin-bottom: 8px; }
.slide-content p  { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.slide-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--oro); color: var(--verde);
  padding: 9px 20px; border-radius: 6px; font-size: 13px; font-weight: 700; border: none;
}
.carousel-ctrl {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2); color: white;
  width: 38px; height: 38px; border-radius: 50%; font-size: 22px; z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.carousel-ctrl.prev { left: 10px; }
.carousel-ctrl.next { right: 10px; }
.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.car-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; padding: 0; cursor: pointer; transition: .3s;
}
.car-dot.car-dot-active { background: var(--oro); width: 20px; border-radius: 4px; }

/* ── ACCIONES RÁPIDAS ─────────────────── */
.acciones-strip { background: var(--verde2); }
.acciones-grid  { display: grid; grid-template-columns: repeat(4,1fr); max-width: 1200px; margin: 0 auto; }
.accion-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 8px; border: none; background: transparent; color: white;
  border-right: 1px solid rgba(255,255,255,.1); transition: background .2s; cursor: pointer;
}
.accion-item:last-child { border-right: none; }
.accion-item:hover { background: rgba(255,255,255,.09); }
.ai-icon-wrap {
  width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.ai-icon-wrap .mi { font-size: 20px; color: var(--oro2); }
.ai-label { font-size: 11px; font-weight: 600; letter-spacing: .3px; text-align: center; line-height: 1.2; }

/* ── DRAWER ───────────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.drawer {
  position: fixed; top: 0; left: -280px; bottom: 0; width: 280px;
  background: var(--verde); z-index: 301;
  transition: left .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; padding: 0 0 40px;
}
.drawer.open { left: 0; }
.drawer-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 8px;
}
.drawer-logo { font-family: 'Playfair Display', serif; font-size: 14px; color: white; line-height: 1.4; flex: 1; }
.drawer-logo span { color: var(--oro2); }
.drawer-close {
  background: rgba(255,255,255,.1); border: none; color: white;
  width: 32px; height: 32px; border-radius: 50%; font-size: 18px; flex-shrink: 0;
}
.drawer-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; color: rgba(255,255,255,.75);
  font-size: 14px; font-weight: 500; transition: .15s;
  border-left: 3px solid transparent;
}
.drawer-nav a .mi { font-size: 18px; color: rgba(255,255,255,.45); }
.drawer-nav a:hover { background: rgba(255,255,255,.07); color: white; border-left-color: var(--oro); }
.drawer-nav a:hover .mi { color: var(--oro2); }
.drawer-sec {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.3); padding: 14px 20px 4px;
}
.btn-acceder-d {
  margin: 14px 20px 0; background: var(--oro); color: var(--verde); border: none;
  padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 700;
  width: calc(100% - 40px); display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ── BOTTOM NAV ───────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--verde); border-top: 1px solid rgba(255,255,255,.12);
  display: grid; grid-template-columns: repeat(5,1fr);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px; color: rgba(255,255,255,.55); font-size: 10px; font-weight: 600;
  background: none; border: none; transition: color .2s;
}
.bnav-item .mi { font-size: 22px; }
.bnav-item.primary { color: var(--oro2); }
.bnav-item:hover   { color: white; }

/* ── FOOTER ───────────────────────────── */
footer { background: var(--verde); color: white; padding: 40px 16px 80px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px;
}
footer h4 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--oro2); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-links span { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-links a:hover { color: var(--oro2); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px; background: rgba(255,255,255,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.footer-social a:hover { background: var(--oro); }
.footer-social svg { width: 16px; height: 16px; fill: rgba(255,255,255,.75); }
.footer-bottom {
  grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px; font-size: 12px; color: rgba(255,255,255,.4);
  display: flex; flex-direction: column; gap: 5px;
}
.footer-bottom a { color: var(--oro2); }
.footer-dev { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.footer-dev .mi { font-size: 15px; color: var(--oro2); }

/* ── MODAL BASE (compartido) ──────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 400;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: 14px; overflow: hidden;
  width: 100%; max-width: 480px; position: relative;
}
.modal-close {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.08); border: none;
  width: 32px; height: 32px; border-radius: 50%; font-size: 18px; color: #666;
}

/* ── RESPONSIVE DESKTOP ───────────────── */
@media (min-width: 768px) {
  .btn-burger  { display: none; }
  .btn-verificar { display: flex; }
  .desktop-nav { display: block; }
  .bottom-nav  { display: none; }
  footer { padding-bottom: 40px; }
  .acciones-grid { grid-template-columns: repeat(5,1fr); }
}


/* Ocultar dos opciones/botones que se repiten */
/* En ccp-loreto.css — agregar */
@media (min-width: 768px) {
  .header-actions .btn-verificar,
  .header-actions .btn-acceder { display: none; }
}