/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
  padding-top: 80px; /* mismo alto que tu header */
}

/* =======================
   Encabezado
======================= */
.main-header {
  position: fixed;   /* se queda fijo */
  top: 0;            /* pegado arriba */
  left: 0;
  width: 100%;       /* ocupa todo el ancho */
  z-index: 1000;     /* para que quede por encima del carrusel y otros elementos */
  background: #fff; /* fondo blanco */
  color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* sombra ligera para separar */
  padding: 0.5rem 2rem; /* menos padding para evitar que salte */
}

.main-header nav {
  display: flex;
  justify-content: space-between; /* logo izq, menú der */
  align-items: center;
  flex-wrap: wrap; /* si no entra, baja */
}

.logo {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  font-size: 2rem; /* ajusta el tamaño si lo quieres más grande */
  margin: 0;
  padding: 0;
  line-height: 1;
  white-space: nowrap; /* evita que se parta "SoundFilterTelecom" */
}

.logo-sound {
  color: #7F7F7F; /* Gris para Sound */
}

.logo-filter {
  color: #f28B0E; /* Naranja para Filter */
}

.logo-telecom {
  color: #002060; /* Azul oscuro para Telecom */
}

.main-header ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.main-header ul li {
  display: inline;
}

.nav-btn {
  background: #007bff;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-weight: 600;
}

.nav-btn:hover {
  background: #002060;
}

/* ===== Hero / Carrusel ===== */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
}

.swiper-pagination-bullet {
  background: #fff;
}

/* ===== Services Section ===== */
.services-section {
  scroll-margin-top: 100px; /* ajusta según el alto de tu header */
  padding: 60px 20px;
  text-align: center;
}

.services-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.services-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #555;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-icon {
  font-size: 40px;
  color: #0077cc;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* ===== Texto sobre imágenes del carrusel ===== */
.slide-text {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  max-width: 80%;
  line-height: 1.3;
  animation: fadeInUp 1s ease both;
}

.slide-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-shadow: 3px 3px 12px rgba(0,0,0,0.8);
}

.slide-text p {
  font-size: 1.2rem;
  font-weight: 400;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  margin: 0;
}

/* Animación suave */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Responsive: header y servicios en móviles */
@media (max-width: 768px) {
  /* ===== HEADER ===== */
  .main-header nav {
    flex-direction: column;   /* logo arriba, menú abajo */
    align-items: center;
  }

  .main-header ul {
    flex-direction: column;   /* botones en columna */
    gap: 0.5rem;
    margin-top: 0.8rem;
    width: 100%;
    align-items: center;
  }

  .nav-btn {
    display: block;
    width: 100%;  /* botones ocupan ancho completo */
    text-align: center;
  }

  .slide-text h2 {
    font-size: 1.6rem;
  }
  .slide-text p {
    font-size: 0.95rem;
  }
  .slide-text {
    bottom: 10%;
  }


  /* ===== SERVICIOS ===== */
  .services-grid {
    grid-template-columns: 1fr; /* una columna */
  }
}

/* ===== Contacto ===== */
.contact-section {
  scroll-margin-top: 100px; /* ajusta según el alto de tu header */
  text-align: center;
  padding: 60px 20px;
  background: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 20px auto;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  padding: 12px;
  border: none;
  background: #007bff;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #0056b3;
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #25d366;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

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

/* ===== Footer ===== */
.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}
.btn-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;              /* ancho igual */
  height: 50px;             /* alto igual → círculo */
  background-color: #0077b6; 
  color: #fff;
  font-size: 22px;          /* tamaño de flecha */
  font-weight: bold;
  border-radius: 50%;       /* círculo perfecto */
  display: flex;            /* centrar contenido */
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.btn-top:hover {
  background-color: #f28B0E;
  transform: scale(1.1);
}

/* Efecto "macOS cursor" → flecha estilizada */
.btn-top::before {
  content: "⌃";   /* símbolo de flecha estilo mac */
  font-size: 26px;
  line-height: 1;
}


.btn-home {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background-color: #0077b6; /* mismo color principal que usas */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn-home:hover {
  background-color: #f28B0E; /* tono más oscuro al pasar el mouse */
}
.section-subtitle {
  margin-bottom: 2rem; /* agrega espacio debajo del subtítulo */
}
