/* encitel.css */

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* === BOTONES FLOTANTES === */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.btn-floating {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.2s;
}

/* WhatsApp */
.btn-floating.whatsapp {
  background: #25d366;
}
.btn-floating.whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
}

/* Teléfono */
.btn-floating.phone {
  background: #555;
}
.btn-floating.phone:hover {
  background: #444;
  transform: translateY(-2px);
}

.btn-floating img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =========================
   HEADER + NAVEGACIÓN
   ========================= */
#site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
#site-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #007BFF;
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-list a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}
.nav-list a:hover,
.nav-list a:focus {
  color: #007BFF;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: #007BFF;
  transition: width 0.3s;
}
.nav-list a:hover::after,
.nav-list a:focus::after {
  width: 100%;
}

/* Botón hamburguesa */
.nav-toggle {
  display: none; /* se muestra solo en móvil */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(135deg, rgba(232, 235, 238, 0.6), rgba(0,0,0,0.6)),
    url('./FiberLeadDesktop.webp')
    center/cover no-repeat;
  z-index: 1;
}
.hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
  padding: 0 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.hero-text .btn {
  background: #007BFF;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s;
}
.hero-text .btn:hover {
  background: #0056b3;
}

/* Indicador “bajar” */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 30px; height: 50px;
  margin-left: -15px;
  border: 2px solid #fff;
  border-radius: 25px;
}
.scroll-down::before {
  content: '';
  position: absolute;
  top: 10px; left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  background: #fff;
  border-radius: 50%;
  animation: scroll 1.5s infinite;
}
@keyframes scroll {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(20px); }
  100% { transform: translateY(0); }
}

/* =========================
   SECCIONES GENERALES
   ========================= */
.section {
  padding: 4rem 0;
}
.bg-light {
  background: #f9f9f9;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #333;
}

/* =========================
   TARJETAS (SERVICIOS & VENTAJAS)
   ========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.card {
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}
.card p {
  font-size: 1rem;
  padding: 0 1rem 1rem;
  color: #666;
}

/* =========================
   PLANES
   ========================= */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.plan-card {
  background: #fff;
  border-radius: 5px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.plan-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.plan-speed {
  font-size: 1.25rem;
  font-weight: 600;
  color: #007BFF;
  margin-bottom: 0.5rem;
}
.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.plan-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}
.plan-card ul li {
  margin-bottom: 0.5rem;
  color: #666;
}
.plan-card .btn,
.plan-card .btn-outline {
  margin-top: auto;
  padding: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  display: inline-block;
  transition: background 0.3s, color 0.3s;
}
.plan-card .btn {
  background: #007BFF;
  color: #fff;
  border: none;
}
.plan-card .btn:hover {
  background: #0056b3;
}
.plan-card .btn-outline {
  background: transparent;
  color: #007BFF;
  border: 2px solid #007BFF;
}
.plan-card .btn-outline:hover {
  background: #007BFF;
  color: #fff;
}

/* Badge “Popular” */
.popular {
  border: 2px solid #ffbf00;
}
.popular .badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ffbf00;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 5px;
}

/* =========================
   SOBRE NOSOTROS
   ========================= */
#about p {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* =========================
   FORMULARIO DE CONTACTO
   ========================= */
#contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
#contact-form button {
  align-self: flex-start;
  background: #007BFF;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
#contact-form button:hover {
  background: #0056b3;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #333;
  color: #fff;
  padding: 2rem 0;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-container p {
  margin-bottom: 1rem;
}
.socials a {
  margin: 0 0.5rem;
}
.socials img {
  width: 30px;
  height: 30px;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.socials img:hover {
  opacity: 1;
}

/* =========================
   RESPONSIVE (MÓVIL)
   ========================= */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-list {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    padding: 1rem;
    transition: max-height 0.3s ease;
  }
  .nav-list.open {
    max-height: 300px;
  }
  .nav-list li {
    margin: 1rem 0;
  }
}
