/* ===========================
   ESTILOS GENERALES
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  background-color: #f8f8f8;
  color: #333;
}

/* ===========================
   NAVBAR (PC)
=========================== */
nav {
  background-color: #1f1f1f;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo img {
  width: 140px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover {
  color: #1B8FE3;
  transform: translateY(-3px);
}

/* ===========================
   SECCIONES
=========================== */
section {
  padding: 100px 20px;
  min-height: 100vh;
  text-align: center;
}

h2 {
  font-size: 2em;
  color: #1f1f1f;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ----- INICIO ----- */
#inicio {
  position: relative;
  color: white;
  text-align: center;
}

#inicio .fondo {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.5);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

#inicio h1 {
  font-size: 3.2em;
  margin-top: 180px;
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
}

/* ----- NOSOTROS, SERVICIOS, CONTACTO ----- */
#nosotros, #servicios, #contacto {
  background-color: #fff;
  padding-top: 120px;
  padding-bottom: 100px;
}

.contenido {
  max-width: 900px;
  margin: auto;
  text-align: center;
  color: #555;
  font-size: 18px;
  line-height: 1.8;
}

/* ===========================
   SERVICIOS (TARJETAS)
=========================== */
.contenedor-servicios {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.servicio {
  width: 280px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  padding-bottom: 15px;
}

.servicio:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.servicio img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.servicio h4 {
  margin: 15px 0 5px;
  font-size: 18px;
  font-weight: bold;
  color: #1B8FE3;
}

.servicio p {
  color: #555;
  font-size: 15px;
  padding: 0 15px;
}

/* ===========================
   BOTÓN WHATSAPP
=========================== */
.btn-whatsapp {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-family: Arial, sans-serif;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin-top: 20px;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}

/* ===========================
   CONTACTO
=========================== */
#contacto *::before,
#contacto *::after {
  content: none !important;
  background: none !important;
  display: none !important;
}

#contacto {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -webkit-text-size-adjust: none;
  -webkit-user-drag: none;
  text-align: center;
}

.contenedor-contacto {
  display: flex;
  justify-content: center;
  gap: 350px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contacto-item h4 {
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

.contacto-item p {
  font-size: 15px;
  color: #555;
  margin-top: 5px;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #1f1f1f;
  color: white;
  text-align: center;
  font-size: 14px;
  padding: 15px 10px;
  letter-spacing: 0.5px;
}

/* ===========================
   RESPONSIVE (TABLET Y MÓVIL)
=========================== */

/* TABLET */
@media (max-width: 1024px) {
  nav {
    position: relative;
    padding: 10px 30px;
  }

  nav ul li {
    margin: 0 12px;
  }

  .servicio {
    width: 45%;
  }

  #inicio h1 {
    font-size: 2.4em;
    margin-top: 140px;
  }

  section {
    padding: 80px 20px;
  }
}

/* MÓVIL */
@media (max-width: 768px) {

  nav {
    position: relative;
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
  }

  nav ul {
    flex-direction: column;
    margin-top: 10px;
    gap: 8px;
  }

  .servicio {
    width: 90%;
  }

  #inicio h1 {
    font-size: 2em;
    margin-top: 120px;
  }

  .contenido {
    font-size: 16px;
  }

  section {
    padding: 50px 15px;
  }

  /* 🔧 Ajuste CONTACTO */
  #contacto {
    padding-top: 70px;
    padding-bottom: 40px;
  }

  #contacto .contenedor-contacto {
    flex-direction: column;
    align-items: center;
    gap: 10px; /* ↓ antes 350px */
    margin-bottom: 5px;
  }

  #contacto .contacto-item {
    margin-bottom: 3px;
  }

  #contacto .contenido {
    margin-top: 0;
    padding-top: 0;
  }

  #contacto .btn-whatsapp {
    display: inline-block;
    margin-top: 5px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 25px;
    text-align: center;
  }
}

/* Imagen de Nosotros */
.imagen-centro {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 95vh;
}

.imagen-centro img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

