@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

@charset "utf-8";

/* ==========================================================================
   SISTEMA DE DISEÑO Y VARIABLES (CAHESOFT Premium)
   ========================================================================== */
:root {
  --bg-primary: #070b19;
  --bg-secondary: #0d1326;
  --bg-tertiary: #131b35;
  --accent-blue: #008cff;
  --accent-cyan: #00f0ff;
  --accent-amber: #f8b526;
  --accent-emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.15);
  --glass-bg: rgba(13, 19, 38, 0.75);
  --glass-blur: blur(12px);
  --font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.15);
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
* {
  font-family: var(--font-family);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

header, section, footer, aside, nav, article, figure, figcaption, hgroup, div {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

html, body {
  min-height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea, [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.nada {
  clear: both;
}

/* Contenedor central */
.wrapper1 {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   CABECERA & BARRA DE CONTACTO
   ========================================================================== */
.verde {
  width: 100%;
  position: relative;
  z-index: 100;
}

/* Barra superior de redes */
nav.flex {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  height: 44px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 40px;
  background: rgba(7, 11, 25, 0.5);
  backdrop-filter: var(--glass-blur);
}

nav.flex a {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

nav.flex a:hover {
  color: var(--accent-cyan);
}

nav.flex div.p {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

nav.flex div.p.w::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('img/contacto_w.png') no-repeat center/contain;
}

nav.flex div.p.tl::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('img/redes_tl.png') no-repeat center/contain;
}

nav.flex div.p.t::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('img/contacto_t.png') no-repeat center/contain;
}

nav.flex div.p.wt::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 16px;
  background: url('img/contacto_w.png') no-repeat left center/16px, url('img/contacto_t.png') no-repeat right center/16px;
}

/* Cabecera Principal */
.cabecera_fondo {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 99;
  transition: var(--transition);
}

.cabecera_fondo.scrolled {
  height: 75px;
  background: rgba(7, 11, 25, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#nombrecab {
  flex: 0 0 160px;
  display: flex;
  align-self: flex-start;
  margin-top: 0;
  margin-left: -40px;
}

#nombrecab img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(0, 140, 255, 0.3));
}

/* Navegador de Escritorio */
#navegador {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 10px;
}

#navegador a {
  text-decoration: none;
}

#navegador li {
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-main);
  padding: 8px 20px;
  border-radius: 99px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

#navegador a li.active,
#navegador li.active {
  background: rgba(0, 188, 255, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.2);
}

#navegador li:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Menú Móvil Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 99px;
  transition: var(--transition);
}

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

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

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

/* ==========================================================================
   HERO / BANNER PRINCIPAL (SLIDER)
   ========================================================================== */
#fondo1 {
  width: 100%;
  position: relative;
  height: 600px;
  overflow: hidden;
  background-color: #020617;
}

#fondo1::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 11, 25, 0.3) 0%, rgba(7, 11, 25, 0.95) 100%);
  z-index: 2;
  pointer-events: none;
}

#fondo1>img.ini {
  display: none;
}

/* Slider CSS */
#fondo1 div#slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#fondo1 div#slider figure {
  position: relative;
  width: 200%;
  height: 100%;
  margin: 0;
  left: 0;
  animation: 12s slidy infinite;
}

#fondo1 div#slider figure img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  float: left;
}

@keyframes slidy {
  0%, 45% { left: 0%; }
  50%, 95% { left: -100%; }
  100% { left: 0%; }
}

/* Contenido sobre el Hero */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 1150px;
  text-align: center;
  z-index: 5;
  color: var(--text-main);
  padding: 20px;
}

.hero-content h1 {
  font-size: clamp(1.1rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero-content p {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   SECCIONES GENERALES & BOTONES
   ========================================================================== */
.boton1 {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0055ff 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 140, 255, 0.3);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.boton1:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 140, 255, 0.5), 0 0 15px var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

/* Presentación Inicio */
div.azul {
  width: 100%;
  background: transparent;
  padding: 80px 0;
  position: relative;
}

div.inicio {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

div.inicio>section {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  padding: 50px;
  border-radius: 24px;
  box-shadow: var(--shadow-glow);
}

div.inicio>section p {
  font-size: 1.35rem;
  color: var(--text-main);
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 35px;
}

/* ==========================================================================
   GRID DE TARJETAS DE SERVICIO (Inicio / Nosotros)
   ========================================================================== */
section.items {
  padding: 60px 0;
}

section.items>div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
}

section.items>div figure {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

section.items>div figure:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

section.items>div figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

section.items>div figure:hover img {
  transform: scale(1.05);
}

section.items>div figure > div {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

section.items>div figure figcaption {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

section.items>div figure p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Botón flotante / secundario */
.boton-ver-mas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  width: max-content;
}

.boton-ver-mas:hover {
  background: var(--accent-cyan);
  color: var(--text-dark);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transform: translateX(4px);
}

/* ==========================================================================
   SECCIÓN DE CLIENTES (MARQUESINA CSS FLUIDA)
   ========================================================================== */
section.clientes {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

section.clientes h1 {
  text-align: center;
  color: var(--text-main);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 45px;
  position: relative;
}

section.clientes h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-cyan);
  margin: 10px auto 0 auto;
  border-radius: 99px;
}

/* Contenedor del Carrusel Manual */
.clientes-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.clientes-marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}

.clientes-marquee-container::before,
.clientes-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.clientes-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

.clientes-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

.clientes-marquee-track {
  display: flex;
  gap: 60px;
  align-items: center;
  width: max-content;
}

.clientes-marquee-track img {
  height: 55px;
  width: auto;
  filter: none;
  opacity: 1;
  transition: var(--transition);
}

.clientes-marquee-track img:hover {
  transform: scale(1.05);
}

/* Botones de flechas del carrusel */
.carousel-arrow {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  user-select: none;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.carousel-arrow:hover {
  background: var(--accent-cyan);
  color: var(--text-dark);
  box-shadow: 0 0 15px rgba(0,240,255,0.4);
  border-color: var(--accent-cyan);
}

.carousel-arrow:focus {
  outline: none;
}

/* Eliminar botones viejos de clientes */
section.clientes > div > span,
#m1, #m2 {
  display: none !important;
}

/* ==========================================================================
   NOSOTROS.HTML (Sobre Nosotros)
   ========================================================================== */
div.verde1 {
  width: 100%;
  background: linear-gradient(135deg, rgba(0, 140, 255, 0.1) 0%, rgba(7, 11, 25, 0.4) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 20px;
  text-align: center;
}

div.verde1>section {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--accent-cyan);
}

div.nos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 80px 20px;
}

div.nos>div>p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
}

div.nos>img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Misión y Visión */
div.verde2 {
  width: 100%;
  background: var(--bg-secondary);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

div.nos2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

div.nos2>figure {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  gap: 25px;
  align-items: flex-start;
  transition: var(--transition);
}

div.nos2>figure:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

div.nos2>figure>img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

div.nos2>figure figcaption {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

div.nos2>figure p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   SERVICIOS.HTML (Listado General)
   ========================================================================== */
.productos {
  padding: 80px 20px;
}

.productos>article {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 50px;
  align-items: center;
  padding: 50px;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
  transition: var(--transition);
}

.productos>article:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow);
}

.productos>article:nth-child(even) {
  grid-template-columns: 400px 1fr;
}

.productos>article:nth-child(even) > img {
  grid-column: 1;
}

.productos>article:nth-child(even) > div {
  grid-column: 2;
}

.productos>article>div {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.productos>article h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-amber);
  line-height: 1.3;
}

.productos>article p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.productos>article>img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.productos div.boton3 {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0044cc 100%);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  width: max-content;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition);
}

.productos div.boton3:hover {
  background: var(--accent-cyan);
  color: var(--text-dark);
  box-shadow: 0 0 15px var(--accent-cyan);
}

/* ==========================================================================
   CONTACTO.HTML (Contacto y Mapa)
   ========================================================================== */
div.contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 80px 20px;
}

.contactof {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-glow);
}

.contactof>form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contactof>form>div {
  display: flex;
  border: 1px solid var(--border-color);
  background: rgba(7, 11, 25, 0.4);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.contactof>form>div:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.contactof>form>div>div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid var(--border-color);
}

.contactof>form>div>div>img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.contactof>form>div>input {
  flex-grow: 1;
  background: transparent;
  border: none;
  height: 48px;
  color: var(--text-main);
  padding: 0 15px;
  font-size: 1rem;
}

.contactof>form>div>textarea {
  flex-grow: 1;
  background: transparent;
  border: none;
  height: 150px;
  color: var(--text-main);
  padding: 15px;
  font-size: 1rem;
  resize: none;
}

.contactof>form>div>input:focus,
.contactof>form>div>textarea:focus {
  outline: none;
}

.contactof>form>input[type=submit] {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0055ff 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 700;
  height: 50px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 140, 255, 0.2);
  margin-top: 10px;
}

.contactof>form>input[type=submit]:hover {
  box-shadow: 0 8px 25px rgba(0, 140, 255, 0.4), 0 0 15px var(--accent-cyan);
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.4);
}

/* Columna de Datos de Contacto */
div.ct {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

div.ct>h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

div.ct>div.p {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  padding: 20px 25px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

div.ct>div.p::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

div.ct>div.p.t::before {
  background: url('img/contacto_t.png') no-repeat center/contain;
}

div.ct>div.p.m::before {
  background: url('img/contacto_m.png') no-repeat center/contain;
}

div.ct div.wa {
  background: #25d366;
  color: #ffffff;
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
  max-width: 320px;
}

div.ct div.wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

div.ct iframe {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  height: 350px !important;
}

/* ==========================================================================
   PÁGINAS DE SERVICIOS DETALLADOS (Layout Split)
   ========================================================================== */
div.productos.producto {
  padding: 80px 20px;
  max-width: 1200px !important;
  margin: 0 auto;
}

div.productos.producto>article {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 50px;
  align-items: flex-start;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  padding: 50px;
  border-radius: 24px;
}

/* Texto del servicio */
div.productos.producto article > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

div.productos.producto article h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-amber);
  margin-bottom: 10px;
  line-height: 1.25;
}

div.productos.producto article p {
  color: var(--text-main);
  font-size: 1.1rem;
  line-height: 1.7;
}

div.productos.producto article ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

div.productos.producto article ul li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

div.productos.producto article ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Caja de Imagen y Galería */
div.productos.producto article figure {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

div.productos.producto figure > a > img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: var(--transition);
  cursor: zoom-in;
}

div.productos.producto figure > a > img:hover {
  transform: scale(1.02);
}

div.productos.producto figure div.tn {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

div.productos.producto figure div.tn img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

div.productos.producto figure div.tn img:hover {
  border-color: var(--accent-cyan);
  transform: scale(1.05);
}

/* Botones de acción en servicios */
.servicio-acciones {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-contacto {
  background: var(--accent-cyan);
  color: var(--text-dark);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: var(--transition);
}

.btn-contacto:hover {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}

.btn-retornar {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: var(--transition);
}

.btn-retornar:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* ==========================================================================
   PIE DE PÁGINA (Footer)
   ========================================================================== */
.wrapper3 {
  width: 100%;
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border-color);
}

.firma2 {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.firma2 section h3 {
  color: var(--text-main);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.firma2 section h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-cyan);
  margin-top: 8px;
  border-radius: 99px;
}

.firma2 section p {
  line-height: 1.8;
  font-size: 0.95rem;
}

.firma2 section p a {
  color: var(--accent-cyan);
}

.firma2 section p a:hover {
  text-decoration: underline;
}

/* Chat e Iconos */
.firma2 .emo {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.firma2 .emo-icons {
  display: flex;
  gap: 12px;
}

.firma2 .emo-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition);
}

.firma2 .emo-icons a:hover {
  background: var(--accent-blue);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 140, 255, 0.4);
}

.firma2 .emo-icons img {
  width: 24px;
  height: 24px;
}

/* Derechos y firma creador */
.firma {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 20px 0 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.firma p {
  color: var(--text-muted);
}

.firma-links a {
  color: var(--text-muted);
  margin-left: 10px;
}

.firma-links a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   MODAL LIGHTBOX (Para Galería de Servicios)
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.open {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-color);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.open .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: var(--text-main);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-cyan);
  transform: rotate(90deg);
}

/* ==========================================================================
   REDIRECCIÓN Y CARGA (Root Loader)
   ========================================================================== */
.loader-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

.loader {
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-cyan);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

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

/* ==========================================================================
   SECCIÓN DE PRESENTACIÓN COMERCIAL (BROCHURE)
   ========================================================================== */
.brochure-seccion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 140, 255, 0.08) 0%, rgba(0, 240, 255, 0.03) 100%);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 20px;
  padding: 30px 40px;
  margin: 20px 0 50px 0;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  gap: 30px;
  transition: var(--transition);
}

.brochure-seccion:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 12px 40px 0 rgba(0, 240, 255, 0.1), var(--shadow-glow);
  transform: translateY(-2px);
}

.brochure-contenido {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.brochure-icono {
  width: 54px;
  height: 54px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.brochure-icono svg {
  width: 28px;
  height: 28px;
}

.brochure-texto h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.brochure-texto p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.brochure-boton-wrapper {
  flex-shrink: 0;
}

.boton-descargar-brochure {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0055ff 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 140, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-transform: uppercase;
}

.boton-descargar-brochure:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 140, 255, 0.5), 0 0 12px var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   CONSULTAS DE MEDIOS (Adaptabilidad / Responsivo)
   ========================================================================== */
@media screen and (max-width: 1200px) {
  .productos>article,
  div.productos.producto>article {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }

  .productos>article:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .productos>article:nth-child(even) > img,
  .productos>article:nth-child(even) > div {
    grid-column: auto;
  }

  .productos>article>img,
  div.productos.producto article figure {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}

@media screen and (max-width: 992px) {
  div.nos {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  div.nos2 {
    grid-template-columns: 1fr;
  }

  div.contacto {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .firma2 {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .firma2 section h3::after {
    margin: 8px auto 0 auto;
  }

  .firma2 .emo-icons {
    justify-content: center;
  }

  .firma {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   BOTONES FLOTANTES: CHATBOT E INICIO
   ========================================================================== */
@keyframes chatbotVibrate {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3), var(--shadow-glow);
  }
  3% {
    transform: translate(-4px, -2px) scale(1.08) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.8), 0 0 20px rgba(0, 240, 255, 0.7);
  }
  6% {
    transform: translate(4px, 2px) scale(1.08) rotate(5deg);
  }
  9% {
    transform: translate(-4px, 1px) scale(1.08) rotate(-4deg);
  }
  12% {
    transform: translate(4px, -2px) scale(1.08) rotate(4deg);
  }
  15% {
    transform: translate(-3px, 2px) scale(1.05) rotate(-3deg);
  }
  18% {
    transform: translate(3px, -1px) scale(1.05) rotate(3deg);
  }
  21% {
    transform: translate(-1px, 1px) scale(1.02) rotate(-1deg);
  }
  23%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3), var(--shadow-glow);
  }
}

.floating-chatbot-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 85, 255, 0.3));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 50px;
  padding: 12px 20px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3), var(--shadow-glow);
  transition: var(--transition);
  cursor: pointer;
  animation: none;
}

.floating-chatbot-btn.vibrating {
  animation: chatbotVibrate 1.3s infinite ease-in-out;
}

.floating-chatbot-btn:hover,
.floating-chatbot-btn.vibrating:hover {
  animation: none;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0055ff 100%);
  border-color: rgba(0, 240, 255, 0.9);
  color: #ffffff;
  transform: translateY(-3.5px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.4);
}

.floating-chatbot-btn svg.chat-icon {
  width: 20px;
  height: 20px;
  color: #00f0ff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.floating-chatbot-btn:hover svg.chat-icon {
  color: #ffffff;
  transform: scale(1.15) rotate(-5deg);
}

.floating-home-btn {
  position: fixed;
  bottom: 30px;
  right: 175px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 12px 20px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.05);
  transition: var(--transition);
  cursor: pointer;
}

.floating-home-btn:hover {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0055ff 100%);
  border-color: rgba(0, 240, 255, 0.4);
  color: #ffffff;
  transform: translateY(-3.5px);
  box-shadow: 0 8px 25px rgba(0, 140, 255, 0.4), var(--shadow-glow);
}

.floating-home-btn svg.home-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
  transition: transform 0.3s ease, color 0.3s ease;
}

.floating-home-btn:hover svg.home-icon {
  color: #ffffff;
  transform: scale(1.1);
}

/* ==========================================================================
   CHATBOT MODAL WIDGET
   ========================================================================== */
.chatbot-modal {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 370px;
  max-width: calc(100vw - 30px);
  height: 510px;
  max-height: calc(100vh - 120px);
  background: rgba(10, 15, 29, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(15px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.chatbot-modal.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 102, 255, 0.25));
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #0055ff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.chatbot-avatar svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  fill: none;
}

.chatbot-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.chatbot-status {
  font-size: 0.75rem;
  color: #00f0ff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chatbot-status-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
}

.chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chatbot-action-btn-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chatbot-action-btn-icon:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  animation: fadeInMsg 0.3s ease forwards;
}

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

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-msg.bot .chat-bubble {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-top-left-radius: 4px;
}

.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, var(--accent-cyan), #0055ff);
  color: #ffffff;
  border-top-right-radius: 4px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.chat-options-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.chat-opt-btn {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: block;
  text-decoration: none;
}

.chat-opt-btn:hover {
  background: linear-gradient(135deg, var(--accent-cyan), #0055ff);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.chat-staff-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-staff-name {
  font-weight: 700;
  color: #00f0ff;
  font-size: 0.92rem;
}

.chat-staff-role {
  font-size: 0.78rem;
  color: #94a3b8;
}

.chat-staff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #00f0ff, #0055ff);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 6px;
  transition: all 0.2s ease;
}

.chat-staff-btn:hover {
  filter: brightness(1.2);
  transform: translateY(-1.5px);
}

@media screen and (max-width: 768px) {
  /* Mostrar botón de menú hamburguesa */
  .nav-toggle {
    display: flex;
  }

  nav.flex {
    justify-content: center;
    padding: 0 20px;
  }

  /* Transformar navegador a menú móvil */
  #navegador {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(7, 11, 25, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    z-index: 105;
    transition: var(--transition);
    gap: 20px;
  }

  #navegador.open {
    right: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  #navegador li {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: clamp(1rem, 3.8vw, 1.9rem);
    white-space: nowrap;
  }

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

  div.inicio>section {
    padding: 30px 20px;
  }

  div.inicio>section p {
    font-size: 1.1rem;
  }

  section.items>div {
    grid-template-columns: 1fr;
  }

  /* Adaptabilidad de la sección Brochure */
  .brochure-seccion {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
    margin: 10px 0 40px 0;
  }

  .brochure-contenido {
    flex-direction: column;
    gap: 15px;
  }

  .brochure-icono {
    margin: 0 auto;
  }

  .boton-descargar-brochure {
    width: 100%;
  }

  /* Ajustes adicionales para la cabecera en tabletas */
  .cabecera_fondo {
    padding: 0 20px;
    height: 75px;
  }

  .cabecera_fondo.scrolled {
    height: 65px;
  }

  #nombrecab {
    flex: 0 0 130px;
    margin-left: -20px;
  }


  /* Altura dinámica del banner principal (Hero) */
  #fondo1 {
    height: 450px;
  }

  /* Relleno global en contenedores */
  .wrapper1 {
    padding: 0 15px;
  }

  /* Imagen de Nosotros */
  div.nos>img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
}

/* ==========================================================================
   DISPOSITIVOS MÓVILES MEDIANOS (Smartphones en Horizontal / Phablets)
   ========================================================================== */
@media screen and (max-width: 576px) {
  /* Carrusel de Clientes sin flechas molestas */
  .clientes-carousel-wrapper {
    padding: 0 15px;
    gap: 0;
  }

  .carousel-arrow {
    display: none !important;
  }

  .clientes-marquee-container {
    padding: 10px 0;
  }
}

/* ==========================================================================
   DISPOSITIVOS MÓVILES PEQUEÑOS (Smartphones en Vertical / Iphones / Android)
   ========================================================================== */
@media screen and (max-width: 480px) {
  /* Barra de contacto rápida superior */
  nav.flex {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 15px;
    gap: 8px 15px;
    justify-content: center;
  }

  nav.flex a {
    font-size: 0.78rem;
  }

  /* Cabecera principal en móviles */
  .cabecera_fondo {
    padding: 0 15px;
    height: 70px;
  }

  .cabecera_fondo.scrolled {
    height: 60px;
  }

  #nombrecab {
    flex: 0 0 120px;
    margin-left: -15px;
  }


  /* Héroe en móviles */
  #fondo1 {
    height: 350px;
  }

  .hero-content h1 {
    font-size: clamp(0.85rem, 4.2vw, 1.4rem);
    white-space: nowrap;
    margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .boton1 {
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  /* Bloque de Introducción */
  div.azul {
    padding: 40px 0;
  }

  div.inicio>section {
    padding: 25px 15px;
    border-radius: 16px;
  }

  div.inicio>section p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
  }

  /* Sección Nosotros */
  div.nos {
    padding: 40px 15px;
  }

  div.nos>div>p {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  /* Misión y Visión apilados con iconos centrados */
  div.nos2>figure {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 15px;
    border-radius: 16px;
    gap: 15px;
  }

  div.nos2>figure>img {
    width: 60px;
    height: 60px;
  }

  div.nos2>figure figcaption {
    font-size: 1.3rem;
  }

  /* Sección de Brochure Comercial */
  .brochure-texto h2 {
    font-size: 1.2rem;
  }

  .brochure-texto p {
    font-size: 0.85rem;
  }

  .boton-descargar-brochure {
    padding: 12px 24px;
    font-size: 0.8rem;
  }

  /* Catálogo de Servicios */
  .productos {
    padding: 40px 10px;
  }

  .productos>article {
    padding: 20px 15px;
    border-radius: 16px;
    margin-bottom: 25px;
  }

  .productos>article h1 {
    font-size: 1.35rem;
  }

  .productos>article p {
    font-size: 0.9rem;
  }

  .productos>article>img {
    height: 180px;
  }

  /* Detalle del Servicio individual */
  div.productos.producto {
    padding: 40px 10px;
  }

  div.productos.producto>article {
    padding: 20px 15px;
    border-radius: 16px;
  }

  div.productos.producto article h1 {
    font-size: 1.5rem;
  }

  div.productos.producto article p {
    font-size: 0.95rem;
  }

  /* Apilar botones de acción de servicios en móviles */
  .servicio-acciones {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .btn-contacto,
  .btn-retornar {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Formulario de contacto en móvil */
  div.contacto {
    padding: 40px 10px;
  }

  .contactof {
    padding: 20px 15px;
    border-radius: 16px;
  }

  .contactof>form>div>input {
    height: 44px;
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .contactof>form>div>textarea {
    height: 120px;
    font-size: 0.9rem;
    padding: 10px;
  }

  div.ct>h1 {
    font-size: 1.7rem;
    text-align: center;
  }

  div.ct>div.p {
    padding: 15px;
    font-size: 0.95rem;
  }

  div.ct div.wa {
    max-width: 100%;
    font-size: 0.95rem;
    padding: 12px 20px;
  }

  /* Footer en móviles */
  .wrapper3 {
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .firma2 {
    gap: 20px;
    margin-bottom: 30px;
  }

  .firma2 section h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .firma2 section p {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .firma {
    padding-top: 20px;
    font-size: 0.75rem;
  }

  /* Ajuste de Botones Flotantes de Inicio y Chatbot en Móvil */
  .floating-chatbot-btn {
    bottom: 20px;
    right: 15px;
    padding: 10px 14px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .floating-chatbot-btn svg.chat-icon {
    width: 17px;
    height: 17px;
  }

  .floating-home-btn {
    bottom: 20px;
    right: 128px;
    padding: 10px 14px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .floating-home-btn svg.home-icon {
    width: 17px;
    height: 17px;
    stroke-width: 2.2;
  }

  .chatbot-modal {
    right: 15px;
    bottom: 75px;
    width: calc(100vw - 30px);
    height: 480px;
  }
}

/* ==========================================================================
   ESTILOS DE LA PÁGINA STAFF PROFESIONAL (PEITI)
   ========================================================================== */
.staff-container {
  padding: 50px 0 80px 0;
}

.staff-intro-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 50px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.staff-intro-box h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 15px;
}

.staff-intro-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.staff-card {
  background: rgba(13, 19, 38, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.staff-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  opacity: 0.7;
  transition: var(--transition);
}

.staff-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.15);
}

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

.staff-avatar-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 140, 255, 0.2), rgba(0, 240, 255, 0.2));
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.staff-avatar-icon {
  width: 55px;
  height: 55px;
  fill: var(--accent-cyan);
}

.staff-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.staff-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.staff-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  flex-grow: 1;
}

.staff-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 25px;
}

.staff-tag {
  background: rgba(0, 140, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
}

.staff-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #008cff 0%, #00d2ff 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 99px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 140, 255, 0.3);
}

.staff-email-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
  color: #ffffff;
}

/* Sección de Certificaciones del Staff */
.certs-section {
  background: rgba(7, 11, 25, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 50px;
  text-align: center;
}

.certs-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 25px;
}

.certs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cert-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 15px 25px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-item svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-amber);
}

/* ==========================================================================
   REMARCADO DESLUMBRANTE DE TARJETAS DE STAFF
   ========================================================================== */
.staff-card.staff-card-highlight {
  border-color: #00f0ff !important;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.8), 0 0 70px rgba(0, 85, 255, 0.5) !important;
  transform: translateY(-8px) scale(1.03) !important;
  animation: staffGlowPulse 1.5s infinite alternate ease-in-out !important;
}

.staff-card.staff-card-highlight::before {
  opacity: 1 !important;
  height: 6px !important;
  background: linear-gradient(90deg, #00f0ff, #0055ff, #00f0ff) !important;
}

@keyframes staffGlowPulse {
  0% {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6), 0 0 50px rgba(0, 85, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 45px rgba(0, 240, 255, 0.95), 0 0 90px rgba(0, 85, 255, 0.7);
  }
}

/* ==========================================================================
   SOMBREADO Y HIGHLIGHT EN CHATBOT PARA SELECCIÓN DE STAFF (3-4 segundos)
   ========================================================================== */
.chat-selected-staff-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.chat-staff-shaded-anim {
  animation: staffShadePulse 3.5s ease-in-out forwards;
}

@keyframes staffShadePulse {
  0% {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(0, 85, 255, 0.4));
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
    border-color: #00f0ff;
  }
  35% {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.5), rgba(0, 85, 255, 0.5));
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.9);
    border-color: #ffffff;
  }
  70% {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 85, 255, 0.25));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    border-color: #00f0ff;
  }
  100% {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.4);
  }
}