/* =========================
   OPCIONES.CSS
   Estilos para página de opciones de cafetería
   Diseño adaptado del sistema anterior
========================= */

/* =========================
   ESTILOS GENERALES Y RESET
========================= */
body {
  background: #f5f5f5;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  font-family: Arial, sans-serif;
  background-image: url('../bienvenida/fondo-cafeteria.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* =========================
   BOTÓN REGRESAR
========================= */
.btn-regresar1 {
  display: inline-block;
  background: #8B4513;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 30px;
  font-weight: bold;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.btn-regresar1:hover {
  background: #A0522D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

/* =========================
   TÍTULO PRINCIPAL
========================= */
#main h2 {
  text-align: center;
  color: #8B4513;
  font-size: 32px;
  margin-bottom: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #8B4513, #D2691E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================
   CONTENEDOR PRINCIPAL DE OPCIONES
========================= */
.opciones1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
}

/* =========================
   TARJETAS DE OPCIÓN INDIVIDUALES
========================= */
.opcion {
  background: linear-gradient(135deg, #ffffff, #f8f8f8);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border: 3px solid #8B4513;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.opcion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

.opcion:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(139, 69, 19, 0.25);
  border-color: #D2691E;
}

/* =========================
   TÍTULOS DE LAS OPCIONES
========================= */
.opcion h2 {
  color: #8B4513;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  padding: 0 20px;
}

/* =========================
   IMÁGENES DE LAS OPCIONES
========================= */
.opcion img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  margin-bottom: 35px;
  border-radius: 15px;
  border: 4px solid #8B4513;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.opcion:hover img {
  transform: scale(1.08);
  border-color: #D2691E;
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

/* =========================
   BOTONES DE ELECCIÓN
========================= */
.opcion h3 {
  margin: 20px 0 0 0;
}

.opcion h3 a {
  display: inline-block;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 15px 40px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
  border: 2px solid transparent;
}

.opcion h3 a:hover {
  background: linear-gradient(135deg, #A0522D, #D2691E);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
  border-color: #8B4513;
}

/* =========================
   EFECTOS DE ANIMACIÓN
========================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.opcion {
  animation: fadeInUp 0.6s ease forwards;
}

.opcion:nth-child(1) {
  animation-delay: 0.1s;
}

.opcion:nth-child(2) {
  animation-delay: 0.2s;
}

/* =========================
   DISEÑO RESPONSIVE
========================= */

/* Tablets */
@media (max-width: 1024px) {
  .opciones1 {
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 30px;
  }
  
  .opcion {
    min-height: 450px;
    padding: 35px 25px;
  }
  
  .opcion img {
    width: 250px;
    height: 250px;
  }
  
  #main h2 {
    font-size: 28px;
  }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  .opciones1 {
    padding: 20px;
    gap: 25px;
  }
  
  .opcion {
    min-height: 400px;
    padding: 30px 20px;
  }
  
  .opcion img {
    width: 220px;
    height: 220px;
  }
  
  .opcion h2 {
    font-size: 24px;
  }
  
  .opcion h3 a {
    font-size: 20px;
    padding: 12px 35px;
  }
}

/* Móviles */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  #main h2 {
    font-size: 24px;
    margin-bottom: 30px;
    letter-spacing: 1px;
  }
  
  .opciones1 {
    padding: 15px;
    gap: 20px;
  }
  
  .opcion {
    min-height: 350px;
    padding: 25px 15px;
  }
  
  .opcion img {
    width: 200px;
    height: 200px;
  }
  
  .opcion h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .opcion h3 a {
    font-size: 18px;
    padding: 10px 30px;
  }
  
  .btn-regresar1 {
    padding: 10px 20px;
    font-size: 14px;
    margin-bottom: 20px;
  }
}

/* Pantallas grandes */
@media (min-width: 1600px) {
  .opciones1 {
    max-width: 1200px;
    gap: 50px;
  }
  
  .opcion {
    min-height: 550px;
    padding: 50px 40px;
  }
  
  .opcion img {
    width: 320px;
    height: 320px;
  }
  
  .opcion h2 {
    font-size: 32px;
  }
  
  .opcion h3 a {
    font-size: 24px;
    padding: 18px 45px;
  }
}

/* =========================
   ESTADOS DE FOCO PARA ACCESIBILIDAD
========================= */
.opcion h3 a:focus {
  outline: 3px solid #8B4513;
  outline-offset: 2px;
}

.btn-regresar1:focus {
  outline: 3px solid #A0522D;
  outline-offset: 2px;
}

/* =========================
   MEJORAS DE RENDIMIENTO
========================= */
.opcion {
  will-change: transform;
}

.opcion img {
  will-change: transform;
}