/* === ESTILOS BASE GENERALES === */
* {
  box-sizing: border-box;
}

html, body {
  height: 100hv; /* cambia de min-height a height */
  margin: 0;
  scroll-behavior: smooth;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  background-color: #f4f6f9;
  display: flex;
  flex-direction: column;
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

body.oculto {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
body.visible {
  opacity: 1;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: url('../../assets/fondo-servicios.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

main {
  flex: 1;
  padding-top: 180px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  height: 150px;
  max-height: 150px;
  width: auto;
}

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: white;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  transition: transform 0.4s ease;
  transform: translateY(0); /* estado visible */
}


nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: black;
  background-color: transparent;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.2s ease;
}

footer {
  background-color: #0033a0;
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 16px;
  margin-top: auto; /* ← Esta línea hace que se empuje hacia abajo si el contenido es corto */
}

.footer-left {
  display: flex;
  flex-direction: row;
  gap: 60px;
}
.footer-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-section strong {
  font-size: 18px;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  justify-content: center;
}
.footer-logo {
  height: 60px;
  margin-top: 20px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.main-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

.titulo-servicios {
  text-align: center;
  font-size: 2.4rem;
  padding-top: 20px;
  margin-bottom: 10px;
  color: #003366;
}

.subtitulo-servicios {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #f9f6f6;
}

.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 40px 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.servicio-box {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}

.servicio-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.servicio-box i {
  font-size: 3rem;
  color: #0077cc;
  margin-bottom: 15px;
}

.servicio-box h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #003366;
}


.servicio-box p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .titulo-servicios {
    font-size: 1.8rem;
  }

  .subtitulo-servicios {
    font-size: 1rem;
    padding: 0 10px;
  }

  .servicios-grid {
    padding: 0 20px 40px;
  }
}

.card {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 20px;
  margin: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.servicio-box:hover {
  transform: scale(1.03);
}

.lista-equipos {
  margin-top: 15px;
  padding-left: 20px;
  text-align: left;
  opacity: 0;
  max-height: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  line-height: 1.6;
}

.servicio-box.expanded {
  background: #f0f8ff;
}

.servicio-box.expanded .lista-equipos {
  opacity: 1;
  max-height: 300px;
}
