/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 60px 0;
}

h1,
h2,
h3 {
  margin-bottom: 20px;
  color: #112396;
}

p {
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  background-color: #293ad1;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #101574;
}

/* Iconos flotantes */
.floating-contacts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.floating-btn.whatsapp {
  background-color: #25d366;
}

/* === Botón de Telegram (azul sólido corregido) === */
.floating-btn.telegram {
  background-color: #0088cc; /* Azul sólido de Telegram */
  color: rgb(99, 49, 49);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Eliminar cualquier capa translúcida que cause transparencia */
.floating-btn.telegram::after {
  display: none !important;
}

/* Efecto hover manteniendo el azul sólido */
.floating-btn.telegram:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 136, 204, 0.6);
  background-color: #0077b5; /* Azul ligeramente más oscuro al hover */
}

/* Tooltip del botón Telegram */
.floating-btn.telegram::before {
  content: attr(title);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.floating-btn.telegram:hover::before {
  opacity: 1;
}



.floating-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
}

.floating-btn:hover::after {
  opacity: 1;
}

/* Tooltip para los botones flotantes */
.floating-btn::before {
  content: attr(title);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(204, 203, 203, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s;
}

.floating-btn:hover::before {
  opacity: 1;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #12175c;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 25px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #1a3a6c;
}

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a216c 0%, #2c3da0 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 40px;
  color: #1a3a6c;
  margin-bottom: 20px;
}

/* Calculadora */
.calculator {
  background-color: #f0f4f8;
  border-radius: 8px;
  padding: 30px;
  margin-top: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.result {
  margin-top: 20px;
  padding: 15px;
  background-color: #e8f4fd;
  border-radius: 4px;
  display: none;
}

/* Contacto */
.contact-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info {
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 20px;
  color: #1a3a6c;
  margin-right: 15px;
  margin-top: 5px;
}

/* Footer */
footer {
  background-color: #2921c5;
  color: white;
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #a8c6f0;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 10px 0;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 80px 0;
  }

  section {
    padding: 40px 0;
  }

  /* Ajustes para los botones flotantes en móviles */
  .floating-contacts {
    right: 15px;
    bottom: 15px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .floating-btn::before {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .floating-contacts {
    right: 10px;
    bottom: 10px;
  }

  .floating-btn {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
}
