/* Reset básico */
* {
  box-sizing: border-box;
}

/* cargar aca fuentes */
@font-face {
  font-family: 'Alphakind';
  src: local('Alphakind'), 
       url('fonts/alphakind.woff2') format('woff2'),
       url('fonts/alphakind.woff') format('woff'),
       url('fonts/alphakind.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Alphakind', sans-serif, Lato;
  margin: 0;
  padding: 20px;
  background: #e4e4be;
  color: #344b5b;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}
.contacto {
  font-family: 'Lato', sans-serif; /* o la que uses */
  font-size: 0.8rem;  /* tamaño legible */
  color: #333; /* color del texto */
  margin-top: 5px;
  text-align: center; /* si querés que quede centrado */
}

.contacto a {
  color: #0066cc; /* color links */
  text-decoration: none;
}

.contacto a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1300px;
  width: 100%;
  background: white;
  padding: 25px 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}



h1 {
  margin-bottom: 0px;
  font-weight: 10;
  color: #344b5b;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}


.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

.tab-button {
  background: #f5f5f0;
  border: none;
  padding: clamp(10px, 1.5vw, 12px) clamp(20px, 3vw, 25px);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 700;
  cursor: pointer;
  color: #344b5b;
  border-bottom: 5px solid transparent;
  transition: all 0.5s ease;
  border-radius: 7px 7px 7px 7px;
    white-space: nowrap; /* 👉 evita que el texto se corte en varias líneas */

}

.tab-button:hover,
.tab-button:focus {
  background: #f2f2dd;
  outline: none;
}

.tab-button.active {
  border-color: #344b5b;
  background: #e4e4be;
  color: #344b5b;
  cursor: default;
  pointer-events: none;
 
}

.tab-content {
  width: 100%;
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* NUEVO: fila con los dos selects alineados */
.form-row {
  display: flex;
  justify-content: center; /* centra los items horizontalmente */
  gap: 10px;               /* espacio entre los dropdowns */
  margin-bottom: 10px;
  flex-wrap: wrap;         /* para que en móviles bajen a la siguiente línea */
}

.form-group {
  display: flex;
  flex-direction: column;
  max-width: 250px;        /* ancho fijo razonable para cada dropdown */
  width: 100%;
}

label {
  font-weight: 20;
  margin-bottom: 10px;
  color: #344b5b;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

select {
  width: 100%;
  padding: clamp(8px, 1.5vw, 10px) clamp(12px, 3vw, 14px);
  border-radius: 7px;
  border: 1.8px solid #bbb;
  font-size: clamp(0.9rem, 2vw, 1rem);
  background-color: white;
  transition: border-color 0.3s ease;
 
}

select:focus {
  border-color: #344b5b;
  outline: none;
  background-color: #f6f6e5;
}

.fotos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 2px;
}

.foto {
  width: 180px;
  height: 200px;
  background: #fff;
  border: 1px solid #ccc;
  box-sizing: border-box;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin: 5px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 1; /* asegura que fotos estén debajo de botones */
}

.foto img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 3px;
  user-select: none;
  pointer-events: auto;
  cursor: pointer;
}


.foto button {
  width: 100%;
  margin-top: 8px;
  padding: 6px 0;
  background-color: #344b5b;
  border: none;
  border-radius: 3px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.foto button:hover {
  background-color: #2b3e4d;
}

/* Marca de agua con imagen en miniaturas */
.foto.marca-agua::after {
  content: "";
  position: absolute;
  top: 35%;
  left: 50%;
  width: 50%;
  height: 50%;
  background-image: url('marcadeagua.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.9;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  z-index: 10;
}

/* Modal */
#modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 15px;
  overflow-y: auto;
}

#modalContent {
  position: relative;
  background: white;
  padding: 20px 25px 30px;
  border-radius: 15px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
  animation: fadeIn 0.4s ease;
  position: relative; /* importante para posicionar nav-btn relativo a modalContent */
  overflow: visible;  /* para que botones salgan fuera sin ser cortados */
}

#modalImgContainer {
  position: relative;
  width: 800px;
  height: 600px;
  max-width: 90vw;
  max-height: 70vh;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}


#modalImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  pointer-events: none;
}


.modal-btns {
  display: flex;
  gap: 15px;
  width: 100%;
  justify-content: center;
}

.btn {
  cursor: pointer;
  font-weight: 700;
  border: none;
  padding: clamp(10px, 1.5vw, 12px) clamp(20px, 3vw, 28px);
  border-radius: 10px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: background-color 0.3s ease;
  user-select: none;
  min-width: 130px;
  text-align: center;
}

.btn-primary {
  background-color: #344b5b;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: #2b3e4d;
}

.btn-secondary {
  background-color: #69887f;
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #506b63;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background-color: #a71d2a;
}

button, .btn {
  font-family: 'Lato', sans-serif;
  font-weight: 700; /* negrita */
}

#botonesTurnos button.activo {
  background-color: #007bff;
  color: white;
  border: none;
  font-weight: bold;
  padding: 0.3em 0.8em;
  border-radius: 4px;
  cursor: pointer;
}
#botonesTurnos button {
  padding: 0.3em 0.8em;
  border-radius: 4px;
  border: 1px solid #007bff;
  background-color: white;
  color: #007bff;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
#botonesTurnos button:hover:not(.activo) {
  background-color: #e6f0ff;
}

/* Navegación modal fotos - botones */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #344b5b;
  color: white;
  border: none;
  font-size: clamp(2rem, 4vw, 2rem);
  padding: clamp(6px, 1vw, 14px) clamp(10px, 2vw, 14px);
  cursor: pointer;
  border-radius: 10px;
  user-select: none;
  transition: background-color 0.3s ease;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  z-index: 1002; /* Muy arriba para tapar fotos */
  /* Evitar que quede tapado y hacer clickeable */
}

.nav-btn.left {
  left: -60px;
}

.nav-btn.right {
  right: -60px;
}

.nav-btn:hover {
  background-color: #2b3e4d;
}

/* Carrito listado */
.carrito-listado ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.carrito-listado li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f6e5;
  padding: clamp(8px, 1.5vw, 12px) clamp(12px, 3vw, 15px);
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #344b5b;
}

.carrito-listado li button {
  background: #dc3545;
  padding: clamp(6px, 1vw, 10px) clamp(14px, 3vw, 16px);
  border-radius: 6px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.carrito-listado li button:hover {
  background-color: #a71d2a;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 10px;
}

/* Responsive */

@media (max-width: 700px) {
  .fotos-grid {
    grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
  }

  .nav-btn.left {
    left: 10px;
  }
  .nav-btn.right {
    right: 10px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .tabs {
    flex-direction: row;
    gap: 10px;
  }

  .tab-button {
    width: 100%;
    font-size: 1rem;
    padding: 10px;
  }

  select, button {
    width: 100%;
    font-size: 1rem;
  }

  #fotosContainer {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .modal-btns {
    flex-direction: column;
    width: 100%;
  }

  .modal-btns button {
    width: 100%;
  }

  #modalContent {
    width: 95vw;
    height: auto;
    max-height: 90vh;
    padding: 10px;
  }

  #modalImg {
    max-height: 50vh;
    width: 95% !important;
    max-width: 95% !important;
  }

  /* Ajuste para nav-btn en móvil */
  .nav-btn {
    font-size: 2rem !important;
    padding: 5px 12px !important;
    width: 40px !important;
    height: 120px !important;
    border-radius: 5px;
    z-index: 1002 !important;
  }

  .nav-btn.left {
    left: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .nav-btn.right {
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  ul {
    padding-left: 1rem;
  }

  li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 450px) {
  .nav-btn {
    font-size: 1.2rem !important;
    padding: 5px 10px !important;
    width: 35px !important;
    height: 35px !important;
    z-index: 1002 !important;
  }

  .nav-btn.left {
    left: 8px !important;
  }

  .nav-btn.right {
    right: 8px !important;
  }
}

.modal-pago {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.4s ease;
  display: flex;
}

.modal-pago > div {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
}

.carrito-listado ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.carrito-listado li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}

.carrito-listado img {
  width: 60px;
  height: auto;
  border-radius: 3px;
  border: 1px solid #ccc;
}

.carrito-listado button.btn-eliminar {
  margin-left: auto;
  background-color: #dc3545;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.carrito-listado button.btn-eliminar:hover {
  background-color: #a71d2a;
}

select option {
  text-align: center;
}
.turno-container {
  display: flex;
  align-items: flex-start;
  gap: 5px; /* espacio entre la hora y las fotos */
  margin-bottom: 1px;
}

.turno-titulo {
  min-width: 70px;
  font-weight: 600;
  font-family: 'Lato', sans-serif;
  color: #5a6a7a;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: left;
  user-select: none;
  padding-left: 15px;
  margin-top: 80px; /* ajustá este valor si la foto cambia de tamaño */
}

.fotos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-grow: 1; /* ocupa el espacio restante */
}
.foto img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}
.grupo-horario h3 {
  text-align: center;
  margin-top: 40px;
  font-size: 1.4em;
}
.fotos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}
/* Centrado de horario y grilla */
.grupo-horario {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Agrandar miniaturas en móvil */
@media (max-width: 600px) {
  .foto {
    width: 95%;
    max-width: 280px;
    height: auto;
  }

  .foto img {
    height: auto;
    max-height: 160px;
  }
}
@media (max-width: 768px) {
  #modalContent {
    max-height: 80vh;   /* Máximo 80% de la altura de la ventana */
    height: auto;       /* Que se ajuste al contenido */
    padding-bottom: 10px;
  }

  #modalImgContainer {
    max-height: 80vh;   /* Que la imagen no supere el 70% de la ventana */
    height: auto;
  }

  #modalImg {
    max-height: 100%;
    height: auto;
  }
}

/* En tu estilos.css */
.modal-pago {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}
.modal-pago > div {
  background: #fff;
  padding: 20px;
  max-width: 90%;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
}

/* --- Solo agregar estas partes al archivo existente --- */

/* Contenedor fijo para botones turno */
#botonesTurnos {
  display: flex;
  flex-wrap: wrap;               /* permite saltar de línea */
  justify-content: center;       /* centra horizontalmente */
  gap: 5px 5px;                /* espacio entre botones (fila y columna) */
  margin: 15px 0;
  padding: 10px 0;
  background: white;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 20;
}

#botonesTurnos button {
  padding: 6px 12px;
  font-size: 0.9rem;
  min-width: 60px;               /* ancho mínimo razonable */
  max-width: 90px;              /* ancho máximo */
  width: auto !important;        /* evita que se estiren */
  border-radius: 6px;
  border: 1.8px solid #344b5b;
  background-color: white;
  color: #344b5b;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  white-space: nowrap;
  flex: 0 0 auto;
  box-sizing: border-box;
  margin: 1px 0;                 /* espacio vertical extra opcional */
}



#botonesTurnos button.activo {
  background-color: #344b5b;
  color: #e4e4be; /* texto claro sobre fondo oscuro */
  cursor: default;
  pointer-events: none;
}

#botonesTurnos button:hover:not(.activo) {
  background-color: #e4e4be;
  color: #344b5b;
}


/* Contenedor fotos turno */
#fotosTurno {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

/* Ajustes para la grilla de fotos */
.foto {
  width: 180px;
  height: 160px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin: 5px;
  position: relative;
  cursor: default;
  transition: box-shadow 0.3s ease;
}

.foto:hover {
  box-shadow: 0 0 10px #007bffaa;
}

/* Responsive para fotos */
@media (max-width: 600px) {
  #botonesTurnos {
    top: 0px;
  }

  .foto {
    width: 95%;
    max-width: 280px;
    height: auto;
  }

  .foto img {
    height: auto;
    max-height: 160px;
  }
}

/* Estilo cuando el botón está en modo "agregado", aplica tanto a miniaturas como al modal */
button.agregado {
  background-color: #e4e4be !important;
  color: #344b5b !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button.agregado:hover {
  background-color: #d6d6a8 !important;
}

#modalTransferencia p {
  line-height: 1;     /* Reduce espacio entre líneas */
  margin: 4px 0;         /* Reduce espacio entre párrafos */
}
#botonesTransferencia {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

#botonesTransferencia .btn {
  min-width: 130px;
  padding: 10px 16px;
  font-size: 16px;
  text-align: center;
}
#btnVolverArriba {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background-color: #344b5b;
  color: #e4e4be;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 25px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  width: auto;
  height: auto;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Solo en móviles */
@media (max-width: 768px) {
  #btnVolverArriba {
    display: block;
    opacity: 0;
    pointer-events: none;
  }

  #btnVolverArriba.show {
    opacity: 1;
    pointer-events: auto;
  }
}
#botonesPago {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 30px 0;
}

#botonesPago button {
  width: 250px;
}
.texto-importante {
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  line-height: 1.4;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center; /* opcional, para centrar como el modal */
}
#btnPagarMP {
  background-color: #ffe600;
  color: #344b5b;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 👉 alinea contenido a la izquierda */
  gap: 10px;                   /* espacio entre logo y texto */
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 10px;
}

#btnPagarMP img {
  height: 24px;
  width: auto;
}
/* Modal general */
#modalComoPagar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 15px;
  box-sizing: border-box;
}

/* Contenedor interno */
#modalComoPagar > div {
  max-width: 600px;   /* ancho móvil */
  width: 90%;
  margin: auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-sizing: border-box;
}

/* Más ancho en pantallas grandes */
@media (min-width: 768px) {
  #modalComoPagar > div {
    max-width: 1920px;
    width: 90%;
  }
}

/* Estilo para las pestañas */
.tabs-pago {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

/* Botones de pestañas */
.tab-btn {
  flex: 1;
  padding: 10px 15px;
  background: #f0f0f0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.tab-btn:hover {
  background: #ddd;
}

.tab-btn.active {
  background: #0055cc;
  color: white;
}

/* Contenido de cada pestaña */
.contenido-pestania {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #333;
}

/* Botón cerrar */
#modalComoPagar button.btn-secondary {
  display: block;
  margin: 20px auto 0;
  padding: 10px 25px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}
@media (max-width: 767px) {
  .tabs {
    flex-wrap: wrap; /* Permite que los botones puedan saltar a otra línea */
  }
  .tabs .tab-button:nth-child(3) {
    flex-basis: 100%;   /* Ocupa toda la línea */
    max-width: 300px;   /* Ancho máximo para que no sea muy ancho */
    margin: 10px auto 0 auto; /* Margen arriba y centrado horizontal */
    display: block;     /* Para que tome todo el ancho posible */
  }
}
#modalComoPagar {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center; /* Centrado vertical */
  z-index: 99999;
  padding: 15px;
  box-sizing: border-box;
  overflow-y: auto;
}

#modalComoPagar > div {
  max-width: 600px;
  width: 90%;
  margin: auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-sizing: border-box;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

/* Para móviles, que tenga más padding arriba y abajo, y que el contenido no quede pegado */
@media (max-width: 600px) {
  #modalComoPagar {
    align-items: flex-start; /* que empiece desde arriba y pueda hacer scroll */
    padding-top: 40px;
    padding-bottom: 40px;
  }

  #modalComoPagar > div {
    max-height: calc(100vh - 80px);
  }
}
/* Por defecto (escritorio): deja el botón como está */
.contenedor-como-pagar {
  display: flex;
  justify-content: flex-end; /* o lo que tenías antes */
  margin-top: 0px;
}

/* Solo en móvil, mueve el botón debajo de las pestañas */
@media (max-width: 768px) {
  .contenedor-como-pagar {
    justify-content: center;
    margin: 0px 0;
    order: 3; /* fuerza a que aparezca después si está dentro de flex */
  }

  .tabs + .contenedor-como-pagar {
    display: flex;
  }
}
#modalTransferencia {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto; /* 👉 permite scroll si el contenido es muy largo */
}

#modalTransferencia > div {
  max-height: 90vh;       /* 👉 limita la altura del contenido */
  overflow-y: auto;       /* 👉 hace scroll interno dentro del modal */
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

.select-pequeno {
  width: 200px;
  max-width: 100%;
  padding: 6px 8px;
  font-size: 0.9em;
  border-radius: 4px;
  border: 1px solid #ccc;
  appearance: none; /* para quitar estilos por defecto en algunos navegadores */
  background-color: white;
  cursor: pointer;
}

