:root{
  --ink:#173e82; --ink-2:#234f9b; --paper:#f7f3ea; --paper-2:#ffffff; --line:#e8e2d5;
  --ok:#12a150; --warn:#f2a900; --link:#0b66c3; --radius:18px; --shadow:0 8px 24px rgba(0,0,0,.08);
  /* Logos grandes */
  --logo-h-mobile: 88px; --logo-h-desktop: 140px; --logo-gap: 28px;
  --sat: env(safe-area-inset-top, 0px); --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--paper);
  color:#273449;
  -webkit-touch-callout:none;
}

a{color:var(--link);text-decoration:none}
a:focus,button:focus,input:focus,select:focus{
  outline:2px solid var(--ink-2);
  outline-offset:2px;
}
figure{margin:0}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.wrap{
  max-width:1128px;
  margin:auto;
  padding:12px clamp(12px,4vw,16px);
}
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  font-weight:700;
}
.brand-badge{
  width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--ink);
  color:#fff;
  box-shadow:var(--shadow);
}
nav{
  display:none;
  gap:20px;
}
@media(min-width:768px){
  nav{display:flex}
}
nav a{color:#3c4c63}
nav a:hover{color:var(--ink)}

/* Layout hero */
.hero{
  padding:18px clamp(12px,4vw,16px) 6px;
}
.grid{
  display:grid;
  gap:18px;
}
.grid > *{min-width:0}
@media(min-width:960px){
  .grid{
    grid-template-columns:1.2fr 1fr;
    align-items:stretch;
  }
}

/* Carrusel (postal estable) */
.carousel{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
  background:var(--paper-2);
  box-shadow:var(--shadow);
  border:1px solid var(--line);
  width:100%;
  max-width:100%;
  display:block;
  aspect-ratio: 3 / 2;
  min-height: 300px;
  height:auto;
  touch-action: pan-y;
}
@media (max-width:960px){
  .carousel{
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }
}
@media (min-width:960px){
  .carousel{
    aspect-ratio:auto;
    min-height:unset;
  }
}

/* Slide + efecto lámpara */
.slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .35s ease;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  background-color:#fff;
  cursor:zoom-in;
  -webkit-user-drag:none;
  user-select:none;
  -webkit-touch-callout:none;
  overflow:hidden; /* que el haz no se salga */
}
.slide.active{
  opacity:1;
  z-index:1;
}

/* 🔦 Lampsweep en cada slide del carrusel */
.slide::after{
  content:"";
  position:absolute;
  inset:-18%;              /* un poco más grande para que el haz no se corte */
  pointer-events:none;
  background:
    /* brillos suaves fijos */
    radial-gradient(circle at 10% 0%,
      rgba(23,62,130,0.30) 0%,
      transparent 55%),
    radial-gradient(circle at 90% 100%,
      rgba(35,79,155,0.30) 0%,
      transparent 60%),
    /* franja de luz que barre (lámpara) */
    linear-gradient(120deg,
      transparent 0%,
      rgba(148,163,184,0.0) 30%,
      rgba(148,163,184,0.20) 40%,
      rgba(224,231,255,0.70) 50%,  /* centro del haz */
      rgba(253,224,71,0.80) 52%,   /* toquecito dorado */
      rgba(148,163,184,0.20) 60%,
      rgba(148,163,184,0.0) 70%,
      transparent 100%);
  background-size:
    120% 120%,   /* radial 1 */
    120% 120%,   /* radial 2 */
    220% 220%;   /* franja móvil */
  background-blend-mode:screen;
  mix-blend-mode:screen;
  opacity:1;
  animation: lampSweep 24s ease-in-out infinite; /* barrido lento, no cansado */
}

/* Animación del haz de luz que cruza el slide */
@keyframes lampSweep{
  0%{
    background-position:
      0% 0%,        /* radial 1 */
      100% 100%,    /* radial 2 */
      -130% 0%;     /* franja empieza fuera por la izquierda */
  }
  40%{
    background-position:
      10% 0%,
      90% 100%,
      35% 0%;       /* franja cruza por el centro (luzón) */
  }
  100%{
    background-position:
      20% 0%,
      80% 100%,
      190% 0%;      /* franja sale por la derecha */
  }
}

.frame{
  position:absolute;
  inset:10px;
  border-radius:14px;
  border:1px solid #e2dccd;
  pointer-events:none;
  z-index:1;
}
.caption{
  position:absolute;
  left:16px;
  bottom:16px;
  z-index:3;
  background:rgba(255,255,255,.95);
  padding:8px 10px;
  border-radius:12px;
  border:1px solid #e7e0d2;
  color:var(--ink);
  max-width:88%;
  -webkit-user-drag:none;
  user-select:none;
  -webkit-touch-callout:none;
  font-size:14px;
}
.caption h2{
  margin:0 0 2px;
  font-size:16px;
}
.caption p{
  margin:0;
  font-size:12px;
  color:#5d6a7f;
}
.dots{
  position:absolute;
  left:0;
  right:0;
  bottom:10px;
  display:flex;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap;
  padding:0 8px;
  z-index:3;
}
.dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#cfd6e3;
  border:1px solid #b8c3d6;
}
.dot.active{
  width:22px;
  background:var(--ink);
}
.control{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border-radius:999px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  cursor:pointer;
  box-shadow:var(--shadow);
  z-index:4;
  -webkit-user-drag:none;
  user-select:none;
  -webkit-touch-callout:none;
}
.prev{left:10px}
.next{right:10px}

/* Panel de reserva */
.panel{
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.panel h1{
  margin:2px 0 10px;
  color:var(--ink);
  font-size:28px;
}
.panel p{
  margin:0 0 10px;
  color:#59667b;
}
.grid-form{
  display:grid;
  gap:10px;
}
@media(min-width:520px){
  .grid-form{grid-template-columns:1fr 1fr}
}
.form-field label{
  font-size:12px;
  color:#506079;
}
.form-field input,
.form-field select{
  width:100%;
  margin-top:6px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #cfd6e3;
  background:#fff;
  color:#26364f;
  font-size:14px;
}
.form-field input:focus,
.form-field select:focus{
  border-color:var(--ink);
}
.btn{
  grid-column:1/-1;
  padding:12px 14px;
  border-radius:14px;
  border:0;
  cursor:pointer;
  background:linear-gradient(180deg,var(--ink),var(--ink-2));
  color:#fff;
  font-weight:700;
}

/* Logos + WhatsApp */
.brands{
  padding:22px clamp(12px,4vw,16px);
}
.tray{
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:var(--logo-gap);
  padding:22px;
  -webkit-touch-callout:none;
}
@media (min-width:640px){
  .tray{
    grid-template-columns:repeat(4, minmax(0,1fr));
  }
}

.brandcell{
  position:relative;
  display:grid;
  place-items:center;
  height: calc(var(--logo-h-mobile) + 34px);
  padding: 10px 12px;
}
.logo-link{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
}
.brandcell img{
  max-height: var(--logo-h-mobile);
  max-width: 100%;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:grayscale(12%);
  opacity:.98;
  transform:scale(var(--logo-scale,1));
  transform-origin:center;
  -webkit-user-drag:none;
  user-select:none;
  -webkit-touch-callout:none;
  pointer-events:none;
}
@media (min-width:768px){
  .brandcell{
    height: calc(var(--logo-h-desktop) + 36px);
  }
  .brandcell img{
    max-height: var(--logo-h-desktop);
  }
}

/* Botón WhatsApp con logo SVG (chips en logos) */
.wa-badge{
  position:absolute;
  right:10px;
  top:10px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:999px;
  background:#25D366;
  color:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
  border:1px solid rgba(0,0,0,.06);
}
.wa-badge:hover{ filter:brightness(1.05); }
.wa-badge:focus{
  outline:2px solid #173e82;
  outline-offset:2px;
}
.wa-icon{
  width:22px;
  height:22px;
  display:block;
  fill:#ffffff;
}

/* Footer */
footer{
  border-top:1px solid var(--line);
  background:#fff;
}
.ft{
  display:grid;
  gap:8px;
  grid-template-columns:1fr;
}
@media(min-width:640px){
  .ft{grid-template-columns:1fr 1fr}
}
.muted{color:#6a768c}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
  background:rgba(6,12,20,.92);
  backdrop-filter:saturate(140%) blur(2px);
  -webkit-touch-callout:none;
}
.lightbox.open{ display:block }
.lb-stage{
  position:fixed;
  left:max(0,var(--sal));
  right:max(0,var(--sar));
  top:max(0,var(--sat));
  bottom:max(0,var(--sab));
  background:#0b1524;
  width:calc(100vw - var(--sal) - var(--sar));
  height:calc(100dvh - var(--sat) - var(--sab));
  z-index:1001;
  overflow:hidden;
  -webkit-touch-callout:none;
}
@media (min-width:900px){
  .lb-stage{
    width:min(1200px,calc(100vw - 48px));
    height:min(80dvh,760px);
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    border:1px solid #22324a;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
  }
}
.lb-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .25s ease;
  background-position:center;
  background-size:contain;
  background-repeat:no-repeat;
  -webkit-touch-callout:none;
}
.lb-slide.active{opacity:1}
.lb-topbar{
  position:fixed;
  left:max(0,var(--sal));
  right:max(0,var(--sar));
  top:max(0,var(--sat));
  height:48px;
  z-index:1002;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 10px;
  color:#eaf0ff;
  font-weight:600;
  background:linear-gradient(180deg,rgba(10,18,30,.8),rgba(10,18,30,0));
}
.lb-close{
  border:1px solid #2a3953;
  background:#0e1a2b;
  color:#eaf0ff;
  border-radius:12px;
  padding:8px 12px;
  cursor:pointer;
}
.lb-prev,
.lb-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:48px;
  height:48px;
  border-radius:999px;
  display:grid;
  place-items:center;
  border:1px solid #2a3953;
  background:#0e1a2b;
  color:#eaf0ff;
  cursor:pointer;
}
.lb-prev{left:10px}
.lb-next{right:10px}
.lb-dots{
  position:fixed;
  left:0;
  right:0;
  bottom:max(6px,var(--sab));
  z-index:1002;
  display:flex;
  justify-content:center;
  gap:6px;
  padding:8px 12px;
}
.lb-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#4b698f;
  border:1px solid #6585ad;
}
.lb-dot.active{
  width:22px;
  background:#eaf0ff;
}

/* NEW: Botón inline para Soporte técnico */
.support{
  padding: 22px clamp(12px,4vw,16px);
}
.support .card{
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 10px;
}
.btn-whatsapp{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,211,102,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-whatsapp:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
}
.btn-whatsapp:active{
  transform: translateY(0);
}

/* Enlaces NEGROS en todo el sitio (sin azul chillón) */
a{
  color: #111827;             /* negro suave */
  text-decoration: none;
}
a:hover{
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:focus{
  outline: 2px solid rgba(0,0,0,.25);
  outline-offset: 2px;
}

/* FullCalendar: enlaces usan el color del evento */
.fc a{
  color: inherit;
  text-decoration: none;
}
.fc a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Eventos con etiqueta de color y texto legible */
.fc .fc-event{
  color: #fff;       /* texto blanco dentro del bloque del evento */
  border: none;
}

/* ENTREGAS = AZUL */
.fc .fc-event.R-ENTREGA{
  background-color: #173e82 !important;
}

/* DEVOLUCIONES/RECEPCIONES = VERDE */
.fc .fc-event.R-DEV{
  background-color: #12a150 !important;
}
