/* Reset Básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  background-color: #f9f9f9;
}

/* Header Fijo */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 12px 24px;
}

.navbar-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo & Marca */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.brand-icon {
  font-size: 32px;
  font-weight: 800;
  color: #b38e5d; /* Tono dorado/bronce del ícono */
  font-family: serif;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}

.brand-title {
  color: #a81c24; /* Rojo/Guinda */
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  color: #a81c24;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.5px;
}

/* ==========================================
   Estilos de Escritorio / Base
   ========================================== */
.navbar {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  z-index: 1000;
}

.navbar-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-text img {
  display: block;
  height: auto;
}

/* Ocultar elementos de control móvil en escritorio */
.menu-toggle,
.hamburger-btn {
  display: none;
}

/* Menú de navegación horizontal */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  text-decoration: none;
  color: #4a4a4a;
  font-size: 1.35rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #a81c24;
}

.nav-link.highlight {
  color: #c49a62;
  font-weight: 600;
}

.separator {
  color: #ccc;
  font-size: 14px;
  user-select: none;
}

/* Botón de 9 puntos */
.grid-icon-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  margin-left: 4px;
}

.grid-icon-btn:hover {
  color: #000000;
}


/* ==========================================
   Versión Responsiva (Pantallas < 900px)
   ========================================== */
@media (max-width: 900px) {
  
  /* Botón Hamburguesa */
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger-btn .bar {
    width: 100%;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Ocultar los separadores horizontales en móviles */
  .separator {
    display: none;
  }

  /* Transformar la lista en desplegable vertical */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out, padding 0.35s ease;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
  }

  .nav-link {
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
  }

  .grid-icon-btn {
    width: 100%;
    padding: 14px 24px;
    justify-content: flex-start;
  }

  /* Desplegar el menú cuando el checkbox está activo */
  .menu-toggle:checked ~ .nav-menu {
    max-height: 450px;
    padding: 8px 0;
  }

  /* Animación a 'X' del icono hamburguesa */
  .menu-toggle:checked ~ .hamburger-btn .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle:checked ~ .hamburger-btn .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .hamburger-btn .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Botón Ícono Grid */
.grid-icon-btn {
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.grid-icon-btn:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* Reseteo básico para asegurar que ocupe todo el ancho */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Sección independiente que abarca el 100% del ancho de la pantalla */
.carousel-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background-color: #111;
}

.carousel-container {
  position: relative;
  width: 100%;
}

/* Pista de deslizamiento */
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Oculta la barra de desplazamiento */
  scrollbar-width: none; 
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Cada diapositiva ocupa el 100% del ancho del viewport */
.carousel-slide {
  flex: 0 0 100vw;
  width: 100vw;
  position: relative;
  scroll-snap-align: start;
}

.carousel-slide img {
  width: 100%;
  height: 80vh; /* Ajusta la altura del carrusel según prefieras */
  object-fit: cover;
  display: block;
}

/* Texto superpuesto sobre la imagen */
.slide-caption {
  position: absolute;
  bottom: 20%;
  left: 8%;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  max-width: 500px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 8px;
}

.slide-caption h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.slide-caption p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* Indicadores de navegación (Puntos) */
.carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-nav a {
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.carousel-nav a:hover {
  background-color: #fff;
  transform: scale(1.2);
}
/* Estilos globales y reseteo básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Sección principal */
.about-section {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333333;
}

/* Título de la sección */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 40px;
  color: #1a1a1a;
  text-transform: uppercase;
}

/* Layout en dos columnas */
.about-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* Columna de imagen */
.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

/* Columna de texto */
.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}

/* Botón estilo píldora */
.btn-more {
  display: inline-block;
  align-self: flex-start;
  margin-top: 10px;
  padding: 10px 28px;
  border: 1.5px solid #000;
  border-radius: 50px;
  color: #000;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-more:hover {
  background-color: #000;
  color: #fff;
}

/* Adaptabilidad a dispositivos móviles */
@media (max-width: 850px) {
  .about-container {
    flex-direction: column;
    gap: 30px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
}
/* Reseteo para ancho completo */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Contenedor principal que fuerza 100% del ancho de la pantalla */
.cards-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 20px;
  background-color: #fff;
}

/* Grid de 3 columnas de igual tamaño */
.cards-grid {
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  width: 80%;
}

/* Tarjeta individual */
.card-item {
  position: relative;
  height: 60vh; /* Altura de la tarjeta ajustada a la pantalla */
  min-height: 450px;
  overflow: hidden;
  border-radius: 4px;
}

.card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Capa oscura superpuesta */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

.card-item:hover .card-overlay {
  background: rgba(0, 0, 0, 0.3);
}

/* Texto centrado principal */
.card-title {
  color: #ffffff;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
}

/* Adaptabilidad para móviles y tablets */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card-item {
    height: 350px;
  }
}

/* Reseteo básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Sección independiente al 100% del ancho de pantalla */
.social-divider-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 40px 0;
  background-color: #ffffff;
}

/* Contenedor relativo para trazar la línea horizontal detrás */
.social-divider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Línea fina horizontal continua que atraviesa toda la pantalla */
.social-divider-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #b5a99a; /* Color gris/dorado fino de la línea */
  z-index: 1;
}

/* Bloque central de íconos con fondo blanco para ocultar la línea detrás */
.social-icons {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  padding: 0 30px; /* Espacio para que la línea no toque los íconos */
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Botones circulares en color guinda/rojo oscuro */
.social-icon {
  width: 44px;
  height: 44px;
  background-color: #be1e2d; /* Rojo/Guinda de los círculos */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Efecto hover */
.social-icon:hover {
  transform: scale(1.1);
  background-color: #9c1523;
}

/* Sección de mapa en ancho completo */
.map-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 450px; /* Ajusta la altura del mapa según tus necesidades */
  overflow: hidden;
  background-color: #e5e3df; /* Color neutro mientras carga */
}

/* Estilos para el mapa de Google Maps */
.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Opcional: escala de grises suave para integrarse mejor con el diseño */
  /* filter: grayscale(20%); */
}

/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 768px) {
  .map-section {
    height: 320px;
  }
}

/* Reseteo básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Footer en ancho completo */
.main-footer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #be1e2d; /* Rojo institucional */
  color: #ffffff;
  padding: 50px 20px 30px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logotipo centrado */
.footer-logo {
  margin-bottom: 35px;
}

.footer-logo img {
  max-width: 280px;
  height: auto;
  display: block;
}

/* Menú de navegación */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 35px;
}

.footer-nav .nav-item {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.footer-nav .nav-item.bold {
  font-weight: 700;
}

.footer-nav .nav-item:hover {
  opacity: 0.8;
}

.footer-nav .separator {
  color: #ffffff;
  font-weight: 300;
  font-size: 1rem;
}

/* Copyright */
.footer-copyright p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  font-weight: 300;
}

/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 768px) {
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }

  .footer-nav .separator {
    display: none; /* Oculta los separadores en vertical */
  }

  .footer-logo img {
    max-width: 220px;
  }
}

/* Header y contenedor */
.main-header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo img {
  height: 45px;
  display: block;
}

/* Menú de navegación unificado */
.main-nav {
  display: flex;
  align-items: center;
  gap: 14px; /* Espaciado uniforme entre texto, separadores e icono */
}

.nav-item {
  color: #555555;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 400;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.nav-item.active {
  color: #b58d4c; /* Color dorado del elemento activo */
  font-weight: 600;
}

.nav-item:hover {
  color: #b58d4c;
}

.separator {
  color: #d0d0d0;
  font-weight: 300;
  font-size: 1rem;
}

/* Estilo para el ícono de los 9 puntos */
.grid-icon {
  font-size: 1.2rem;
  color: #666666;
  cursor: pointer;
  margin-left: 2px;
}

.grid-icon:hover {
  color: #000000;
}

/* Sección contenedora del carrusel en ancho completo */
.carousel-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background-color: #111;
}

.carousel-container {
  position: relative;
  width: 100%;
  /* Eliminamos max-height para permitir que la altura crezca según la imagen */
}

/* Pista de deslizamiento */
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Oculta la barra de desplazamiento en Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Oculta la barra de desplazamiento en Chrome/Safari */
}

/* Diapositiva individual */
.carousel-slide {
  flex: 0 0 100vw;
  width: 100vw;
  position: relative;
  scroll-snap-align: start;
}

/* La imagen define la altura total y muestra todos sus elementos completos */
.carousel-slide img {
  width: 100%;
  height: auto; /* Se ajusta automáticamente al alto proporcional de la imagen */
  display: block;
  object-fit: contain; /* Garantiza que la imagen entera sea visible sin recortes */
}

/* Controles de navegación en la parte inferior */
.carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-nav a {
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.carousel-nav a:hover {
  background-color: #ffffff;
  transform: scale(1.2);
}

