/* ================= ESTILOS GENERALES ================= */
@import url('/fonts/');
body {
  background-color: #fcfcf6;
  font-family: 'Dutch 811', serif;
  overflow-x: hidden;
}

.logo-svg-left {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  text-align: left;
}

.animated-logo {
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.9;
}

.animated-logo:hover {
  transform: scale(1.1);
  opacity: 1;
}

.link-rotate-hover {
  display: inline-block;
  text-decoration: none;
}

.link-rotate-hover .footer-title {
  transition: transform 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
}

.link-rotate-hover:hover .footer-title {
  transform: rotate(-1deg) scale(1.05);
  color: #d9888f; /* Cambia por tu color preferido */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}




.hero-section {
  text-align: left;
}



/* Apply sidebar-open styles to body when needed */
body.sidebar-open {
  overflow: hidden;
  height: 100vh;
}

/* Ocultar botón hamburguesa cuando un modal está abierto */
body.modal-open .hamburger-btn {
  display: none !important;
}

.main-content {
  margin-left: 50px; /* Ajustado para coincidir con el nuevo ancho de la barra lateral */
  padding: 20px;
  background-color: #f2f2f2;
}

.hero-section {
  padding-top: 60px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  text-align: left;
  padding-left: 2rem;
}

.hero-section h1 {
  font-size: 10.6rem;
  font-weight: bold;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.photo-essays-label {
  font-size: 1.5rem;
  font-family: monospace;
  border-bottom: 2px solid #262522;
  display: inline-block;
  margin-top: 20px;
}

.scroll-line {
  height: 1.5px;
  background-color: #232323;
  opacity: 0.5;
  margin: 20px auto;
  border: none;
  width: 100%;
  max-width: 1600px;
}

/* Responsive adjustments for the scroll line */
@media (max-width: 1600px) {
  .scroll-line {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  .scroll-line {
    max-width: 90%;
    margin: 15px auto;
  }
}

@media (max-width: 576px) {
  .scroll-line {
    max-width: 85%;
    margin: 10px auto;
  }
}

.gallery-img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.02);
}

/*Tipo grafias*/
@font-face {
  font-family: 'Stara';
  src: url('fonts/Stara-Black.ttf') format('truetype');
  font-weight: 900;
}

@font-face {
  font-family: 'Stara';
  src: url('fonts/Stara-Bold.ttf') format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: 'Stara';
  src: url('fonts/Stara-Medium.ttf') format('truetype');
  font-weight: 500;
}

h1, h2 {
  font-weight: 900; /* Black */
}

h3, h4 {
  font-weight: 700; /* Bold */
}

p, span {
  font-weight: 500; /* Medium */
}


body {
  font-family: 'Stara', sans-serif;
}

/* ================= ESTILOS PARA GALERÍA BEYOND35 ================= */

/* Contenedor principal de la galería */
#galeria {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Manejo de imágenes en la galería */
.gallery-img {
  aspect-ratio: 4/3;  
  object-fit: contain !important;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.02);
}

/* Etiquetas laterales */
.sidebar-labels {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  font-family: 'Stara', sans-serif;
  font-size: 0.8rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 900;
  width: 50px;
  text-align: center;
  background-color: #ffffff;
}

.sidebar-label {
  padding: 1rem 0;
  text-transform: uppercase;
  font-weight: 500;
  color: #000;
}

/* Estilos para texto y etiquetas en la galería */
#galeria h5 {
  font-family: 'Stara', sans-serif;
  font-weight: 500;
  font-size: 1rem;
}

#galeria .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  background-color: transparent;
  border-color: #ccc;
}

/* Media queries para responsividad de la galería */
@media (max-width: 768px) {
  #galeria .row {
    margin-bottom: 0 !important;
  }
  
  #galeria .col-md-3 {
    margin-bottom: 2rem;
  }
  
  /* Ajuste de etiquetas laterales en móvil */
  .sidebar-labels {
    display: none; /* Ocultar en móvil ya que usamos el menú hamburguesa */
  }
}

/* Clases de animación para el efecto reveal */
.reveal-me {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-me.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= FOOTER ================= */
.footer {
  color: #f2f2f2;
  position: relative;
  z-index: 3;
}

.footer-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background: #8bbbd9;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #b4b6bb;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #8bbbd9;
  transform: translateY(-3px);
}

.newsletter-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
}

.newsletter-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #8bbbd9;
  color: #ffffff;
  box-shadow: none;
}

/* Specific form control styling within the footer */
.footer .form-control {
  background-color: #f2f2f2 !important; /* Use !important carefully */
  color: #262522 !important;
  border: none;
}

.footer .form-control::placeholder {
  color: #888888;
}

.footer .form-control:focus {
  box-shadow: none;
  outline: none;
  background-color: #ffffff !important; /* Use !important carefully */
  border: 1px solid #8bbbd9;
}

.btn-subscribe {
  background: #8bbbd9;
  border: none;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-subscribe:hover {
  background: #7aa6c2; /* Slightly darker shade on hover */
  transform: translateY(-2px);
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  /* Assumed padding/margin needed based on context, add if necessary */
  /* padding: 1rem 0; */
  /* text-align: center; */
}

.footer-bottom a {
  color: #8bbbd9;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ================= MENÚ LATERAL ESTILO HEY BARISTA ================= */
/* Sidebar / Menú vertical (Desktop) */
.sidebar-modern .menu-header {
  display: none; /* Oculto en escritorio */
}

/* Lista vertical con distribución uniforme */
.sidebar-modern {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 100vh;
  background-color: #f2f2f2;
  border-right: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0; /* importante: sin padding vertical */
  z-index: 1100;
}

.sidebar-modern .menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centrado vertical */
  height: 100%;
  width: 100%;
  gap: 2.5rem; /* espacio entre ítems */
  padding-bottom: 60px; /* separación con icono inferior */
}


.sidebar-modern .menu-items li {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  width: 100%;
  text-align: center;
  margin-left: 18px;
  margin-right: 0px;
}


/*Tipografia Menu*/
.sidebar-modern .menu-items a {
  text-decoration: none;
  color: #000;
  font-weight: medium;
  text-transform: uppercase;
  font-family: 'Stara', sans-serif; /* Usamos Stara como tipografía principal */
  font-style: normal;
  font-size: 1.2rem;
  letter-spacing: 2px;
  transition: color 0.3s;
  display: block;
  width: 100%;
}

.sidebar-modern .menu-items a:hover {
  color: #7AA6C2;
}

/* Iconos sociales en la barra lateral - REEMPLAZADO POR ICONO DE BÚSQUEDA */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 20px;
  width: 100%;
  left: 0;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #fff;
  color: #333;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-icons a:hover {
  background: #7AA6C2;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Botón hamburguesa (Mobile) - Inicialmente oculto */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2100;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #262522;
  cursor: pointer;
  padding: 0;
  outline: none;
  width: 50px;
  height: 50px;
}

/* Contenedor circular con efecto glass para hamburguesa */
.hamburger-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: -1; /* Detrás del ícono */
  transition: all 0.3s ease;
}

.hamburger-btn:hover::before {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Botón cerrar (Mobile) - Inicialmente oculto */
.close-btn {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 2101; /* Encima del menú móvil */
}



/* ================= MODALES PERSONALIZADOS ================= */

/* Estilos para modales personalizados */
.custom-modal {
  background-color: #fcfcf6;
}

.modal-dialog-scrollable .modal-content {
  max-height: 90vh;
}

.modal-xl {
  max-width: 90vw;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

/* ===================== CONTACTO CUSTOM ===================== */
.contact-section {
  background-color: #fcfcf6;
  padding: 5rem 1rem;
  position: relative;
  z-index: 2;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form .form-control {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.contact-form .btn-primary {
  background-color: #8bbbd9;
  border: none;
  color: white;
  font-weight: bold;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.contact-form .btn-primary:hover {
  background-color: #659cc0;
}

.map-section iframe {
  width: 100%;
  height: 60vh;
  border: none;
}

/* ================= ABOUT PAGE STYLES ================= */
.about-hero {
  position: relative;
  height: 70vh; /* Altura default */
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  background-color: #262522; /* Fallback color */
}

.hero-image-container { /* Contenedor para la imagen parallax */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Detrás del overlay y contenido */
}

.about-hero-image {
  width: 100%;
  height: 120%; /* Más alto para permitir movimiento parallax */
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform; /* Optimización */
  transition: transform 0.05s linear; /* Suavizado para parallax */
}

.overlay { /* Overlay oscuro sobre la imagen */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1; /* Encima de la imagen, debajo del contenido */
}

.about-hero-content {
  position: relative;
  z-index: 2; /* Encima del overlay */
  max-width: 700px;
  padding: 2rem;
  background-color: rgba(252, 252, 246, 0.9);
  border-left: 5px solid #262522;
  margin-left: 4rem; /* Margen default */
}

/* Sección de estadísticas con fondo parallax */
.parallax-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 6rem 0;
  z-index: 1;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #262522;
  z-index: -1;
  transform: translateZ(0); /* Ayuda a activar aceleración por hardware */
}

.stats-container {
  position: relative; /* Para que el contenido esté sobre el fondo parallax */
  color: white;
  padding: 0; /* El padding está en .parallax-section */
}

.stats-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Espaciado lateral */
}

.stats-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 -15px; /* Compensar padding de stat-item */
}

.stat-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 1.5rem 15px; /* Padding vertical y horizontal */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 4rem;
  font-weight: bold;
  font-family: 'Dutch 811', serif;
  margin-bottom: 1rem;
  color: white;
  position: relative;
}

/* Añadir '+' por defecto */
.stat-number::after {
  content: "+";
  position: absolute;
  font-size: 2.5rem;
  top: 0;
  margin-left: 5px;
}

/* Quitar '+' para números específicos */
.stat-number[data-count="35"]::after,
.stat-number[data-count="15000"]::after {
  content: "";
}

.stat-text {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Sección Equipo */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  /* padding: 4rem 0; */ /* Consider adding padding to the container section */
}

.team-member {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.team-member img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block; /* Evita espacio extra debajo de la imagen */
}

.team-member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1.5rem;
  color: white;
  transform: translateY(0); /* Estado inicial */
  transition: transform 0.3s ease, opacity 0.3s ease; /* Añadir opacity */
  opacity: 1; /* Asegurar visibilidad inicial */
}

.team-member:hover img {
  transform: scale(1.05);
}

.team-member:hover .team-member-info {
  /* transform: translateY(-10px); */ /* Un ligero deslizamiento puede ser sutil */
  /* Podrías querer asegurar que siempre sea visible */
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.1)); /* Más oscuro al hacer hover */
}

/* Sección Testimonios */
.testimonial-section {
  background-color: #f8f8f2;
  padding: 6rem 0;
  position: relative;
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 2rem; /* Espacio entre tarjetas si hay varias */
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2.5rem; /* Aumentado para dar espacio a la comilla */
}

.testimonial-quote::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  position: absolute;
  left: -0.5rem; /* Ajustado a la izquierda */
  top: -1rem; /* Ajustado arriba */
  color: #e1e1e1;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

/* Sección Valores */
.value-item {
  display: flex;
  align-items: flex-start; /* Alinear al inicio */
  margin-bottom: 3rem;
}

.value-icon {
  background-color: #f2f2f2;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem; /* Tamaño del ícono (si es font icon) */
  color: #262522; /* Color del ícono */
  margin-right: 1.5rem;
  flex-shrink: 0; /* Evita que el ícono se encoja */
}

.value-content h5 { /* Asumiendo que hay un título */
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.value-content p { /* Asumiendo que hay un párrafo */
  margin-bottom: 0;
  color: #555; /* Un color un poco más suave para el texto */
}

/* Sección CTA */
.cta-section {
  background-color: #262522;
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 2rem;
  font-weight: bold; /* Hacerlo más destacado */
}

.btn-primary { /* Estilo general para botones primarios */
  background-color: #8bbbd9;
  border: none;
  color: #ffffff; /* Asegurar texto blanco */
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none; /* Si se usa como enlace */
  display: inline-block; /* Para aplicar padding correctamente */
  border-radius: 4px; /* Bordes redondeados suaves */
}

.btn-primary:hover {
  background-color: #7aa6c2;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Sombra más pronunciada */
}

/* ========== MEDIA QUERIES ========== */

/* Para pantallas más pequeñas pero aún desktop (ajuste menú vertical) */
@media (max-height: 600px) {
  .sidebar-modern .menu-items li {
    margin: 1.5rem 0; /* Reducir espacio */
  }
  .sidebar-modern .menu-items a {
    font-size: 1.5rem; /* Texto más pequeño */
  }
}

/* Corrección para el menú lateral (sidebar) */
/* Asegurar que el sidebar esté visible en desktop */
@media (min-width: 769px) {
  .sidebar-modern {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    width: 50px; /* Ajustado al nuevo ancho */
    height: 100vh;
    padding: 2rem 0;
    background-color: #ffffff; /* Mantener el nuevo color */
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Asegurar que los elementos estén orientados correctamente */
  .sidebar-modern .menu-items li {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
  }
  
  .sidebar-modern .menu-items a {
    color: #000;
  }
  
  /* Ocultar elementos que solo deben aparecer en móvil */
  .sidebar-modern .menu-header {
    display: none;
  }
  
  .close-btn {
    display: none;
  }
  
  .main-content {
    margin-left: 50px; /* Ajustar el margen para que coincida con el ancho del menú */
  }
  
  /* Ajustes para el ícono de búsqueda en desktop */
  .social-icons {
    bottom: 30px;
  }
}

/* Media queries para tablets y móviles */
@media (max-width: 992px) {
  .main-content {
    margin-left: 50px; /* Ajustado al nuevo ancho */
  }
  
  .sidebar-modern {
    width: 50px; /* Mantener el nuevo ancho */
  }
  
  .sidebar-modern .vertical-label {
    display: none;
  }
  
  .stat-item {
    flex-basis: 50%; /* Dos por fila */
    min-width: 150px; /* Reducir ancho mínimo */
    padding: 1.5rem 10px; /* Ajustar padding */
  }
  
  /* Ajustes para modales grandes */
  .modal-xl {
    max-width: 95%;
  }
}

/* Tablets y móviles pequeños (Debajo de 768px) */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0; /* Quitar margen izquierdo */
  }

  /* Mostrar el botón hamburguesa */
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Ocultar menú desktop y preparar menú móvil */
  .sidebar-modern {
    display: none; /* Oculto hasta que se muestre */
    width: 100%;
    height: 100vh;
    background: rgba(38, 37, 34, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    transform: translateY(-10px); /* Efecto de entrada */
    flex-direction: column; /* Asegurar dirección vertical */
    justify-content: flex-start; /* Alinear arriba */
    align-items: center; /* Centrar horizontalmente */
    overflow-y: auto; /* Permitir scroll si el contenido es largo */
  }
  
  /* Estilos cuando el menú móvil está visible */
  .sidebar-modern.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden; /* Evitar scroll del body */
    overscroll-behavior: contain; /* Evitar scroll chaining */
  }

  .sidebar-modern.show .menu-header {
    display: block; /* Mostrar cabecera si existe */
    width: 100%;
    text-align: right; /* Para posicionar el botón de cierre */
    padding-bottom: 1rem; /* Espacio antes de los items */
  }

  /* IMPORTANTE: Corregido para forzar orientación horizontal en móvil */
  @media (max-width: 768px) {
  .sidebar-modern.show .menu-items {
    margin-top: 3rem;
    text-align: center;
    width: 100%;
    height: auto; /* Ajustar altura al contenido */
    flex-direction: column; /* Asegurar disposición vertical */
    align-items: center;
  }

  .sidebar-modern.show .menu-items li {
    writing-mode: horizontal-tb !important; /* Forzar orientación horizontal */
    transform: none !important; /* Eliminar rotación */
    margin: 1.5rem 0; /* Espaciado vertical */
    white-space: normal; /* Permitir que el texto se ajuste */
  }

  .sidebar-modern.show .menu-items a {
    color: #fff;
    font-size: 1.6rem;
    padding: 1rem; /* Más área de toque */
    display: inline-block; /* Asegurar que ocupe el ancho necesario */
  }

  .sidebar-modern.show .menu-items a:hover {
    color: #ff3b30; /* Color hover específico móvil */
  }

  /* Mostrar el botón cerrar solo cuando el menú está abierto */
  .sidebar-modern.show .close-btn {
    display: block;
    position: absolute; /* Asegurar posicionamiento correcto */
    top: 1.5rem; /* Ajustar posición */
    right: 1.5rem; /* Ajustar posición */
    left: auto; /* Resetear left */
  }
  
/* Mostrar icono de búsqueda en modo móvil */
.sidebar-modern.show .social-icons {
  position: relative;
  bottom: auto;
  margin-top: 2rem;
  flex-direction: row;
  justify-content: center;
}

.sidebar-modern.show .social-icons a {
  margin: 0;
}
}

  /* Ajustes About Hero */
  .about-hero {
    height: 60vh; /* Menor altura en móvil */
  }
  
  .about-hero-content {
    margin-left: 1.5rem; /* Menor margen */
    margin-right: 1.5rem; /* Añadir margen derecho */
    padding: 1.5rem; /* Menor padding */
    max-width: none; /* Permitir que ocupe más ancho */
    border-left-width: 3px; /* Borde más delgado */
  }

  /* Ajustes Hero Section General */
  .hero-section h1 {
    font-size: 6rem; /* Reducir tamaño de fuente */
  }
  
  .photo-essays-label {
    font-size: 1.2rem;
  }

  /* Ajustes de Modales en Móviles */
  .modal-xl, .modal-lg {
    max-width: 100%;
    margin: 0.5rem;
  }
  
  .modal-dialog-scrollable .modal-body {
    padding: 0;
  }

  /* Ajustes para modal de contacto */
  .contact-form {
    padding: 1.5rem;
  }
  
  .map-section {
    height: 50vh;
  }
}

/* Móviles muy pequeños (Debajo de 576px) */
@media (max-width: 576px) {
  /* Hero Section */
  .hero-section h1 {
    font-size: 4.5rem; /* Aún más pequeño */
  }

  /* Estadísticas */
  .stat-item {
    flex-basis: 100%; /* Uno por fila */
  }
  
  .stat-number {
    font-size: 3rem; /* Reducir tamaño */
  }
  
  .stat-number::after {
    font-size: 2rem; /* Reducir tamaño del '+' */
  }
  
  .stat-text {
    font-size: 1rem;
  }

  /* About Hero Content */
  .about-hero-content {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1rem;
  }

  /* Footer */
  .footer-title {
    font-size: 1.2rem;
  }
  
  .footer .col-md-4, .footer .col-lg-3, .footer .col-lg-2 {
    margin-bottom: 2rem; /* Añadir espacio entre columnas en móvil */
    text-align: center; /* Centrar contenido del footer */
  }
  
  .footer-title::after {
    left: 50%; /* Centrar línea bajo el título */
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center; /* Centrar iconos sociales */
  }
  
  .newsletter-form .input-group {
    flex-direction: column; /* Apilar input y botón */
  }
  
  .newsletter-form .form-control {
    margin-bottom: 0.5rem;
    border-radius: 4px !important; /* Reaplicar border-radius */
  }
  
  .newsletter-form .btn-subscribe {
    width: 100%; /* Botón ancho completo */
    border-radius: 4px;
  }
  
  .map-section {
    height: 40vh;
  }
  
/* Mobile Signature Modal Refinements */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 1rem auto;
    max-width: calc(100% - 2.5rem); /* Slightly more margin on sides */
    width: 100%;
  }

  .modal-content {
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #262522;
    margin: 0;
    border: none;
    width: 100%;
    position: relative;
  }

  /* Adjust modal position */
  .modal {
    padding: 0 !important; /* Remove default padding */
  }

  .modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 2rem);
  }

  /* Content spacing adjustments */
  .modal-content h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    padding-right: 2rem; /* Space for close button */
  }

  .modal-content p {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: #ffffff;
    padding: 0;
  }

  /* Form field adjustments */
  .modal-content input[type="text"],
  .modal-content input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
  }

  /* Close button positioning */
  .modal .close {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    color: #ffffff;
    opacity: 0.8;
    font-size: 1.5rem;
    padding: 0.5rem;
    z-index: 1;
  }

  /* Submit button adjustments */
  .modal-content .btn-primary {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: 4px;
    background-color: #8bbbd9;
    border: none;
    color: #ffffff;
    font-weight: 500;
  }
}

/* Extra Small Devices */
@media (max-width: 320px) {
  .modal-dialog {
    margin: 0.75rem auto;
    max-width: calc(100% - 2rem);
  }

  .modal-content {
    padding: 1.25rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .modal-content p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
}

/* Small Mobile Devices (iPhone SE, etc.) */
@media (max-width: 400px) {
  .modal-dialog {
    margin: 0.75rem auto;
    max-width: calc(100% - 3rem); /* Increased side margins */
    width: 100%;
  }

  .modal-content {
    padding: 1.25rem;
    border-radius: 6px;
  }

  /* Adjust content spacing */
  .modal-content h2 {
    font-size: 1.625rem;
    margin-bottom: 0.875rem;
    padding-right: 2.5rem; /* More space for close button */
  }

  .modal-content p {
    font-size: 0.9375rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
  }

  /* Form adjustments */
  .modal-content input[type="text"],
  .modal-content input[type="email"] {
    padding: 0.625rem;
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
  }

  .modal-content label {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
  }

  /* Close button */
  .modal .close {
    right: 1rem;
    top: 1rem;
    font-size: 1.25rem;
  }

  /* Submit button */
  .modal-content .btn-primary {
    padding: 0.625rem;
    font-size: 0.9375rem;
  }
}

/* Extra Small Devices - Additional Refinements */
@media (max-width: 320px) {
  .modal-dialog {
    margin: 0.5rem auto;
    max-width: calc(100% - 2rem);
  }

  .modal-content {
    padding: 1rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .modal-content p {
    font-size: 0.875rem;
  }
}

/* iPhone SE and Similar (375px width) Specific Adjustments */
@media screen and (max-width: 375px) {
  .modal-dialog {
    margin: 0.75rem auto;
    max-width: 335px; /* Fixed width for 375px screens */
    width: calc(100% - 2.5rem); /* Fallback with margins */
  }

  .modal-content {
    padding: 1.25rem;
    border-radius: 8px;
    margin: 0 auto; /* Ensure centering */
    width: 100%;
  }

  /* Title adjustments */
  .modal-content h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.875rem;
    padding-right: 2rem;
  }

  /* Description text */
  .modal-content p {
    font-size: 0.9375rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
  }

  /* Form fields */
  .modal-content input[type="text"],
  .modal-content input[type="email"] {
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    height: 42px; /* Fixed height for better touch targets */
  }

  /* Labels */
  .modal-content label {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    display: block;
  }

  /* Close button */
  .modal .close {
    right: 0.875rem;
    top: 0.875rem;
    padding: 0.5rem;
    font-size: 1.25rem;
  }

  /* Submit button */
  .modal-content .btn-primary {
    height: 42px; /* Match input height */
    font-size: 1rem;
    margin-top: 0.75rem;
  }

  /* Modal positioning */
  .modal-dialog-centered {
    min-height: calc(100% - 1.5rem);
  }
}

/* Ensure modal fits on very short heights */
@media screen and (max-width: 375px) and (max-height: 667px) {
  .modal-dialog {
    margin: 0.5rem auto;
  }

  .modal-content {
    padding: 1.125rem;
  }

  .modal-content h2 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
  }

  .modal-content p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
}

/* Gallery Metadata Alignment Fixes */
.gallery-metadata {
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.gallery-info-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-author {
  font-family: 'Stara', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #262522;
  margin-bottom: 0.25rem;
  width: 100%;
}

.gallery-date {
  font-family: monospace;
  font-size: 0.875rem;
  color: #666;
  white-space: nowrap;
}

.gallery-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #262522;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Custom Modal Styles - No Backdrop */
.modal-backdrop {
  display: none !important;
}

.modal-backdrop.show,
.modal-backdrop.fade {
  opacity: 0 !important;
  background: transparent !important;
}

.modal,
.modal.show,
.modal.fade {
  background-color: transparent !important;
  pointer-events: none;
}

.modal-dialog {
  pointer-events: auto;
}

.modal-content {
  background-color: #262522;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Fix Body Scroll */
body.modal-open,
html.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

.modal-backdrop {
  display: none !important;
}

.modal {
  background: transparent !important;
}

.modal.show .modal-dialog {
  background: transparent;
}

body.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}
}

/* ================= animacion hover nombre ================= */
#galeria .gallery-item .gallery-caption h5 {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease, font-weight 0.3s ease;
  cursor: pointer;
  font-weight: normal;
}

#galeria .gallery-item:hover .gallery-caption h5 {
  color: #8bbbd9 !important;
  transform: translateY(-2px);
  font-weight: bold;
}

/* Efecto de subrayado animado */
#galeria .gallery-item .gallery-caption h5::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #8bbbd9;
  transition: width 0.4s ease;
  visibility: hidden;
}

#galeria .gallery-item:hover .gallery-caption h5::after {
  width: 100%;
  visibility: visible;
}


/* ------------Estilos base para los badges------------- */
.gallery-item .badge {
  transition: all 0.3s ease;
}

/* Colores del patrón para los badges */
#gallery-item-1 .badge,
#gallery-item-5 .badge,
#gallery-item-9 .badge,
#gallery-item-13 .badge {
  border-color: #d98f8f !important;
  color: #d98f8f !important;
}

#gallery-item-2 .badge,
#gallery-item-6 .badge,
#gallery-item-10 .badge,
#gallery-item-14 .badge {
  border-color: #ddafb4 !important;
  color: #ddafb4 !important;
}

#gallery-item-3 .badge,
#gallery-item-7 .badge,
#gallery-item-11 .badge {
  border-color: #8bbbd9 !important;
  color: #8bbbd9 !important;
}

#gallery-item-4 .badge,
#gallery-item-8 .badge,
#gallery-item-12 .badge {
  border-color: #659cc0 !important;
  color: #659cc0 !important;
}

/* ================= Subrayado curvo sobre Beyond 35 ================= */
