/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #222;
  overflow-x: hidden;
  background-color: #f0f2f5;
}

/* =========================
   HEADER
========================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background:  #c7d1d9;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-box img {
  height: 100px;
}

.logo-text {
  color: #096beb;
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 22px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
}

nav ul li a {
  color: #096beb;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}

nav ul li a:hover {
  opacity: 0.8;
}

/* =========================
   HERO
========================= */
.hero {
  height: 100vh;
  background: url('img/Fondo.jpg') center center no-repeat;
  background-size: cover;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding-top: 80px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 12px;
  text-shadow: 1px 1px 5px rgba(0,0,0,.5);
}

.hero p {
  font-size: 20px;
  text-shadow: 1px 1px 4px rgba(0,0,0,.5);
}

/* =========================
   SERVICIOS
========================= */
.servicios {
  padding: 90px 20px;
  max-width: 1200px;
  margin: auto;
}

.servicios h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: #1f5fa8;
}

.servicio {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}

.slider {
  position: relative;
  width: 600px;
  height: 350px;
  overflow: hidden;
  border-radius: 6px;
}

.slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.slider img.active {
  opacity: 1;
}

.slider img:hover {
  transform: scale(1.05);
}

.servicio-texto {
  flex: 1;
  max-width: 500px;
}

.servicio-texto h3 {
  margin-bottom: 12px;
  font-size: 26px;
  color: #1f5fa8;
}

.servicio-texto p {
  color: #444;
  font-size: 17px;
  line-height: 1.6;
}

/* =========================
   CONTACTO
========================= */
.contacto {
  padding: 80px 20px;
  background: #e3eaf7;
}

.contacto-box p {
  font-size: 18px; /* aumenta solo el texto inferior */
  line-height: 1.5;
}


.contacto h2 {
  color: #1f5fa8;
  margin-bottom: 15px;
}

.social {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.social a {
  font-size: 28px;
}

.social .ig {
  color: #E1306C;
}

.social .fb {
  color: #1877F2;
}

.social .wa {
  color: #25D366;
}

/* =========================
   WHATSAPP FLOTANTE
========================= */
.whatsapp-text {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-80px);
  background: #1f5fa8;
  color: #ffffff;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  z-index: 998;
  white-space: nowrap;
}

.whatsapp {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #ffffff;
  font-size: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,.3);
  z-index: 999;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .slider {
    width: 450px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo-box img {
    height: 50px;
  }

  .logo-text {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .servicio {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-bottom: 50px;
  }

  .slider {
    width: 100%;
    max-width: 400px;
    height: 250px;
    position: relative;
    margin-bottom: 15px;
  }

  .slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .servicio-texto {
    max-width: 100%;
    text-align: center;
  }

  .contacto {
    padding: 60px 15px;
  }

  .contacto-box {
    max-width: 100%;
  }

  .whatsapp-text {
    font-size: 12px;
    transform: translateY(-70px);
    right: 15px;
  }

  .whatsapp {
    width: 55px;
    height: 55px;
    font-size: 26px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .slider {
    width: 100%;
    max-width: 100%;
    height: 0;
    padding-top: 62.5%;
    position: relative;
    margin-bottom: 15px;
  }

  .slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .servicio-texto {
    padding: 0 10px;
    max-width: 100%;
    text-align: center;
  }

  .hero {
    height: 60vh; /* reduce espacio en móviles */
    background-size: cover;
    background-position: top center;
  }

  .whatsapp-text {
    display: block;
    font-size: 11px;
    padding: 4px 8px;
    transform: translateY(-60px);
    right: 12px;
  }

  .whatsapp {
    width: 50px;
    height: 50px;
    font-size: 24px;
    right: 12px;
  }
}


.correo {
  color: #1f5fa8;
  font-weight: bold;
  text-decoration: none;
}

.correo:hover {
  text-decoration: underline;
  color: #0d3f7a;
}
