:root {
  --oscuro: #0B0B0C;       /* Fondo principal negro suave */
  --negro: #000000;        /* Negro puro */
  --gris-oscuro: #1A1A1C;  /* Para secciones intermedias */
  --gris-carbon: #2A2A2D;  /* Fondos de tarjetas */
  --footer: #0B0B0C;       /* Fondo del footer */
  --blanco: #FFFFFF;       /* Blanco puro para textos */
  --gris-texto: #DDDDDD;   /* Gris claro para párrafos */
  --dorado: #C9A227;       /* Dorado elegante */
  --dorado-hover: #B0891A; /* Dorado más oscuro al hover */
  --titulos: 'Baloo 2', cursive;
  --parrafos: 'Montserrat', sans-serif;
}

/* General */
body {
  font-family: var(--parrafos);
  line-height: 1.6;
  background-color: var(--oscuro);
  color: var(--gris-texto);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--titulos);
  margin-bottom: 1rem;
}
h1, h2 {
  color: var(--dorado);
  font-weight: 700;
  letter-spacing: 1px;
}

/* Botones */
.btn-cotizar,
button[type="submit"] {
  background-color: var(--dorado);
  color: var(--negro);
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  border: none;
  transition: all .3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  display: inline-block;
}
.btn-cotizar:hover,
button[type="submit"]:hover {
  background-color: var(--dorado-hover);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}

/* Navbar */
.navbar-dark {
  background-color: var(--negro) !important;
  padding: 0.8rem 1rem;
}
.navbar-dark .navbar-brand {
  color: var(--dorado);
  font-weight: 700;
  font-size: 1.4rem;
}
.navbar-dark .navbar-nav .nav-link {
  color: var(--gris-texto);
  font-weight: 500;
  margin-left: 1rem;
  transition: color 0.3s ease;
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--dorado);
}

/* Footer */
footer {
  background-color: var(--footer);
  color: var(--gris-texto);
  padding: 2rem 0;
  text-align: center;
}
footer h2 span {
  color: var(--dorado);
}
footer a {
  color: var(--dorado);
  text-decoration: none;
}
footer a:hover {
  color: var(--blanco);
}

/* HERO */
@media (max-width: 768px) {
  #inicio {
    align-items: center !important; /* centra en móvil */
    padding-top: 60px; /* margen para que no quede pegado al navbar */
  }
}
@media (max-width: 768px) {
  #inicio h1 {
    margin-top: 40px;
    text-align: center;
  }
}


header {
  background: url('../img/fondo.jpg') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--blanco);
}
header .container {
  margin-top: 5rem; /* ajusta cuánto sube (puedes jugar con el valor) */
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.349);
}
header > * {
  position: relative;
  z-index: 2;
}
header h1 {
  font-size: 3rem;
  animation: fadeInDown 1s ease;
}
header p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Animaciones */
@keyframes fadeInDown {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

/* NOSOTROS */
#nosotros {
  background: url('../img/nosotros2.jpg') center/cover no-repeat;
  position: relative;
  color: var(--blanco);
  padding: 4rem 2rem;
}
#nosotros::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}
#nosotros > * {
  position: relative;
  z-index: 2;
}
#nosotros h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* SERVICIOS */
#servicios {
  background-color: var(--oscuro);
  color: var(--blanco);
  padding: 4rem 2rem;
}
#servicios .card {
  background-color: var(--gris-carbon);
  border: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
#servicios .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}
#servicios i {
  background-color: var(--dorado) !important;
  color: var(--negro) !important;
  border-radius: 50%;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
#servicios i:hover {
  transform: scale(1.2);
}

/* VENTAJAS */
#ventajas {
  background-color: var(--oscuro);
  color: var(--blanco);
  padding: 4rem 2rem;
}
#ventajas h2, #ventajas h3 {
  color: var(--dorado);
}
#ventajas .card {
  background-color: var(--gris-carbon);
  border: none;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
#ventajas .card:hover {
  transform: translateY(-5px);
}

/* CONTACTO */
@media (max-width: 768px) {
  #contacto {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  footer {
    margin-top: 0 !important;
  }
}

.informacion-contacto {
  background: url('../img/contacto.jpg') center/cover no-repeat;
  position: relative;
  min-height: 50vh;
  border-radius: 0.5rem;
  color: var(--blanco);
  padding: 4rem 2rem;
}
.informacion-contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.356);
  border-radius: 0.5rem;
}
.informacion-contacto > * {
  position: relative;
  z-index: 2;
}
.informacion-contacto input,
.informacion-contacto textarea {
  background-color: var(--gris-carbon);
  border: 1px solid transparent;
  border-radius: 0.3rem;
  padding: 0.6rem;
  color: var(--blanco);
  width: 100%;
  margin-bottom: 1rem;
  transition: border 0.3s ease;
}
.informacion-contacto input:focus,
.informacion-contacto textarea:focus {
  border: 1px solid var(--dorado);
  outline: none;
}

/* Botón flotante WhatsApp */
.btn-wsp-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1000;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-wsp-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  color: #fff;
}
