/* ======================================================
   VARIABLES Y BASE
====================================================== */
:root {
  --negro: #0a0a0a;
  --dorado: #c8a951;
  --gris-plateado: #cfcfcf;
  --blanco: #ffffff;
  --fuente-titulo: 'Playfair Display', serif;
  --fuente-texto: 'Roboto', sans-serif;
}

body {
  background-color: var(--negro);
  color: var(--blanco);
  font-family: var(--fuente-texto);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--fuente-titulo);
  color: var(--dorado);
  letter-spacing: 1px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ======================================================
   NAVBAR
====================================================== */
.navbar {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(200,169,81,0.2);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-content .logo img {
  height: 60px;
}

.nav-content .menu a {
  color: var(--gris-plateado);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-content .menu a:hover {
  color: var(--dorado);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  background: var(--dorado);
  height: 3px;
  width: 25px;
  margin: 4px 0;
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background: var(--negro);
    position: absolute;
    top: 80px;
    right: 0;
    width: 60%;
    border-left: 2px solid var(--dorado);
  }

  .menu.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-content .menu a {
    margin: 1rem;
  }
}

/* ======================================================
   HERO CONTACTO (con zoom animado + fade-in texto)
====================================================== */
.hero-contacto {
  position: relative;
  height: 70vh;
  background: url('../media/hero-contacto.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Capa de fondo animada */
.hero-contacto::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../media/hero-contacto.jpg') center/cover no-repeat;
  transform: scale(1);
  animation: zoomHero 20s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes zoomHero {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpHero 1.5s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeUpHero {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-family: var(--fuente-titulo);
  color: var(--dorado);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  color: var(--gris-plateado);
  font-size: 1.2rem;
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
}



/* ======================================================
   INFORMACIÓN DE CONTACTO
====================================================== */
.info-contacto {
  padding: 4rem 0;
  background: #111;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.info-item h3 {
  color: var(--dorado);
  font-family: var(--fuente-titulo);
  margin-bottom: 0.5rem;
}

.info-item a {
  color: var(--gris-plateado);
  text-decoration: none;
}

.info-item a:hover {
  color: var(--dorado);
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ======================================================
   FORMULARIO + MAPA (UNIFICADO EN UNA SOLA SECCIÓN)
====================================================== */
.formulario {
  padding: 5rem 0;
  background: #0e0e0e;
}

.formulario h2 {
  color: var(--dorado);
  font-family: var(--fuente-titulo);
  margin-bottom: 2rem;
  text-align: center;
}

.form-mapa-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.formulario form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background: #151515;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(200,169,81,0.3);
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gris-plateado);
}

input, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid rgba(200,169,81,0.4);
  background: #151515;
  color: var(--blanco);
  font-size: 1rem;
}

.btn-gold {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #b8943a, #d9b55a);
  color: var(--negro);
  padding: 1rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

.btn-gold:hover {
  transform: scale(1.03);
}

/* ======================================================
   MAPA (AHORA DENTRO DE LA MISMA SECCIÓN)
====================================================== */
.mapa {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

.mapa h2 {
  display: none; /* ya no necesitamos el título duplicado */
}

.mapa iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 10px;
  outline: 1px solid rgba(200,169,81,0.3);
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .form-mapa-container {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .formulario form {
    width: 100%;
    padding: 1.5rem;
  }

  .mapa {
    width: 100%;
    text-align: center;
  }

  .mapa iframe {
    width: 100%;
    height: 350px;
    margin: 0 auto;
    display: block;
  }
}

/* ======================================================
   ANIMACIONES DE APARICIÓN
====================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}



/* ======================================================
   FOOTER
====================================================== */
.footer {
  background: #050505;
  color: var(--gris-plateado);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
}

.footer-info a {
  color: var(--dorado);
  text-decoration: none;
}

.footer-social a img {
  width: 28px;
  margin-right: 1rem;
  transition: opacity 0.3s;
}

.footer-social a:hover img {
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-social {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .footer-social a img {
    margin: 0 0.7rem;
  }
}

