/* =======================
   PRESET Y BASE
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif; /* Tipografía principal */
  background: linear-gradient(135deg, #eaf2f8, #fdfefe);
  color: #2c3e50;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  
  text-decoration: none; /* Quita el subrayado */
  color: inherit;        /* Mantiene el color del texto según el contexto */
}

/* =======================
   ENCABEZADO
========================== */
header {
  background-color: #0d172d;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-family: inherit; /* Hereda 'Poppins' */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  font-family: inherit;
  
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 2rem;
  font-family: inherit;
}

nav a {
  color: white;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
  font-family: inherit;
}

nav a::after {
  content: "";
  height: 2px;
  width: 0%;
  background: #ffd369;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.3s ease;
}

/* Animacion de navegacion */
nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a.active {
  color: #ffd369;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  background: white;
  margin: 4px 0;
  width: 25px;
}
/* =======================
   HERO / BANNER
========================== */

.hero {
  height: 100vh;
  width: 100%;
  background: url('/img/fondo.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 20%, transparent 70%);
  animation: rotateBg 60s linear infinite;
}

@keyframes rotateBg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeIn 2s ease;
  font-family: inherit;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  font-family: inherit;
}

/* SVG contenedor */
.constellation-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* ✅ Corrige: evita que bloquee clics */
}

/* Estilos para las figuras */
.constellation-path {
  stroke: white;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* =======================
   SECCIONES
========================== */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: auto;
  font-family: inherit;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: #1f3c88;
  position: relative;
  font-family: inherit;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #1f3c88;
  margin: 10px auto 0;
}

/* Estilos para la sección de servicios */
.services {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f0f4f8, #e1e8ed);
  color: #333;
  text-align: center;
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1f3c88;
  font-weight: bold;
  font-family: inherit;
}

.section-description {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-family: inherit;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  font-family: inherit;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
  margin-bottom: 1rem;
  font-family: inherit;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1f3c88;
  font-family: inherit;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.7;
  font-family: inherit;
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2rem;
  }
}

/* =======================
   BÚSQUEDA Y FILTRO
========================== */
.search-bar {
  text-align: center;
  margin-bottom: 2rem;
  font-family: inherit;
}

.search-bar input,
.search-bar select {
  padding: 0.7rem 1rem;
  width: 260px;
  max-width: 90%;
  border: none;
  border-radius: 8px;
  margin: 0.5rem;
  background: #f2f2f2;
  font-size: 1rem;
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05), inset -2px -2px 5px rgba(255,255,255,0.8);
  font-family: inherit;
}

/* =======================
   TARJETAS DE PRODUCTO
========================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.product-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  height: 100%;
}

.product-card:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 40px rgba(0,0,0,0.15);
}

.product-card img {
  border-radius: 12px;
  width: 100%;
  height: 180px;
  object-fit: contain; 
  background-color: #ffffff;
  margin-bottom: 1rem;
}

.product-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info {
  flex-grow: 1;
}

.product-info h3 {
  font-size: 1.2rem;
  color: #1f3c88;
  margin-bottom: 0.5rem;
  font-family: inherit;
}

.whatsapp-button {
  margin-top: auto;
  background: #25d366;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  font-family: inherit;
  text-align: center;
  display: inline-block;
}

.whatsapp-button:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* =======================
   NO RESULTADOS
========================== */
.no-results {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  font-family: inherit;
}

.no-results a {
  color: #1f3c88;
  font-weight: 600;
  text-decoration: underline;
  font-family: inherit;
}

.no-results input {
  width: 80%;
  max-width: 500px;
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #ccc;
  border-radius: 8px;
}

.whatsapp-quote-btn {
  background-color: #25D366;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.whatsapp-quote-btn:hover {
  background-color: #1ebe5b;
}


/* =======================
   OTRAS SECCIONES
========================== */
.services, .about, .contact {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  font-family: inherit;
}

.contact {
  text-align: center;
  padding: 60px 20px;
  background: #f5f5f5;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 12px;
  padding: 15px 25px;
  font-size: 1.1rem;
  color: #333;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item i {
  font-size: 1.5rem;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-text {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #1f3c88;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

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


/* Colores según tipo */
.contact-item.call i { color: #007bff; }      /* azul teléfono */
.contact-item.whatsapp i { color: #25D366; }  /* verde WhatsApp */
.contact-item.email i { color: #ff9800; }     /* naranja correo */
.contact-item.location i { color: #e91e63; }  /* rosado ubicación */

.contact-item.location {
  cursor: default;
}


/* =======================
   FOOTER
========================== */
.footer-alt {
  background: #0d172d;
  color: #e6e6e6;
  text-align: center;
  padding: 60px 20px 30px;
  font-family: 'Poppins', sans-serif;
}

.footer-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
}

.footer-logo h3 {
  color: #00c6ff;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.footer-logo p {
  color: #bbb;
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto 30px;
}

/* separacion de copy */

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  font-size: 0.9rem;
  color: #888;
}



/* =======================
   ANIMACIONES
========================== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
   RESPONSIVE NAVIGATION
========================== */

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 2rem;
    background-color: #0d172d;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
  .logo span {
    display: none;
  }

  .logo img {
    width: 35px;
    height: 35px;
  }

  .hero {
    background-position: center top; /* Muestra un poco más la parte superior */
    background-attachment: scroll; /* mejora el rendimiento en móviles */
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* 📱 Extra pequeño (celulares en vertical) */
@media (max-width: 480px) {
  .hero {
    background-position: center center; /* vuelve a centrar completamente */
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }
}
