/* ==============================
   ESTILOS GENERALES
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #0e0e0e;
  color: #fff;
  line-height: 1.6;
}

/* ==============================
   HEADER
============================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  z-index: 1000;
  border-bottom: 1px solid #1f1f1f;
  transition: all 0.4s ease;
}

header.hidden {
  transform: translateY(-100%);
}

header .logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #00ffb3;
  letter-spacing: 2px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #00ffb3;
}

/* ==============================
   HERO / CARRUSEL
============================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel img.active {
  opacity: 1;
}

.hero-text {
  position: relative;
  margin-bottom: 30px; 
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0);
  padding: 1.5rem 2rem;
  border-radius: 10px;
  animation: fadeIn 2s ease;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================
   SECCIONES
============================== */
.section {
  padding: 6rem 3rem;
  text-align: center;
}

.section h2 {
  color: #00ffb3;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* ==============================
   SERVICIOS
============================== */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.servicio {
  background: #161616;
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 255, 179, 0.4);
}

.servicio img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.servicio:hover img {
  transform: scale(1.05);
}

/* ==============================
   NOSOTROS
============================== */
.nosotros-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.nosotros-content p {
  max-width: 500px;
  color: #ddd;
  line-height: 1.7;
}

.nosotros-content img {
  width: 400px;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.nosotros-content img:hover {
  transform: scale(1.05);
}

/* ==============================
   OPINIONES
============================== */
.opinion-slider {
  position: relative;
  max-width: 700px;
  margin: auto;
  min-height: 120px;
}

.opinion {
  opacity: 0;
  transition: opacity 0.8s ease;
  position: absolute;
  width: 100%;
}

.opinion.active {
  opacity: 1;
}

.valoracion {
  margin-top: 2rem;
  color: #fff;
}

.google-link {
  color: #00ffb3;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: color 0.3s ease;
}

.google-link:hover {
  color: #fff;
}

/* ==============================
   CONTACTO
============================== */
.contacto a {
  color: #00ffb3;
  text-decoration: none;
}

.contacto a:hover {
  text-decoration: underline;
}

/* ==============================
   FOOTER
============================== */
footer {
  background: #111;
  padding: 2rem;
  text-align: center;
  color: #999;
}

/* ==============================
   BOTÓN WHATSAPP
============================== */
#whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  background: #00ffb3;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1000;
}

#whatsapp-btn img {
  width: 30px;
}

#whatsapp-btn:hover {
  transform: scale(1.1);
}

/* ==============================
   POPUP DE CITA
============================== */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background: #161616;
  padding: 2rem;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 255, 179, 0.4);
}

.popup-content input {
  display: block;
  width: 100%;
  margin: 0.6rem 0;
  padding: 0.6rem;
  border: none;
  border-radius: 5px;
}

.popup-content button {
  background: #00ffb3;
  border: none;
  padding: 0.7rem 1rem;
  margin-top: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup-content button:hover {
  background: #00e2a1;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }

  nav a {
    display: inline-block;
    margin: 0.5rem;
  }

  .hero-text {
    bottom: 15%;
    padding: 1.5rem;
  }

  .nosotros-content {
    flex-direction: column;
  }

  .nosotros-content img {
    width: 100%;
    max-width: 350px;
  }
}








