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

body {
  font-family: Arial, sans-serif;
  background: #e0f7fa;
  color: #333;
}

header {
  background: linear-gradient(135deg, #0288d1, #03a9f4);
  color: white;
  padding: 20px;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  background: #03a9f4;
  padding: 10px;
}
nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover { color: #ffeb3b; }

.section { padding: 40px 20px; max-width: 1000px; margin: auto; }
.section h2 { text-align: center; margin-bottom: 20px; color:#0288d1; }

.products {
  display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px;
}
.product {
  background: white; padding: 20px; border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 280px; text-align: center;
}
.product img { width:100%; height:160px; object-fit:cover; border-radius:8px; }

.btn-agregar, .btn {
  background: #0288d1; color:white; border:none; padding:10px;
  border-radius:6px; cursor:pointer; margin-top:10px; width:100%;
}
.btn-agregar:hover, .btn:hover { background:#0277bd; }

/* Icono Carrito */
#carrito-icon {
  position: fixed; bottom: 20px; right: 20px;
  background: #0288d1; border:none; border-radius:50%;
  width: 60px; height: 60px; font-size:1.5rem;
  color: white; cursor: pointer;
  display:flex; align-items:center; justify-content:center;
  z-index:1000;
}
#carrito-icon span {
  position:absolute; top:5px; right:8px;
  background:#dc3545; color:white; border-radius:50%;
  padding:2px 6px; font-size:0.7rem;
}

/* Modal */
.modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:2000; }
.modal-content {
  background:white; margin:10% auto; padding:20px; border-radius:8px;
  width:90%; max-width:400px; position:relative;
}
.modal .close { position:absolute; top:10px; right:15px; font-size:1.5rem; cursor:pointer; }

#lista-carrito { list-style:none; margin:1rem 0; padding:0; }
#lista-carrito li { display:flex; justify-content:space-between; margin-bottom:0.5rem; }
#lista-carrito li button {
  background:#dc3545; color:white; border:none; border-radius:3px; cursor:pointer; padding:2px 5px;
}

#total { font-weight:bold; margin:1rem 0; }
.carrito-botones { display:flex; flex-direction:column; gap:0.5rem; }
@media(min-width:500px){ .carrito-botones { flex-direction:row; justify-content:space-between; } }

footer {
  background:#0288d1; color:white; text-align:center; padding:20px; margin-top:40px;
}

/* === Estilos especiales por producto === */

/* Jetski: Azul (3 columnas) */
.schedule.jetski {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-items: center;
}
.schedule.jetski button {
  width: 100%;
  text-align: center;
  background-color: #0288d1;
  color:white;
}
.schedule.jetski button:hover { background-color: #0277bd; }
.schedule.jetski button.selected { background-color: #01579b; }

/* Carpa: Naranja (2 columnas) */
.schedule.carpa {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-items: center;
}
.schedule.carpa button {
  width: 100%;
  text-align: center;
  background-color: #ff9800;
  color:white;
}
.schedule.carpa button:hover { background-color: #fb8c00; }
.schedule.carpa button.selected { background-color: #ef6c00; }

/* Banana: Amarillo (4 columnas) */
.schedule.banana {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  justify-items: center;
}
.schedule.banana button {
  width: 100%;
  text-align: center;
  background-color: #fbc02d;
  color:#333;
}
.schedule.banana button:hover { background-color: #f9a825; }
.schedule.banana button.selected { background-color: #f57f17; color:white; }


/* ======= Pulse animation to draw attention (respecting reduced motion) ======= */
@keyframes psc-pulse {
  0%   { transform: translateY(0) scale(1);   box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
  50%  { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 18px rgba(0,0,0,0.25); }
  100% { transform: translateY(0) scale(1);   box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
}

/* Apply a subtle pulse to all schedule buttons */
.schedule.jetski button,
.schedule.carpa button,
.schedule.banana button {
  animation: psc-pulse 2.4s ease-in-out infinite;
}

/* Staggered delays for a gentle wave effect */
.schedule.jetski button:nth-child(odd),
.schedule.carpa button:nth-child(odd),
.schedule.banana button:nth-child(odd) { animation-delay: .2s; }
.schedule.jetski button:nth-child(3n),
.schedule.carpa button:nth-child(3n),
.schedule.banana button:nth-child(3n) { animation-delay: .4s; }

/* Pause pulse while interacting so the button feels solid */
.schedule.jetski button:hover,
.schedule.carpa button:hover,
.schedule.banana button:hover,
.schedule.jetski button:active,
.schedule.carpa button:active,
.schedule.banana button:active,
.schedule.jetski button:focus-visible,
.schedule.carpa button:focus-visible,
.schedule.banana button:focus-visible {
  animation-play-state: paused;
  outline: 3px solid rgba(255,255,255,0.35);
  outline-offset: 2px;
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .schedule.jetski button,
  .schedule.carpa button,
  .schedule.banana button { animation: none !important; }
}


/* ============================
   Botones de horarios/cantidades estilo "Paquetes"
   ============================ */

/* Base del contenedor */
.schedule {
  gap: 12px;
  margin-top: 12px;
}

/* Estilo base de los botones */
.schedule.jetski button,
.schedule.carpa button,
.schedule.banana button {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  transition: transform .15s ease, box-shadow .2s ease, background .25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  animation: none !important;
}

/* Hover / Active genéricos */
.schedule.jetski button:hover,
.schedule.carpa button:hover,
.schedule.banana button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.schedule.jetski button:active,
.schedule.carpa button:active,
.schedule.banana button:active {
  transform: scale(.98);
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
}

/* Jetski (azules) */
.schedule.jetski button {
  background: linear-gradient(180deg, #03a9f4, #0288d1);
}
.schedule.jetski button:hover {
  background: linear-gradient(180deg, #039be5, #0277bd);
}
.schedule.jetski button.selected {
  background: linear-gradient(180deg, #0277bd, #01579b);
  box-shadow: 0 0 0 3px rgba(1, 87, 155, .25) inset;
}

/* Carpa (naranjas) */
.schedule.carpa button {
  background: linear-gradient(180deg, #ffb74d, #ff9800);
}
.schedule.carpa button:hover {
  background: linear-gradient(180deg, #ffa726, #fb8c00);
}
.schedule.carpa button.selected {
  background: linear-gradient(180deg, #fb8c00, #ef6c00);
  box-shadow: 0 0 0 3px rgba(239, 108, 0, .25) inset;
}

/* Banana (amarillos) */
.schedule.banana button {
  background: linear-gradient(180deg, #ffe082, #fbc02d);
  color: #333;
}
.schedule.banana button:hover {
  background: linear-gradient(180deg, #ffd54f, #f9a825);
}
.schedule.banana button.selected {
  background: linear-gradient(180deg, #f9a825, #f57f17);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(245, 127, 23, .25) inset;
}

/* Accesibilidad: enfoque claro con teclado */
.schedule.jetski button:focus-visible,
.schedule.carpa button:focus-visible,
.schedule.banana button:focus-visible {
  outline: 3px solid rgba(255,255,255,.6);
  outline-offset: 2px;
}



/* === Shine on hover & strong glow on selected === */

/* Shared shine behavior */
.schedule.jetski button,
.schedule.carpa button,
.schedule.banana button {
  position: relative;
  overflow: hidden;
}

.schedule.jetski button::after,
.schedule.carpa button::after,
.schedule.banana button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: transform .4s ease, left .6s ease;
  pointer-events: none;
}

.schedule.jetski button:hover::after,
.schedule.carpa button:hover::after,
.schedule.banana button:hover::after {
  left: 150%;
}

/* Stronger glow per product when selected */
.schedule.jetski button.selected {
  box-shadow:
    0 0 0 3px rgba(1, 87, 155, .25) inset,
    0 8px 24px rgba(3, 169, 244, .35);
}
.schedule.carpa button.selected {
  box-shadow:
    0 0 0 3px rgba(239, 108, 0, .25) inset,
    0 8px 24px rgba(255, 152, 0, .35);
}
.schedule.banana button.selected {
  box-shadow:
    0 0 0 3px rgba(245, 127, 23, .25) inset,
    0 8px 24px rgba(251, 192, 45, .35);
}

