:root {
  --color-principal: #1265a6;
  --color-oscuro: #1b1d39;
  --color-intermedio: #1c355e;
  --color-gris: #706f6f;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* ===== SERVICIO TECNICO ===== */
.servicio-tecnico {
  padding: 6rem 2rem; /* Aumentado para bajar visualmente el título */
  background-color: #fff;
}

.servicio-tecnico h2 {
  color: var(--color-principal);
  text-align: center;
  margin-bottom: 2rem; /* Mayor separación con descripción */
  font-size: 2.6rem;
}

.servicio-tecnico .descripcion {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem auto;
  font-weight: 300;
  line-height: 1.8;
  font-size: 1.2rem;
  color: #555;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.4s ease;
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.card-content h3 {
  font-size: 1.6rem;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.card .info-extra {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.8);
  padding: 1.5rem;
  color: #fff;
  transition: bottom 0.4s ease;
  z-index: 2;
  text-shadow: 0 1px 5px rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.card:hover::before {
  background: rgba(0, 0, 0, 0.2);
}

.card:hover .info-extra {
  bottom: 0;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #fff;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.logo-footer img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-principal);
  font-weight: bold;
}

.footer .direccion,
.footer .contacto,
.footer .redes {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer .redes a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer .redes a:hover {
  color: var(--color-principal);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  z-index: 9999;
  gap: 10px;
}

.whatsapp-label {
  background-color: white;
  color: #25D366;
  padding: 10px 15px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-container:hover .whatsapp-label {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float {
  background-color: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 2rem;
  text-decoration: none;
  border: none;
  outline: none;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
}

/* ===== RESPONSIVE PARA MÓVIL ===== */
@media (max-width: 768px) {
  .servicio-tecnico {
    padding: 4rem 1rem;
  }

  .servicio-tecnico h2 {
    font-size: 2rem;
    margin-top: 1rem;
  }

  .servicio-tecnico .descripcion {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .card-content h3 {
    font-size: 1.4rem;
  }

  .card .info-extra {
    font-size: 0.95rem;
    padding: 1rem;
  }

  .whatsapp-label {
    display: none;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}


