/* ------------------------
   RESET Y BASE
------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ------------------------
   COLORES
------------------------ */
:root {
  --primario: #606750;
  --secundario1: #e2b64b;
  --secundario2: #d7af4f;
  --secundario3: #cfaa52;
  --blanco: #ffffff;
  --negro: #111111;
}

/* ------------------------
   NAVBAR
------------------------ */
#navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background 0.3s ease;
}

#navbar.scrolled {
  background-color: var(--primario);
}

.logo {
  height: 40px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  color: var(--blanco);
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--secundario1);
}

/* Topbar con info de la empresa */
.topbar {
  background-color: var(--primario);
  color: var(--blanco);
  text-align: center;
  font-size: 0.9rem;
  padding: 8px 15px;
}

.topbar a {
  color: var(--secundario1);
  text-decoration: none;
  font-weight: 500;
}

.topbar a:hover {
  color: var(--secundario2);
}

/* Botón volver arriba */
#btnTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  border: none;
  outline: none;
  background-color: var(--secundario1);
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.2s;
}

#btnTop svg {
  display: block;
}

#btnTop:hover {
  background-color: var(--secundario2);
  transform: translateY(-3px);
}

/* ------------------------
   HERO
------------------------ */
#hero {
  position: relative;
  height: 100vh;
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  background: url('../img/hero.webp') no-repeat center center/cover;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: brightness(0.5);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-content button {
  background: var(--secundario1);
  color: var(--blanco);
  padding: 12px 25px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.hero-content button:hover {
  background: var(--secundario2);
}

/* ------------------------
   SECCIONES GENERALES
------------------------ */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primario);
  margin-bottom: 40px;
  border-bottom: 2px solid var(--secundario3);
  display: inline-block;
  padding-bottom: 10px;
}

/* ------------------------
   SERVICIOS
------------------------ */
.servicio-card {
  border: 1px solid var(--secundario3);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.servicio-card img {
  height: 200px;
  object-fit: cover;
}

.servicio-card h3 {
  background-color: var(--primario);
  color: var(--blanco);
  padding: 15px;
  margin: 0;
  font-size: 1.1rem;
}

.servicio-card p {
  padding: 15px;
  color: #444;
  flex-grow: 1;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ------------------------
   NOSOTROS
------------------------ */
.nosotros-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  background-color: var(--primario);
  padding: 40px;
  border-radius: 10px;
  color: var(--blanco);
}

.nosotros-content img {
  flex: 1 1 300px;
  border-radius: 8px;
}

.nosotros-content div {
  flex: 2;
}

/* ------------------------
   ZONA DE COBERTURA
------------------------ */
.zona-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.zona-content img {
  flex: 1 1 300px;
  border-radius: 8px;
}

.zona-content p {
  flex: 2;
  font-size: 1.1rem;
  color: #333;
}

/* ------------------------
   GALERÍA
------------------------ */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.galeria-item {
  overflow: hidden;
  border-radius: 6px;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.galeria-item:hover img {
  transform: scale(1.1);
}

/* ------------------------
   FORMULARIOS
------------------------ */
form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input, form textarea {
  padding: 12px;
  border: 1px solid var(--secundario3);
  border-radius: 5px;
  font-size: 1rem;
}

form button {
  background: var(--secundario1);
  color: var(--blanco);
  border: none;
  padding: 12px;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 5px;
}

form button:hover {
  background: var(--secundario2);
}

.honeypot {
  display: none;
}

/* ------------------------
   FOOTER
------------------------ */
footer {
  background-color: var(--primario);
  color: var(--blanco);
  padding: 30px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
}

.redes a {
  color: var(--secundario1);
  margin: 0 10px;
  transition: color 0.3s;
}

.redes a:hover {
  color: var(--secundario2);
}

/* ------------------------
   MODAL RESERVA
------------------------ */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: var(--primario);
  color: var(--blanco);
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  position: relative;
}

.modal-content h2 {
  color: var(--secundario1);
  margin-bottom: 20px;
}

.modal-content .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--blanco);
}

/* ------------------------
   RESPONSIVE
------------------------ */
@media (max-width: 1024px) {
  .servicios-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nosotros-content,
  .zona-content {
    flex-direction: column;
  }

  nav ul {
    gap: 15px;
  }

  .servicios-container {
    grid-template-columns: 1fr;
  }
}
/* ------------------------
   NAVBAR LINKS CUSTOM
------------------------ */
#navbar .nav-link {
  color: var(--secundario1) !important; /* Amarillo de la paleta */
  font-weight: 500;
  transition: color 0.3s;
}

#navbar .nav-link:hover,
#navbar .nav-link.active {
  color: var(--secundario2) !important; /* Otro tono dorado */
}
/* Botón volver arriba */
#btnTop {
  display: none; /* Oculto al inicio */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1100;
  border: none;
  outline: none;
  background-color: #e2b64b; /* Amarillo corporativo */
  cursor: pointer;
  padding: 14px;
  border-radius: 50%;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.25);
  transition: background-color 0.3s, transform 0.2s;
}

#btnTop:hover {
  background-color: #d7af4f;
  transform: translateY(-3px);
}

#btnTop svg {
  display: block;
  margin: auto;
}
/* Cambiar color del icono hamburguesa */
.navbar-toggler {
  border: none; /* sin borde feo */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(226,182,75,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
/* ------------------------
   BOTONES DE IDIOMA (versión final - mobile fix)
------------------------ */
#language-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  z-index: 10;
}

#language-buttons button {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--blanco);
  cursor: pointer;
  transition: all 0.3s ease;
}

#btn-es {
  background-color: var(--secundario1);
  color: var(--blanco);
}

#btn-en {
  background-color: transparent;
  color: var(--blanco);
}

#language-buttons button:hover {
  background-color: var(--secundario2);
  color: var(--blanco);
  border-color: var(--secundario2);
}

/* 📱 CORRECCIÓN DEFINITIVA MÓVIL */
@media (max-width: 768px) {
  .topbar {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #language-buttons {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    margin-top: 6px !important;
    justify-content: center !important;
  }

  .topbar p {
    text-align: center;
    margin-bottom: 4px;
  }
}
