* {
  box-sizing: border-box;
}

/* Secciones responsive */
@media (max-width: 700px) {
  .section-content {
    padding: 24px 18px;
  }

  .values .card {
    width: 46%;
    min-width: unset;
    flex: 0 0 46%;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ctas {
    flex-direction: column;
    gap: 12px;
  }
}


:root {
  --primary: #e0e6f0;
  --gold: #CFA33E;
  --white: #ffffff;
  --header-h: 100px;
  --footer-h: 72px;
  --max-w: 1200px;
  --ff: 'Poppins', sans-serif;
}

/* reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--ff);
  color: var(--primary);
  background: radial-gradient(circle at top left, #0a0f1f, #000);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--footer-h) + 20px);
  overflow-x: hidden;
}

/* header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 1200;
  background: linear-gradient(90deg,#02162a 0%, #052f48 100%);
  box-shadow: 0 10px 40px rgba(0,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo { height: 64px; border-radius: 10px; object-fit: contain; }
.brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.95rem;
  text-shadow: 0 0 12px rgba(0,255,255,0.3);
}

/* nav */
.main-nav { display: flex; gap: 8px; align-items: center; }
.main-nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: transform .22s ease, box-shadow .22s ease;
}
.main-nav a:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 0 25px rgba(207,163,62,0.3), 0 10px 30px rgba(0,0,0,0.4);
}
.main-nav a.active {
  outline: 2px solid rgba(207,163,62,0.18);
  box-shadow: inset 0 0 20px rgba(207,163,62,0.2);
}

/* hamburger */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 48px;
  height: 42px;
  position: relative;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  margin: 6px 8px;
  transition: all .28s ease;
}
.hamburger.open span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; transform: translateX(-12px); }
.hamburger.open span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

/* main sections */
.app {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-h));
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.98);
  transition: opacity .8s ease, transform .8s ease, visibility .8s;
}
.section {
  transition: opacity 0.8s ease;
}

.section.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  box-shadow: inset 0 0 40px rgba(161, 117, 13, 0.1),
              0 0 50px rgba(31, 214, 68, 0.1);
  z-index: 10;
}

/* background */

#home {
  height: calc(120vh - var(--header-h)) !important;
  overflow: visible !important;
}

  @keyframes moveHomeBg {
    0% { background-position: center 0%; }
    100% { background-position: center 25%; } /* 🔥 Solo baja un poco, sin cortarse */
  }


.section-home { background-image: url('imagenes/Imagen 13.png'); }
.section-nosotros { background-image: url('imagenes/Imagen 16.png'); }
.section-servicios { background-image: url('imagenes/Imagen 15.png'); }
.section-contacto { background-image: url('imagenes/Imagen 14.png'); }



/* contenido */
.section-content {
  position: relative;
  z-index: 2;
  padding: 54px 36px;
  color: #fff;
  max-width: 1100px;
  margin: 0 auto;
}
.section-content .title {
  font-size: 2.6rem;
  font-weight: 800;
  text-shadow: 0 0 15px rgba(207,163,62,0.5), 0 0 30px rgba(255,255,255,0.2);
  margin-bottom: 12px;
}
.lead {
  font-size: 1.05rem;
  margin-bottom: 18px;
  opacity: 0.95;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}


/* botones */
.ctas { display: flex; justify-content: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .22s ease, box-shadow .22s;
}
.btn-primary {
  background: linear-gradient(90deg, rgba(207,163,62,0.15), rgba(207,163,62,0.08));
  color: #fff;
  border: 1px solid rgba(207,163,62,0.22);
  box-shadow: 0 0 15px rgba(207,163,62,0.08);
}
.btn-primary:hover {
  background: linear-gradient(90deg, #cfa33e, #f0d77b);
  box-shadow: 0 0 30px rgba(207,163,62,0.4);
  transform: translateY(-4px) scale(1.03);
}

/* grids */
/* ===== SECCIÓN NOSOTROS ===== */
#nosotros .section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: center;
}

#nosotros h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

#nosotros p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* === Valores TÍPICA === */
#nosotros .values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: stretch;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

#nosotros .values .card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px 12px;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#nosotros .values .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(207, 163, 62, 0.3);
}

/* Letras del acrónimo */
#nosotros .values .card .letter {
  font-size: 3rem;
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255,255,255,0.4);
}


/* Colores personalizados */
#nosotros .values .card:nth-child(1) .letter { color: #00BFFF; }
#nosotros .values .card:nth-child(2) .letter { color: #FFD700; }
#nosotros .values .card:nth-child(3) .letter { color: #00FFFF; }
#nosotros .values .card:nth-child(4) .letter { color: #BA55D3; }
#nosotros .values .card:nth-child(5) .letter { color: #C0C0C0; }
#nosotros .values .card:nth-child(6) .letter { color: #7FFFD4; }

/* ===== CENTRAR TODO EL CONTENIDO DE #NOSOTROS ===== */
#nosotros {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  min-height: 100vh;
}

#nosotros .section-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

#nosotros h2 {
  text-align: center;
  margin-bottom: 20px;
}

#nosotros p {
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
  text-align: center;
}

/* Alinear las tarjetas horizontalmente */
#nosotros .values {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 18px;
  width: 100%;
  overflow: hidden;
}

/* Responsividad */
@media (max-width: 768px) {
  #nosotros .values {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }

  #nosotros .values .card .letter {
    font-size: 2.2rem;
  }
}


/* servicios */
.services {
  grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  align-items: stretch;
}
.service {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  color: #fff;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform .28s, box-shadow .28s;
}
.service i { color: var(--gold); font-size: 28px; display: block; margin-bottom: 8px; }
.service:hover {
  transform: translateY(-10px) rotate3d(1,1,0,6deg);
  box-shadow: 0 0 35px rgba(0,255,255,0.2), 0 30px 90px rgba(0,0,0,0.5);
}

/* contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-info p { color: #fff; margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  color: #fff;
  margin-bottom: 8px;
}

/* modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(6px);
}
.close-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #000;
}

.modal .modal-content {
  background: linear-gradient(180deg,#fff,#ddd);
  color: #111;
  padding: 20px;
  border-radius: 12px;
  max-width: 720px;
  width: 92%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.close-modal { float: right; background: none; border: 0; font-size: 26px; cursor: pointer; }

/* floating buttons */
.float-btn {
  position: relative; /* importante: que NO sea fixed */
  right: auto;
  bottom: auto;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 1;
}
/* ===== BOTONES FLOTANTES FUTURISTAS ===== */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9999;
}

.floating-buttons a {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(192, 192, 192, 0.2));
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 0 10px rgba(207, 163, 62, 0.4),
    0 0 30px rgba(207, 163, 62, 0.2),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  animation: pulse-glow 3s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Iconos específicos */
.btn-whatsapp {
  background: radial-gradient(circle at center, #25D366 0%, #128C7E 80%);
}

.btn-instagram {
  background: radial-gradient(circle at center, #fd5949 0%, #d6249f 50%, #285AEB 100%);
}

.floating-buttons a:hover {
  transform: scale(1.15);
  box-shadow:
    0 0 20px rgba(207, 163, 62, 0.7),
    0 0 40px rgba(207, 163, 62, 0.5),
    inset 0 0 15px rgba(255, 255, 255, 0.4);
}

/* ✨ Animación de brillo */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(207, 163, 62, 0.4),
      0 0 30px rgba(207, 163, 62, 0.2),
      inset 0 0 10px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 20px rgba(207, 163, 62, 0.7),
      0 0 40px rgba(207, 163, 62, 0.5),
      inset 0 0 20px rgba(255, 255, 255, 0.3);
  }
}

/* 📱 Ajustes móviles */
@media (max-width: 600px) {
  .floating-buttons {
    bottom: 16px;
    right: 16px;
  }

  .floating-buttons a {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}


/* footer */
.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--footer-h);
  background: linear-gradient(90deg,#041428,#062b45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* responsive */
@media (max-width: 900px) {
  .header-inner { padding: 10px 18px; }
  .logo { height: 56px; }
  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    top: 0; right: -110%;
    height: 100vh; width: 78%; max-width: 360px;
    background: linear-gradient(135deg,#011a2f,#01324d);
    padding: 120px 18px 20px;
    transition: right .36s;
    z-index: 1300;
    box-shadow: -6px 0 20px rgba(0,0,0,0.4);
  }
  .main-nav.open { right: 0; }
  .hamburger { display: block; }
  .section { margin: 12px 12px; border-radius: 14px; }
  .section-content { padding: 36px 18px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ----- Servicios personalizados ----- */
.section-servicios .text-center {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-servicios .intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #e0e0e0;
}

.section-servicios .grid.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.section-servicios .service-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.section-servicios .service-card i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-servicios .service-card h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

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

.section-servicios .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(207, 163, 62, 0.4);
  border: 1px solid var(--gold);
}

/* ✅ Ajuste específico para que #servicios no muestre scroll */
#servicios {
  height: auto !important;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden !important;
  position: relative !important;
}

#servicios .section-content {
  overflow: visible !important;
}

#servicios .grid.services {
  overflow: visible !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}



/* Bloquea cualquier sombra o animación que se salga del viewport */
body {
  overflow-y: overlay; /* muestra scroll solo si el contenido lo necesita */
}

/* Ajuste específico para la sección de servicios */
#servicios {
  position: relative;
  width: 100%;
  height: auto;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden; /* corta cualquier sombra o efecto que desborde */
}

#servicios .section-content {
  overflow: visible;
}

/* Evita que animaciones hover o transform saquen elementos del contenedor */
#servicios .service-card {
  transform: translateZ(0);
  transition: all 0.3s ease;
}

/* Si tienes un hover que levanta la tarjeta, que lo haga sin romper layout */
#servicios .service-card:hover {
  transform: scale(1.03);
  z-index: 2;
}

/* Evita que las sombras generen desbordamiento visual */
#servicios .service-card {
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
  margin: 0;
}

/* Asegura centrado y ajuste del grid */
#servicios .grid.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* 🔧 Ocultar visualmente la barra de desplazamiento */
.section-servicios::-webkit-scrollbar {
  width: 0;
  height: 0;
}




/* Oculta las barras internas de la sección servicios */
#servicios,
#servicios * {
  overflow: hidden !important;
}

#servicios::-webkit-scrollbar,
#servicios *::-webkit-scrollbar {
  display: none !important;
}

#servicios {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* 🚫 Fuerza que la sección de servicios no tenga scroll vertical */
#servicios {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-h)) !important;
  min-height: auto !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ajusta el contenido interno para que se adapte sin desbordar */
#servicios .section-content {
  max-height: 100%;
  overflow: hidden !important;
  margin: 0 auto;
  padding: 3rem 2rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* El grid se centra sin romper el layout */
#servicios .grid.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible !important;
}

/* Bloquea cualquier sombra, hover o animación que sobresalga */
#servicios * {
  overflow: hidden !important;
}

/* Oculta visualmente cualquier scrollbar */
#servicios::-webkit-scrollbar,
#servicios *::-webkit-scrollbar {
  display: none !important;
}

#servicios {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}


  









/* 🔄 Texto rotatorio */
.rotating-text::after {
  content: "Innovación";
  animation: rotateWords 9s infinite;
}

@keyframes rotateWords {
  0%, 25% { content: "Innovación"; }
  26%, 50% { content: "Estrategia"; }
  51%, 75% { content: "Crecimiento"; }
  76%, 100% { content: "Transformación"; }
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content h2 { font-size: 1.2rem; }
  .btn-hero { padding: 10px 20px; font-size: 0.9rem; }
}

section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

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

/* ⚡ Brillo azul eléctrico al pasar por los botones del menú */
.main-nav a {
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, text-shadow 0.4s ease, transform 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00aaff, #00ffff, #00aaff);
  box-shadow: 0 0 8px #00ffff;
  transition: left 0.4s ease;
}

.main-nav a:hover {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00aaff;
  transform: translateY(-3px);
}

.main-nav a:hover::after {
  left: 0;
}

/* ✨ Suavidad al cambiar entre secciones (ya tienes parte, pero reforzamos) */
.section {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.97);
  transition: opacity .8s ease, transform .8s ease, visibility .8s;
}

  /* ===== OVERRIDE: Sección NOSOTROS - forzar fila única y título centrado ===== */

/* Asegura contenedor y título centrado */
#nosotros .section-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 48px 32px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

#nosotros h2 {
  text-align: center !important;
  font-size: 2.2rem !important;
  margin-bottom: 18px !important;
}

/* Ajuste del párrafo explicativo */
#nosotros p {
  text-align: center !important;
  max-width: 900px !important;
  margin: 0 auto 28px auto !important;
  line-height: 1.6 !important;
}

/* Contenedor de tarjetas: FORZAR fila única sin scroll */
#nosotros .values {
  display: flex !important;
  flex-wrap: nowrap !important;           /* todas en una sola línea */
  justify-content: center !important;
  align-items: stretch !important;
  gap: 15px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 6px !important;
  overflow: hidden !important;           /* evita barra de desplazamiento */
  box-sizing: border-box !important;
}

/* Cada tarjeta: tamaño calculado para que quepan 6 exactamente (resta gaps) */
#nosotros .values .card {
  flex: 0 0 calc((100% - 75px) / 6) !important; /* 5 gaps * 15px = 75px */
  max-width: calc((100% - 75px) / 6) !important;
  min-width: 120px !important;                    /* evita que queden demasiado pequeñas */
  background: rgba(255,255,255,0.05) !important;
  padding: 18px 10px !important;
  border-radius: 14px !important;
  text-align: center !important;
  transition: transform .28s ease, box-shadow .28s ease !important;
  box-sizing: border-box !important;
}

/* Letra del acrónimo más compacta para que quepa */
#nosotros .values .card .letter {
  font-size: 2.6rem !important;
  margin-bottom: 8px !important;
  letter-spacing: 1px !important;
}

/* Hover (mantener efecto ya existente) */
#nosotros .values .card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35) !important;
}

/* Responsivo: ajustar un poco el ancho de las tarjetas en pantallas medianas */
@media (max-width: 1200px) {
  #nosotros .values .card {
    flex: 0 0 calc((100% - 60px) / 6) !important;
    max-width: calc((100% - 60px) / 6) !important;
  }
}

//* === Responsivo: Sección Nosotros === */

/* Tablets horizontales y portátiles pequeños */
@media (max-width: 1024px) {
  #nosotros .section-content {
    padding: 40px 24px;
  }

  #nosotros .values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  #nosotros .values .card {
    flex: 1 1 calc(33.33% - 18px);
    max-width: calc(33.33% - 18px);
  }
}

/* Tablets verticales y celulares grandes */
@media (max-width: 768px) {
  #nosotros .section-content {
    padding: 36px 18px;
  }

  #nosotros .values {
    gap: 16px;
  }

  #nosotros .values .card {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 16px);
    padding: 14px 10px;
  }

  #nosotros .values .card .letter {
    font-size: 2.2rem;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {
  #nosotros .values {
    flex-direction: column;
    align-items: center;
  }

  #nosotros .values .card {
    flex: 1 1 100%;
    max-width: 90%;
  }
}



/* Animación al pasar el mouse */
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(255,255,255,0.5);
}

/* WhatsApp */
.float-btn.whatsapp {
  background: #25D366;
  bottom: 120px;
}

/* Instagram (gradiente) */
.float-btn.insta {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  bottom: 56px;
}



/* Centrado y ajuste automático similar a "Nosotros" */
#servicios .section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Centrar título e intro */
#servicios h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

#servicios .intro-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Reorganizar tarjetas */
#servicios .services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

/* Estilo individual */
#servicios .service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 20px 15px;
  text-align: center;
  flex: 1 1 250px; /* adaptable al ancho disponible */
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#servicios .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(207, 163, 62, 0.3);
}

/* Iconos */
#servicios .service-card i {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #CFA33E;
}

/* === Botones flotantes === */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 99999;
}

/* =============================== */
/* 🚀 BOTONES FLOTANTES - FINAL FIX */
/* =============================== */

.floating-buttons {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

/* 🔘 Estilos generales de los botones */
.floating-buttons a {
  position: relative !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 26px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
  cursor: pointer !important;
}

/* ✨ Efecto al pasar el cursor */
.floating-buttons a:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
}

/* ✅ Botón de WhatsApp */
.floating-buttons .btn-whatsapp {
  background: radial-gradient(circle at center, #25D366 0%, #128C7E 80%) !important;
}

/* ✅ Botón de Instagram */
.floating-buttons .btn-instagram {
  background: radial-gradient(circle at center, #fd5949 0%, #d6249f 50%, #285AEB 100%) !important;
}






/* ✅ Ajuste sección SERVICIOS sin scroll */
#servicios {
  position: relative;
  width: 100%;
  height: auto;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden !important;
  margin: 0 auto;
  padding: 3rem 2rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#servicios .section-content {
  max-height: 100%;
  overflow: visible !important;
}

#servicios .grid.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

#servicios .service-card {
  transform: translateZ(0);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
}

#servicios .service-card:hover {
  transform: scale(1.03);
  z-index: 2;
}

/* ⚡ Brillo azul eléctrico en menú */
.main-nav a {
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, text-shadow 0.4s ease, transform 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00aaff, #00ffff, #00aaff);
  box-shadow: 0 0 8px #00ffff;
  transition: left 0.4s ease;
}

.main-nav a:hover {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00aaff;
  transform: translateY(-3px);
}

.main-nav a:hover::after {
  left: 0;
}

/* ✨ Transición entre secciones */
.section {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.97);
  transition: opacity .8s ease, transform .8s ease, visibility .8s;
}

.section.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}









/* Header y menú hamburguesa responsive */
@media (max-width: 900px) {
  .header-inner {
    padding: 10px 18px;
  }

  .logo {
    height: 56px;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  .main-nav {
    position: fixed;
    right: -110%;
    top: 0;
    height: 100vh;
    width: 78%;
    max-width: 360px;
    background: linear-gradient(135deg,#011a2f,#01324d);
    padding: 120px 18px 20px;
    transition: right .36s;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    padding: 12px 16px;
    font-size: 1.1rem;
  }
}

.btn {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-electrizante {
  background: linear-gradient(90deg, rgba(207,163,62,0.12), rgba(207,163,62,0.06));
  color: #fff;
  border: 1px solid rgba(207,163,62,0.15);
  box-shadow: 0 0 6px rgba(207,163,62,0.3);
}

.btn-electrizante:hover {
  box-shadow: 0 0 12px 4px rgba(207,163,62,0.6), 
              0 0 20px 8px rgba(255,215,0,0.4);
  transform: translateY(-3px) scale(1.03);
}

/* ✅ Permitir scroll en móviles */
@media (max-width: 900px) {
  .section {
    position: relative !important;
    height: auto !important;
    min-height: calc(100vh - var(--header-h));
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body {
    overflow-y: auto !important;
  }
}

/* ===== FIX: centrar tarjetas de #nosotros en móviles (pegar al final de styles.css) ===== */

/* Ajuste general para móviles / tablets pequeñas */
@media (max-width: 900px) {
  /* Fuerza layout flexible y que las tarjetas puedan envolver */
  #nosotros .values {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;   /* centra las filas */
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 0 12px !important;
    overflow: visible !important;         /* permite ver todo el contenido */
    box-sizing: border-box !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Dos columnas por fila en móviles medianos, con espacio entre ellas */
  #nosotros .values .card {
    flex: 0 0 calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
    min-width: 140px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Ajuste del tamaño de la letra grande dentro de la tarjeta para que no empuje el diseño */
  #nosotros .values .card .letter {
    font-size: 2.2rem !important;
    margin-bottom: 8px !important;
  }
}

/* En móviles muy pequeños: una tarjeta por fila */
@media (max-width: 480px) {
  #nosotros .values {
    gap: 14px !important;
    padding: 0 16px !important;
  }

  #nosotros .values .card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #nosotros .values .card .letter {
    font-size: 2rem !important;
  }
}

/* ===== Ajuste RESPONSIVE para sección NOSOTROS: siempre 2 por fila en móviles ===== */
@media (max-width: 900px) {
  #nosotros .values {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 16px !important;
    overflow: visible !important;
    padding: 0 10px !important;
  }

  /* Siempre 2 por fila */
  #nosotros .values .card {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    min-width: 120px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  #nosotros .values .card .letter {
    font-size: 2rem !important;
    margin-bottom: 8px !important;
  }
}



/* Responsive */
@media(max-width:900px){
  .footer-inner{
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }
  .footer-about, .footer-links, .footer-contact{
    flex: unset;
  }
}


/* === TARJETAS ESPACIALES DINÁMICAS === */
.space-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px 0 60px 0;
}

.card-space {
  background: radial-gradient(circle at top, rgba(0, 255, 255, 0.1), rgba(0, 0, 0, 0.8));
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 16px;
  width: 260px;
  min-height: 220px;
  padding: 25px 20px;
  text-align: center;
  color: #fff;
  transition: all 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.card-space::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-space:hover::before {
  opacity: 1;
}

.card-space:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
  border-color: rgba(0, 255, 255, 0.6);
}

.card-space .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.card-space h3 {
  color: #00ffff;
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.card-space p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .card-space {
    width: 90%;
  }
}

/* ======== MENÚ HAMBURGUESA FUNCIONAL ======== */

/* Oculta el ícono hamburguesa en escritorio */
.hamburger {
  display: none;
}

/* Ícono hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #00ffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animación al hacer clic */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    right: -100%;
    width: 220px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(0, 255, 255, 0.3);
    z-index: 1000;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav a {
    color: #00ffff;
    font-size: 1.1rem;
    text-decoration: none;
  }
}

/* =========================
   CONTACTO RESPONSIVE FIX
   ========================= */

.section-contacto {
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info i {
  color: #00ffff;
  margin-right: 8px;
}

.contact-form {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.contact-form h3 {
  text-align: center;
  color: #00ffff;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form .btn-primary {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #00ffff, #0057ff);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form .btn-primary:hover {
  background: linear-gradient(90deg, #0057ff, #00ffff);
  transform: scale(1.02);
}

/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info, .contact-form {
    text-align: center;
  }

  .contact-info p {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .socials {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .section-contacto {
    padding: 60px 10px;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }
}



/* === REPARAR FORMULARIO CONTACTO EN MÓVILES === */
.section-contacto {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
}

.section-contacto .section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.section-contacto .contact-inner {
  position: relative;
  z-index: 2;
}

.section-contacto .contact-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.section-contacto .contact-form {
  flex: 1;
  max-width: 450px;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
}

.section-contacto form input,
.section-contacto form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #00ffff;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: white;
}

/* === RESPONSIVE EN CELULARES === */
@media (max-width: 768px) {
  .section-contacto .contact-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .section-contacto .contact-info,
  .section-contacto .contact-form {
    width: 100%;
    max-width: 400px;
  }

  .section-contacto form input,
  .section-contacto form textarea {
    font-size: 1rem;
  }
}


.electric-text {
  position: relative;
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 900; /* más grueso */
  text-align: center;
  line-height: 1.2;
  overflow: hidden;

  /* efecto flotante */
  animation: floatText 4s ease-in-out infinite;

  /* efecto de relieve */
  text-shadow:
    2px 2px 4px rgba(0,0,0,0.6),
    0 0 1px rgba(0,0,0,0.4);
}



/* Animación de la corriente eléctrica */
@keyframes electricFlow {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Animación de flotación */
@keyframes floatText {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Responsivo */
@media (max-width:900px){
  .electric-text { font-size: 2rem; }
}

/* Botón hamburguesa */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 35px;       /* ancho del botón */
  height: 30px;      /* alto del botón */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;     /* que quede encima */
}

/* Las líneas del hamburguesa */
.hamburger span {
  display: block;
  width: 100%;
  height: 4px;              /* grosor de las líneas */
  background-color: #fff;    /* color de las líneas */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Si quieres animación al abrir/cerrar */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}