/* src/styles/global.css */
:root {
  --font-primary: 'Cormorant Garamond', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif; 
  --color-text: #111;
  --color-bg: #fff;
  --spacing: 1.5rem;
}
/* reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;

}

h1, h2 {
  font-weight: normal;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Hero section */
/* Hero carousel */
.hero-carousel {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out;
}

/* Overlay oscuro para mejorar legibilidad */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Ajustar opacidad si es muy oscuro */
  z-index: 1;
}

/* Contenedor del texto (dentro del overlay visual) */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 1.5rem;
  width: 75%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 2rem;
  text-align: center;
  color: white;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.hero-text h1 {
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Flechas */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, rgba(255, 255, 255, 0.2) 0.3s;
  z-index: 3;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow.prev {
  left: 2rem;
}

.carousel-arrow.next {
  right: 2rem;
}


.address-link {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
  color: inherit;
}

.address-link:hover {
  opacity: 0.8;
  text-decoration-thickness: 2px;
}

/* Si usas la etiqueta <a> */
.contact-info a {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.contact-info a:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.8rem;
    letter-spacing: 1px;
  }
  .hero-text p {
    font-size: 1.1rem;
  }
  .carousel-arrow { 
    width: 40px; 
    height: 40px; 
    font-size: 1rem; 
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  background: rgba(0, 0, 0, 0.2); /* semi-transparente */
  /*backdrop-filter: blur(4px); *//* opcional: efecto vidrio */
  /*border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  color: white;
  font-family: 'Cormorant Garamond', Georgia, serif;
  
}

.logo {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
  transition: opacity 0.2s;
  text-transform: uppercase;
}

.main-nav a:hover {
  opacity: 1;
}

/* Asegurar que el hero no se quede oculto bajo el header */
/*.hero-carousel {
  margin-top: 72px; /* altura aproximada del header */
/*}*/

/* Botón hamburguesa (oculto en desktop) */
.hamburger {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

/* Líneas del hamburguesa */
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: white;
  transition: 0.3s;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Overlay del menú móvil */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Selector de idioma */
.lang-switch {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-left: 1.5rem;
}

.lang-switch:hover {
  opacity: 1;
}

/* Responsive: en móvil, puedes colapsar más tarde, pero por ahora lo dejamos simple */
@media (max-width: 768px) {
   /* Header layout en móvil: hamburguesa | logo | idioma */
  .header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
  }
  /* Hamburguesa a la izquierda */
  .hamburger {
    display: flex;
    grid-column: 1;
    justify-self: start;
  }
   /* Logo en el centro */
  .logo {
    grid-column: 2;
    justify-self: center;
    font-size: 1.5rem;
    text-align: center;
  }
  /* Idioma a la derecha */
  .lang-switch {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
    margin-right: 0;
  }

  /* Ocultar menú normal en móvil */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    gap: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav.mobile-open {
    left: 0; /* Cambiado de right a left */
  }

   .main-nav a {
    font-size: 1.3rem;
    padding: 0.5rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.9;
  }
  
  .main-nav a:hover {
    opacity: 1;
    padding-left: 10px;
    transition: all 0.2s ease;
  }
  
  /* Animación hamburguesa a X cuando el menú está abierto */
  .mobile-open + .hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .mobile-open + .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }
  
  .mobile-open + .hamburger span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .hero-carousel {
    margin-top: 80px; /*120px;*/
  }

   /* Ajustar contact bar para no interferir */
  .contact-bar {
    padding-bottom: 60px; /* Espacio para el menú abierto */
  }
}




/* Barra de contacto inferior — superpuesta sobre el carrusel */
.contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 0;
  z-index: 1000;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  color: white;
  /* No afecta el flujo del documento: se superpone */
}

.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact-info {
  display: flex;
  gap: 1.5rem;
}

.contact-info span,
.social-links a {
  opacity: 0.85;
  transition: opacity 0.2s;
}

.contact-info span:hover,
.social-links a:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
}

/* Asegurar que el carrusel OCUPE TODO el viewport, sin recortes */
.hero-carousel {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  /* Elimina cualquier margin o padding que empuje hacia arriba */
  margin: 0 !important;
  padding: 0 !important;
}

/* El botón de chat sigue flotando por encima de todo */
.chat-button {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: white;
  color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    gap: 0.6rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.3rem;
  }

  .chat-button {
    bottom: 1.5rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}