/* === Reset & Body === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #314D45;
  color: white;
}

/* === Topbar === */
.topbar {
  background-color: #314D45;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid #FFF;
}

.logo {
  margin-left: 1.5em;
  height: 60px;
}

.nav{
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  justify-content: end;
  gap: 8em;
}

.nav a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: large;
}

.nav-link.active{
  color: #f2a976;
}

/* === Hero Section === */
.hero {
  display: flex;
  height: 85vh;
  background-color: #ECD9C6; /* ← fondo claro para esa sección */
  padding: 0;
  overflow: hidden;
  scroll-margin-top: 100px;
}

.hero-left {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: url(assets/images/logo_cropped_traslucent.png);
  background-repeat: no-repeat;
  background-position: 76% 31%;
}

.hero-left h1 {
  font-size: 4rem;
  margin: 0;
}

.hero-left p {
  font-size: 1.5rem;
  margin-top: 20px;
}

.hero-right {
  flex: 1;
  position: relative;
  height: 100%;
}

.image-gradient {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.image-gradient img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Degradado en el borde izquierdo de la imagen */
.image-gradient::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 120px; /* ajusta el ancho del degradado si es necesario */
  height: 100%;
  background: linear-gradient(to right, #ECD9C6 0%, transparent 100%);
  z-index: 1;
}

/* === Menú === */
.menu-section {
  text-align: center;
  padding: 60px 20px;
  background: white;
  color: #666;
  scroll-margin-top: 190px;
  background-image: url(assets/images/menu_bg.png);
  background-size: contain;
  background-repeat: repeat;
  background-position: center;
  animation: slideBackground 10s linear infinite alternate;
}

.menu-button {
  display: inline-block;
  background-color: #F39C6B;
  color: white;
  padding: 12px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
}

/* === Contacto === */
.contact {
  padding: 60px 20px;
  scroll-margin-top: 100px;
}

.contacto-header {
  text-align: center;
}

.address {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.subtitulo {
  color: #000000; /* Cambia este valor por el color que quieras */
}
.logo-svg {
  width: 100%;
  max-width: 400px; /* Ajusta el tamaño deseado */
  height: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  text-decoration: none;
  border: 1px solid #FFF;
  padding-left: 0.5em;
  box-shadow: 5px 5px  #fff;
}

.contact-item img {
  width: 50px;
  height: 50px;
}

/* === Mapa === */
.map {
  background-color: #ffffff;
  padding: 40px 20px;
  scroll-margin-top: 190px;
}

.map h2 {
  color: #080000;
  text-align: center;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 20px;
  background-color: #F5A374;
}

.direccion-contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.direccion-texto {
  flex: 1;
  min-width: 280px;
  font-size: 1rem;
  color: #333;
}

.direccion-imagen {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.direccion-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover{
    color: #f2a976; 
  }

  .menu-section a:hover{
    color: #f2a976; 
  }

  .contact-item:hover{
  transform: translate(5px, 5px);
  box-shadow: 0px 0px ;
  }
}


@media (max-width: 768px) {
  .topbar {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 15px 10px; /* Menos espacio */
  }

  .logo {
    display: none;
    height: 30px;  /* Más pequeño */
    margin: 0;      /* Eliminar márgenes */
  }

  .nav {
    display: flex;
    flex-grow: 0;
    flex-direction: row;
    gap: 1.8em;
  }
  
  .nav a:hover{
    color: none;
  }

  .nav a {
    font-size: 0.90rem;
    padding: 4px 5px;
  }

  .hero {
    flex-direction: column;
    height: auto;
    justify-content: space-between;
  }

  .hero-left {
    display: flex;
    margin-bottom: 10px; /* Menor separación entre texto e imagen */
    background-size: 12em;
    background-position: 50% 50%;
    flex-grow: 0;
    margin-top: 30px;
    align-items: center;
    margin-bottom: 30px;
  }

  .hero-left p {
    font-size: 1rem;
    text-align: center;
    margin: 5px 0;
  }

  .hero-right{
    margin-top: 15%;
    flex: 0;
  }

  .hero-right img {
    width: 100%;          /* Ocupar todo el ancho */
    height: auto;
    margin: 0;
  }

  .menu-section{
    background-size: auto;
    animation: slideBackground 10s linear infinite alternate;
  }

    .contact-item:active{
    transform: translate(5px, 5px);
    box-shadow: 0px 0px ;
  }
  
  /* Nuevo degradado en la parte superior */
  .image-gradient::before {
    left: 0;
    top: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #f0dcc6 0%, transparent 100%);
  }

}

@keyframes slideBackground {
  from {
    background-position: 0 75% ; /* Starting position */
  }
  to {
    background-position: 100% 75%; /* Ending position (adjust for vertical or diagonal movement) */
  }
}