/* ======================================================
   CONFIGURACIÓN GENERAL
====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #111;
  background-color: #111;
  line-height: 1.5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
  color: #111;
}

.section-subtitle {
  color: #555;
  margin-bottom: 2em;
  font-weight: 300;
}

/* ======================================================
   NAVBAR
====================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  z-index: 100;
  padding: 0.8em 0;
  transition: background 0.3s ease;
  backdrop-filter: blur(10px); /* 🔹 efecto de difuminado elegante */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 2em;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* 🔹 Hover igual */
.nav-links a:hover {
  color: #e50019;
}

/* 🔹 Enlace activo ya no cambia de color */
.nav-links .active {
  color: #fff;
}


/* --- Hamburguesa --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

/* --- Celular --- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.85); /* un poco más sólida para legibilidad en menú desplegable */
    flex-direction: column;
    width: 100%;
    display: none;
    text-align: center;
    padding: 1.5em 0;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}

/* =========================================
   TELÉFONO EN NAVBAR
========================================= */
.nav-phone a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  padding-left: 230px;
}

.nav-phone a:hover {
  color: #e50019;
}

.nav-phone i {
  font-size: 1rem;
}

/* En escritorio: mostrar teléfono a la derecha */
.nav-phone.desktop {
  display: flex;
  align-items: center;
}

/* En móvil: ocultar versión escritorio y mostrar dentro del menú */
.nav-phone.mobile {
  display: none;
}

@media (max-width: 992px) {
  .nav-phone.desktop {
    display: none;
  }

  .nav-phone.mobile {
    display: block;
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
  }
}



/* ======================================================
   HERO DE CONTACTO (solo movimiento en el fondo)
====================================================== */
.hero-contacto {
  position: relative;
  width: 100%;
  height: 95vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8%;
  color: #fff;
}

/* --- Fondo con zoom --- */
.hero-contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../media/fondo_contacto.jpg') center/cover no-repeat;
  z-index: 0;
  transform-origin: center;
  animation: zoomFondo 10s ease-in-out infinite alternate;
}

/* --- Degradado encima --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.75), rgba(0,0,0,0.45));
  z-index: 1;
}

/* --- Contenido fijo --- */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: left;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f1f1f1;
}

/* --- Botones --- */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hero-buttons a {
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-llamar {
  background: #e50019;
  color: #fff;
}
.btn-llamar:hover {
  background: #b90014;
}

.btn-correo {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-correo:hover {
  background: #fff;
  color: #e50019;
}

/* --- Animación del fondo --- */
@keyframes zoomFondo {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* ======================================================
   RESPONSIVO
====================================================== */
@media (max-width: 992px) {
  .hero-contacto {
    height: 75vh;
    padding: 0 6%;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-top: 50px;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-contacto {
    height: 95vh;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }
}


/* ======================================================
   FOOTER
====================================================== */
.footer {
  background: #111;
  color: #fff;
  padding: 3em 0 1.5em;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  width: 90%;
  flex-wrap: wrap;
}

.footer-left img {
  height: 60px;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  margin: 3px 0;
  color: #ddd;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2em;
  padding-top: 1em;
  color: #aaa;
  font-size: 0.85rem;
}

/* --- Celular --- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1em;
  }
  .footer-right {
    text-align: center;
  }
}

