/* ============================================================
   ELECTROPRO - Hoja de estilos principal
   ------------------------------------------------------------
   Paleta de colores oficial (NO cambiar estos valores):
   --bg-dark : #1B1330  (fondo principal morado/azul marino oscuro)
   --accent  : #F5A623  (naranja vibrante - botones y CTAs)
   --white   : #FFFFFF  (texto sobre fondo oscuro)
   ============================================================ */

/* ------------------------------------------------------------
   1. VARIABLES GLOBALES DE COLOR Y FUENTE
   Cambia aquí el color corporativo si tu cliente tiene uno propio
   ------------------------------------------------------------ */
:root {
  --dark: #1B1330;            /* Fondo principal */
  --accent: #F5A623;          /* Color de acento (texto negro encima) */
  --white: #FFFFFF;           /* Blanco puro */
  --dark-soft: #231A40;       /* Variante más clara del fondo (tarjetas) */
  --dark-light: #2D2350;      /* Variante aún más clara (bordes/sombra) */
  --text-muted: #B9AECF;      /* Texto secundario sobre fondo oscuro */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;             /* Radio de esquinas redondeadas */
  --transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ------------------------------------------------------------
   2. RESET BÁSICO Y ESTILOS GENERALES
   ------------------------------------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Desplazamiento suave básico al hacer clic en el menú */
  scroll-behavior: smooth;
  /* Compensa el header fijo para que las anclas no queden ocultas */
  scroll-padding-top: 76px;
}

body {
  font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  background-color: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Contenedor central: centra el contenido con un ancho máximo */
.container {
  width: min(1150px, 92%);
  margin: 0 auto;
}

/* Título de cada sección + subtítulo */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-header .tag {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: var(--white);
}

/* Barra decorativa naranja bajo los títulos */
.section-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 14px auto 0;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 1.02rem;
}

/* ------------------------------------------------------------
   3. ANIMACIÓN AL HACER SCROLL (Fade + Slide Up)
   - El contenido empieza oculto: opacidad 0 y desplazado 30px abajo
   - Cada elemento necesita las clases: "reveal" + una variante de
     retraso (reveal-1, reveal-2, ...) para escalonar el efecto
   - Cuando entra en pantalla, su clase se cambia a "visible" desde
     script.js usando IntersectionObserver (solo la primera vez)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  /* Solo se anima opacidad y transform: son propiedades baratas para
     la GPU y no provocan "lag" en dispositivos móviles */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Retrasos escalonados para que los elementos aparezcan en cascada */
.reveal-1 { transition-delay: 0.1s; }
.reveal-2 { transition-delay: 0.2s; }
.reveal-3 { transition-delay: 0.3s; }
.reveal-4 { transition-delay: 0.4s; }
/* Cuando aparece por subir (no por bajar): se muestra sin transición */
.reveal.no-anim {
  transition: none !important;
}

/* Accesibilidad: si el usuario pide reducir animaciones, se muestran
   directamente (sin movimiento) */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ------------------------------------------------------------
   4. BOTÓN PRINCIPAL (CTA) y BOTÓN SECUNDARIO
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* Botón naranja: texto negro sobre naranja (contraste requerido) */
.btn-accent {
  background: var(--accent);
  color: #1B1330;
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(245, 166, 35, 0.45);
}

/* Botón de contorno/blanco */
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

/* ------------------------------------------------------------
   5. BARRA DE NAVEGACIÓN FIJA (+ menú móvil hamburguesa)
   ------------------------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27, 19, 48, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Logo de la marca (cambia aquí el nombre fácilmente) */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo svg {
  width: 28px;
  height: 28px;
}

.logo span {
  color: var(--accent);
}

/* Menú de escritorio (oculto en móvil, se muestra el botón hamburguesa) */
.nav-menu {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.nav-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links {
  display: flex;
  flex-direction: column;
}

.nav-links a {
  padding: 14px 24px;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

/* SCROLL-SPY: pestaña activa (la sección visible en pantalla).
   script.js añade esta clase a la pestaña correspondiente */
.nav-links a.active {
  color: var(--accent);
  border-left: 3px solid var(--accent);
}

/* Botón hamburguesa (visible solo en móvil/tablet) */
.nav-toggle {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 24px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Transforma las tres líneas en una "X" cuando el menú está abierto */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ------------------------------------------------------------
   6. HERO / INICIO
   Fondo oscuro con un patrón decorativo hecho en SVG (sin imágenes
   externas = carga instantánea). Se puede sustituir por una foto
   real del cliente si se desea.
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 166, 35, 0.18), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(77, 61, 141, 0.5), transparent 50%),
    var(--dark);
  overflow: hidden;
}

/* Patrón decorativo de "circuito eléctrico" generado con SVG interno */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1.5'%3E%3Cpath d='M0 40h40l10 10 10-10h60'/%3E%3Cpath d='M0 80h20l10-10h90'/%3E%3Cpath d='M60 0v30l10 10 10-10v-30'/%3E%3Cpath d='M100 0v20l10 10-10 10v20'/%3E%3Ccircle cx='40' cy='40' r='4'/%3E%3Ccircle cx='80' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  pointer-events: none;
}

/* Rayo decorativo (ícono SVG del logotipo) en la esquina derecha */
.hero-bolt {
  position: absolute;
  right: 6%;
  top: 20%;
  width: clamp(120px, 22vw, 220px);
  opacity: 0.08;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-content .eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-content h1 .highlight {
  color: var(--accent);
}

.hero-content p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Indicadores rápidos bajo el CTA (solución sencilla, sin animación) */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
}

.hero-stats .stat strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent);
}

.hero-stats .stat span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   7. SERVICIOS (tarjetas con icono)
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: var(--shadow);
}

/* Círculo naranja que contiene el icono del servicio */
.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.16);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.service-card .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   8. PROYECTOS / PORTAFOLIO (galería + filtros)
   ------------------------------------------------------------ */
/* Botones del filtro (Sin servidor de imágenes: las "fotos" son
   gradientes de color con un icono. Reemplaza la clase .project-cover
   por una <img> real si quieres fotografías) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Filtro activo (manejo de estado desde script.js) */
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1B1330;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.project-card {
  background: var(--dark-soft);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Tarjetas ocultas por el filtro (fade out simple, sin movimiento) */
.project-card.hidden {
  display: none;
}

/* "Imagen placeholder" generada con gradiente según categoría.
   Cada categoría tiene un tono distinto para diferenciarla */
.project-cover {
  height: 200px;
  display: grid;
  place-items: center;
  position: relative;
}

.project-cover svg {
  width: 56px;
  height: 56px;
  opacity: 0.75;
}

/* Fotos de los proyectos: se posicionan de forma absoluta dentro del
   contenedor relativo .project-cover, de modo que siempre llenan
   exactamente su bloque de 200px y jamás se desbordan tapando el
   título de la tarjeta (sin importar el tamaño real de la imagen) */
.project-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-cover .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(27, 19, 48, 0.85);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 20px;
}

.cat-residencial { background: linear-gradient(135deg, #3a2b6b, #6d4fd1); }
.cat-comercial   { background: linear-gradient(135deg, #6b4a1b, #f5a623); }
.cat-industrial  { background: linear-gradient(135deg, #16324f, #2f6fb0); }

.project-info {
  padding: 20px 22px 24px;
}

.project-info h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ------------------------------------------------------------
   9. SOBRE NOSOTROS (texto + "por qué elegirnos")
   ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Tarjeta de datos destacados (años, proyectos, certificaciones) */
.about-data {
  background: var(--accent);
  color: #1B1330;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  align-self: start;
}

.about-data h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.about-data p {
  font-weight: 600;
  margin-top: 10px;
}

.about-data hr {
  border: none;
  border-top: 2px solid rgba(27, 19, 48, 0.2);
  margin: 18px 0;
}

.about-text h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 14px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Lista simple de características (sin checkmarks complejos) */
.about-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--white);
  margin: 10px 0;
}

.about-check svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Los 4 íconos de "por qué elegirnos" */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.why-card {
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}

.why-card svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  margin-bottom: 10px;
}

.why-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------
   10. TESTIMONIOS
   ------------------------------------------------------------ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonial-card {
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

/* Comillas decorativas en naranja */
.testimonial-card .quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 800;
}

.testimonial-card blockquote {
  color: var(--text-muted);
  font-style: italic;
  margin: 12px 0 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

/* Avatar circular con la inicial del cliente (sin fotos externas) */
.testimonial-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #1B1330;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.testimonial-author strong {
  display: block;
  font-size: 0.98rem;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Cinco estrellas de valoración (SVG inline) */
.stars {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

/* ------------------------------------------------------------
   11. CONTACTO / FORMULARIO DE COTIZACIÓN
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Datos de contacto resumidos a la izquierda */
.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-info .contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.contact-info .contact-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  flex-shrink: 0;
}

/* Formulario - caja sobre fondo más claro */
.form-box {
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.form-group label span {
  color: var(--accent);
}

/* Campos del formulario */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--dark);
  color: var(--white);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

/* Opciones del <select>: el fondo se fuerza a oscuro para consistencia */
.form-group select option {
  background: var(--dark);
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

/* Mensaje de éxito tras "enviar" (se muestra desde script.js) */
.form-success {
  display: none;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid var(--accent);
  color: var(--white);
  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 16px;
  font-weight: 600;
}

.form-success.show {
  display: block;
}

/* ------------------------------------------------------------
   12. PIE DE PÁGINA / FOOTER
   ------------------------------------------------------------ */
.footer {
  background: #151027;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 6px 0;
}

/* Navegación y redes sociales del pie */
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 6px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1B1330;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.footer-bottom a {
  color: var(--accent);
  font-weight: 700;
}

/* ------------------------------------------------------------
   13. BOTÓN FLOTANTE DE WHATSAPP
   Círculo fijo abajo a la derecha, visible en toda la página.
   "bottom: 90px" lo sube lo suficiente para que no quede tapado
   por la marca de agua de Netlify (esquina inferior derecha).
   El número y el mensaje se configuran en script.js
   ------------------------------------------------------------ */
.whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366; /* Verde oficial de WhatsApp */
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  z-index: 1001;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.55);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

/* Toque animado sencillo alrededor del botón (discreto, solo en
   pantallas que no reduzcan animaciones) */
@keyframes pulse {
  0%   { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-btn:hover,
.whatsapp-btn:active {
  animation: none;
}

/* ============================================================
   14. PUNTOS DE RUPTURA RESPONSIVE
   Estrategia MOBILE-FIRST: estilos base = celular; aquí se van
   adaptando tablet y escritorio con "min-width"
   ============================================================ */

/* --- Tablet pequeña (>= 640px): 2 columnas en servicios y proyectos --- */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Tablet (>= 768px): aparece el menú horizontal --- */
@media (min-width: 768px) {
  .nav-toggle {
    display: none; /* Se oculta la hamburguesa */
  }

  .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding: 0;
  }

  .nav-links {
    flex-direction: row;
    gap: 6px;
  }

  .nav-links a {
    padding: 8px 14px;
    border-radius: 6px;
    border-left: none;
    font-size: 0.95rem;
  }

  /* El estado activo del menú en escritorio: subrayado naranja
     (sin fondo, solo la línea inferior) */
  .nav-links a.active {
    border-left: none !important;
    background: transparent;
  }

  .nav-links a.active::after {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 6px;
  }

  .about-grid {
    grid-template-columns: 4fr 5fr;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: 2fr 3fr;
    align-items: start;
  }
}

/* --- Escritorio (>= 1024px): 4 columnas en servicios --- */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}