/* ======================================
   Variables y Reset
====================================== */
:root {
  background: linear-gradient(135deg, #1a1c2b, #1a1c2b); /* Verde menta suave */
  --bg-card: #1a1c2b;
  --primary: #2272FF;
  --accent: #ff0000;
  --text: #f5f6fa;
  --muted: #a3a9b8;
  --ok: #29d397;
  --radius: 15px;
  --shadow: 0 10px 25px rgba(0,0,0,0.5);
  --transition: 0.5s;
}

/* Modo claro */
.light-mode {
--bg: #ffffff;
 --bg-card: #ff0000;
  --primary: #2272FF;
   --accent: ff0000;
    --text: #1D1D1D;
     --muted: #ffffff;
      --shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Keyframes para animar el gradiente */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}






* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

a {
  text-decoration: none;
}

/* Preloader moderno */
#preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg, #1a1c2b);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Animación del contenedor */
#preloader .loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pulse 1.5s infinite;
}

/* Imagen principal del preloader */
#preloader .loader img {
  width: 180px; /* un poco más grande */
  height: auto;
  opacity: 0;
  animation: fadeIn 1.2s forwards ease-in-out;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}


/* Animaciones de entrada al hacer scroll */
.scroll-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-animation.show {
  opacity: 1;
  transform: translateY(0);
}


/* ======================================
   Header y Navegación Adaptable
====================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: transparent;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}



header.scrolled {
  background: var(--bg-card);
  border-bottom-color: var(--accent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: var(--text);
  transition: color var(--transition);
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* ===========================
   Enlaces del NAV
=========================== */
/* Estilo general de los enlaces del nav */
nav a {
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition), text-shadow 0.3s;
}

/* ================================
   CONTORNO BLANCO EN MODO CLARO
================================ */
body[data-theme="light"] nav a {
  color: #000; /* Texto negro */
  text-shadow:
      1px 1px 0 #fff,
     -1px 1px 0 #fff,
      1px -1px 0 #fff,
     -1px -1px 0 #fff; /* Contorno blanco */
}
nav a:hover {
  color: var(--text-hover);
}

.btn-contact {
  background: var(--accent);
  color: var(--text);
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.btn-contact:hover {
  background: var(--primary);
  color: var(--text);
}

/* Burger menú */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger div {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: background var(--transition);
}




/* ======================================
   Navegación responsive
====================================== */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 70px;
    right: -100%;
    background: var(--bg-card);
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: right 0.3s ease;
  }

  nav.active {
    right: 10px;
  }

  .burger {
    display: flex;
  }
}


/* ======================================
   Hero Section - Versión PC (por defecto)
====================================== */
.hero {
  background: linear-gradient(rgba(15,18,33,0.6), rgba(15,18,33,0.6)),
              url('/static/img/wallpaper/wallpaper.webp')
              center/cover no-repeat fixed;
  min-height: 100vh;   /* siempre pantalla completa */
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra vertical */
  align-items: center;     /* centra horizontal */
  padding: 0 20px;
  text-align: center;
  color: var(--text);
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem; /* grande en PC */
  color: var(--accent);
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(-50px);
  transition: 1s;
}

.hero p {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(-50px);
  transition: 1.2s;
  font-weight: 600; /* MÁS GROSOR */
}


.hero a {
  background: var(--primary);
  color: #000000;
  padding: 15px 35px; /* botón grande en PC */
  font-weight: bold;
  border-radius: var(--radius);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(-50px);
}

.hero a:hover {
  background: var(--accent);
}

/* ======================================
   Hero Section - Versión PC (por defecto)
====================================== */
.hero {
  background: linear-gradient(


              ),
              url('/static/img/wallpaper/wallpaper.webp')
              center/cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  text-align: center;
  color: #ffffff; /* texto blanco */
  overflow: hidden;
}


/* TÍTULO */
.hero h1 {
   font-size: 3rem; /* grande en PC */
  color: var(--accent);
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(-50px);
  transition: 1s;
}

/* PÁRRAFO */
.hero p {
  font-size: 1.3rem;
  color: #ffffff;  /* azul pálido */
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(-50px);
  transition: 1.2s;
  font-weight: 600;
}

/* ======================================
   HERO - BOTONES MODERNOS JHR.DEV
====================================== */

.hero-actions {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;

    margin-top: 35px;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;

    position: relative;
    z-index: 20;
}

/* Base */
.hero-actions .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 190px;
    padding: 14px 25px;

    border-radius: 12px;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;

    text-decoration: none;

    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        border-color .25s ease;
}

/* =========================
   PORTAFOLIO - AZUL
========================= */

#view-portfolio-btn {
    color: #fff;
    background: linear-gradient(
        135deg,
        #2272FF,
        #1255cc
    );

    border: 1px solid rgba(80, 145, 255, .8);

    box-shadow:
        0 8px 25px rgba(34, 114, 255, .25),
        inset 0 1px 0 rgba(255,255,255,.15);
}

#view-portfolio-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 35px rgba(34, 114, 255, .45),
        inset 0 1px 0 rgba(255,255,255,.2);
}


/* =========================
   CONTACTO - GLASS
========================= */

.hero-actions .btn-secondary {
    color: #fff;

    background: rgba(255, 255, 255, .06);

    border: 1px solid rgba(255, 255, 255, .18);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.hero-actions .btn-secondary:hover {
    transform: translateY(-4px);

    border-color: #2272FF;

    background: rgba(34, 114, 255, .12);

    box-shadow:
        0 12px 30px rgba(34, 114, 255, .20);
}


/* =========================
   SOLUCIONES - ROJO
========================= */

.hero-actions .btn-soluciones {
    color: #fff !important;

    background: linear-gradient(
        135deg,
        #ff0000,
        #c90000
    ) !important;

    border: 1px solid rgba(255, 70, 70, .85) !important;

    box-shadow:
        0 8px 25px rgba(255, 0, 0, .25),
        inset 0 1px 0 rgba(255,255,255,.15);
}

.hero-actions .btn-soluciones:hover {
    transform: translateY(-4px) !important;

    box-shadow:
        0 12px 35px rgba(255, 0, 0, .45),
        inset 0 1px 0 rgba(255,255,255,.2);
}


/* =========================
   EFECTO AL PRESIONAR
========================= */

.hero-actions .btn:active {
    transform: translateY(-1px) scale(.98) !important;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .hero-actions {
        width: 100%;
        gap: 12px;
        padding: 0 20px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 330px;
        min-width: 0;
    }
}

/* ======================================
   Hero Section - Versión Móvil
====================================== */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1.3rem;
    margin-bottom: 25px;
  }

  .hero a {
    padding: 15px 35px;
    font-size: 1rem;
  }
}


/* Overlay dinámico */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 38, 55, 0.10); /* azul grisáceo muy suave */
  transition: 0.6s ease;
  z-index: 0;
  pointer-events: none;
}

.hero.scrolled::before {
  background: rgba(33, 38, 55, 0.60); /* más oscuro */
}

/* Asegurar que el contenido esté encima */
.hero * {
  position: relative;
  z-index: 2;
}

/* Efecto cuando está arriba */
.hero.top h1,
.hero.top p,
.hero.top a {
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
}

/* ======================================
   Sections Generales
====================================== */
section {
  padding: 100px 20px;
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 20px;
}

/* Estilo para el h2 de Servicios */
.services h2 {
  color: var(--accent);        /* Dinámico */
  font-size: 2.8rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.services h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--primary);  /* Dinámico */
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Grid */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
  perspective: 1000px;
}

.services h2 {
  grid-column: 1 / -1;
}

/* Base de las tarjetas: usan variables */
.service-card {
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
  background: var(--bg-card);  /* Dinámico */
  color: var(--text);          /* Dinámico */
}

/* Hover con efecto 3D */
.service-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
}


/* Iconos */
.service-card i {
  font-size: 3rem;
  margin-bottom: 15px;
  transition: transform 0.3s, color 0.3s;
}
.service-card:hover i {
  transform: scale(1.2);
}

/* Titulos y listas */
.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.service-card ul {
  list-style: disc;
  list-style-position: inside;
  padding-left: 0;
  text-align: left;
  margin-bottom: 10px;
}

.service-card li {
  margin: 8px 0;
}

.service-card .price {
  font-weight: 700;
  float: right;
}

.service-card small {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);   /* Dinámico */
}

/* Íconos conservan color fijo */
.service-card.web i { color: #5F85DB; }
.service-card.systems i { color: #FF7E5F; }
.service-card.support i { color: #FFA500; }
.service-card.database i { color: #00C9FF; }
.service-card.network i { color: #FF6FD8; }
.service-card.digital i { color: #4AC29A; }
.service-card.multimedia i { color: #C89EFF; }

/* Responsive */
@media (max-width: 768px) {
  .service-card {
    padding: 20px;
  }
}


/* ======================================
   Precios
====================================== */
.prices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.price-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 35px;
  text-align: center;
  width: 260px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.price-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.7);
}

.price-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.price-card p {
  color: var(--text);
  margin-bottom: 15px;
}

.price-card .price {
  color: var(--ok);
  font-weight: bold;
  font-size: 1.3rem;
}

/* ======================================
   Portfolio (mejorado)
====================================== */
:root


  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg);
    color: #fff;
  }

  /* Contenedor principal del portafolio */
  .portfolio-profile {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 50px auto;
    gap: 40px;
    padding: 0 20px;
    align-items: center;
  }

  /* Foto de perfil */
  .profile-photo {
    flex: 1 1 250px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .profile-photo img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
  }

  .profile-photo img:hover {
    transform: scale(1.05);
  }

  /* Información del perfil */
  .profile-info {
    flex: 2 1 500px;
  }

  .profile-info .profile-name {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent);
  }

  .profile-info .profile-role {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
  }

  .profile-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 20px;
    text-align: justify;
  }

  /* Experiencias / habilidades */
  .profile-section {
    margin-bottom: 20px;
  }

  .profile-section h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
  }

  .profile-section ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text);
  }

  .profile-section ul li {
    margin: 6px 0;
  }

  /* Botones de contacto / redes */
  .profile-actions {
    margin-top: 20px;
  }

  .profile-actions a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    padding: 10px 20px;
    border-radius: var(--radius);
    margin-right: 10px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
  }

  .profile-actions a:hover {
    background: var(--primary);
    transform: scale(1.05);
  }

  /* Responsive */
  @media (max-width: 900px) {
    .portfolio-profile {
      flex-direction: column;
      text-align: center;
    }
    .profile-info {
      flex: 1 1 100%;
    }
    .profile-section ul {
      padding-left: 0;
      list-style-position: inside;
    }
    .profile-actions a {
      margin-bottom: 10px;
    }
  }

  /* Contenedor necesario para 3D tilt */
.tilt-card {
  perspective: 1000px; /* Necesario para efecto 3D */
  margin-bottom: 20px;
}

.tilt-inner {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}



/* Agrupación de proyectos reales y prototipos
   Cada grupo ocupa su propia fila: reales arriba, prototipos debajo. */
.project-group {
  display: block;
  width: 100%;
  margin-top: 24px;
  clear: both;
}

.project-group + .project-group {
  margin-top: 36px;
}

.project-group-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #ddd);
}

.project-group-title i {
  margin-right: 8px;
}

/* Empresas desarrolladas */
.companies {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.company-card {
  background: var(--bg-card, #1e1e1e);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow, 0 4px 8px rgba(0,0,0,0.4));
  text-align: center;
  padding: 40px;
  flex: 1 1 150px;
  transition: transform 0.3s, box-shadow 0.3s;
}


/* Solo Hernández TrenzArte en círculo */
.company-card img[alt="Hernández TrenzArte"] {
  width: 80px;          /* ajusta el tamaño si quieres */
  height: 80px;         /* mismo valor para círculo perfecto */
  object-fit: cover;     /* mantiene la proporción y recorta si es necesario */
  border-radius: 50%;    /* esto hace el círculo */
  margin-bottom: 10px;
}

.company-card img {
  width: 120px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.company-card p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #ddd);
}

.company-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.6);
}

/* Responsive empresas */
@media (max-width: 768px) {
  .companies {
    flex-direction: column;
    align-items: center;
  }
  .company-card {
    width: 100%;
    max-width: 300px;
  }
}

.cta {
  background: linear-gradient(135deg, var(--bg-card), var(--bg));
  text-align: center;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-top: 40px;
}

.cta h2 {
  color: var(--accent);
  font-size: 28px;
  margin-bottom: 20px;
}

.cta p {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 30px;
}

.cta .btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text);
  padding: 12px 25px;
  font-size: 18px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s;
}

.cta .btn:hover {
  background-color: var(--primary);
  color: var(--text);
}


/* ======================================
   Contacto Moderno Mejorado Responsive
====================================== */
.contact {
  max-width: 1000px;
  margin: 50px auto;
  padding: 50px 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-card), var(--bg));
  box-shadow: var(--shadow);
  text-align: center;
  transition: background 0.5s, padding 0.3s;
}


.contact h2 {
  color: var(--accent);
  font-size: 2.8rem;
  margin-bottom: 50px;
  position: relative;
}

.contact h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--bg-card);
  padding: 30px 25px;
  border-radius: var(--radius);
  width: 250px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.contact-card i {
  font-size: 3.2rem;
  color: var(--primary);
  margin-bottom: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-card h4 {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 1.3rem;
}

.contact-card p {
  font-size: 1rem;
  color: var(--text);
  text-align: center;
}

.contact-card span {
  font-weight: bold;
  color: var(--primary);
}

/* Hover dinámico */
.contact-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
}

.contact-card:hover i {
  color: var(--accent);
  transform: rotate(15deg) scale(1.2);
}

/* Colores degradados por tipo */
.contact-card.whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; }
.contact-card.email { background: linear-gradient(135deg, #FF6B6B, #FF4757); color: #fff; }
.contact-card.modal { background: linear-gradient(135deg, #4AC29A, #3B9D9B); color: #fff; }

.contact-message {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  opacity: 0.95;
  margin-top: 30px;
  line-height: 1.5;
}


/* ======================================
   Responsive
====================================== */
@media (max-width: 992px) {
  .contact {
    padding: 40px 20px;
  }

  .contact h2 {
    font-size: 2.5rem;
  }

  .contact-card {
    width: 45%;
    padding: 25px 20px;
  }

  .contact-card i {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .contact-cards {
    flex-direction: column;
    gap: 20px;
  }

  .contact-card {
    width: 80%;
    padding: 20px;
  }

  .contact h2 {
    font-size: 2.2rem;
  }

  .contact-message {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .contact {
    padding: 30px 15px;
  }

  .contact-card {
    width: 100%;
    padding: 15px;
  }

  .contact h2 {
    font-size: 2rem;
  }

  .contact-message {
    font-size: 1rem;
  }
}
.light-mode {
  --bg: #ffffff;
  --bg-card: #f0f0f0; /* Fondo claro para tarjetas */
  --primary: #2272FF;
  --accent: #ff0000;
  --text: #1D1D1D;
  --muted: #6b6b6b;
  --shadow: 0 10px 25px rgba(0,0,0,0.2);
}


/* ======================================
   Certificaciones
====================================== */

/* Diploma destacado */
.diploma-card {
  background: var(--bg-card);
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  padding: 20px;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease-in-out;
}

.diploma-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.diploma-card img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.diploma-card h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.diploma-card p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 15px;
}

/* Wrapper para centrar el botón */
.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Botón de Diploma moderno */
.btn-diploma {
  display: inline-block;
  padding: 18px 45px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #ff0000, #ff0000); /* Degradado moderno */
  border-radius: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Efecto al pasar el mouse */
.btn-diploma:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  background: linear-gradient(135deg, #ff0000, #ff0000);
}

/* Pequeña animación de brillo al pasar el mouse */
.btn-diploma::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255,255,255,0.15);
  transform: rotate(45deg) translate(-100%, -100%);
  transition: all 0.5s ease;
}

.btn-diploma:hover::after {
  transform: rotate(45deg) translate(100%, 100%);
}



.certifications {
  max-width: 1200px;
  margin: 80px auto;
  padding: 40px 20px;
  text-align: center;
}

.certifications h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 40px;
  position: relative;
}

.certifications h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.cert-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.cert-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cert-card:hover img {
  transform: scale(1.05) rotate(1deg);
}

.cert-card h4 {
  margin: 15px 0 5px;
  color: var(--primary);
}

.cert-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 15px;
}

.cert-card .btn-view {
  display: inline-block;
  padding: 8px 15px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.cert-card .btn-view:hover {
  background: var(--primary);
  transform: scale(1.05);
}

/* Hover 3D tilt efecto */
.cert-card:hover {
  transform: rotateY(5deg) rotateX(5deg) translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: 1fr;
  }
}

.light-mode {
  --bg: #ffffff;
  --bg-card: #f0f0f0; /* Fondo claro para tarjetas */
  --primary: #2272FF;
  --accent: #ff0000;
  --text: #1D1D1D;
  --muted: #6b6b6b;
  --shadow: 0 10px 25px rgba(0,0,0,0.2);
}


.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--bg-card);
  color: var(--text);
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  max-width: 500px;
  width: calc(100% - 40px); /* siempre con margen en móviles */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 9999;
  font-size: 0.95rem;
  text-align: center;
  animation: slideUp 0.6s ease forwards;
}

.cookie-consent p {
  margin: 0;
}

.cookie-consent a {
  color: var(--accent);
  text-decoration: underline;
}

/* Botones */
.cookie-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* se acomodan en móviles */
  justify-content: center;
}

.cookie-buttons button {
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s, background 0.3s;
}

#accept-cookies {
  background: var(--accent);
  color: #fff;
}

#accept-cookies:hover {
  background: var(--primary);
  transform: scale(1.05);
}

#decline-cookies {
  background: #ccc;
  color: #000;
}

#decline-cookies:hover {
  background: #999;
  transform: scale(1.05);
}

/* Animación al aparecer */
@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(120px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}
/* ===== Responsive ===== */
@media (max-width: 768px) {
  .cookie-consent {
    bottom: 10px;
    padding: 15px;
    font-size: 0.9rem;
    width: 95%;
    border-radius: 10px;
  }

  .cookie-buttons {
    flex-direction: column; /* botones en columna */
    gap: 10px;
    width: 100%;
  }

  .cookie-buttons button {
    width: 100%; /* que ocupen todo el ancho en móviles */
  }
}

/* ======================================
   Contacto
====================================== */
.contact {
  max-width: 1200px;
  margin: 80px auto;
  padding: 40px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 40px;
  position: relative;
}

.contact h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Checklist dentro del formulario */
.checklist-box {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 15px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  color: var(--text);
}

.checklist-box h4 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1rem;
}

.checklist-box ul {
  list-style: none;
  padding: 0;
}

.checklist-box li {
  margin: 6px 0;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

/* Estado válido ❌ → ✅ */
.checklist-box li.valid {
  color: var(--ok);
}

.checklist-box li.invalid {
  color: var(--accent);
}


/* Tarjetas de contacto */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.contact-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 250px;
  text-align: center;
}

.contact-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-card h4 {
  margin-bottom: 5px;
  color: var(--accent);
}

.contact-message {
  margin: 20px 0;
  font-size: 1.1rem;
  color: var(--text);
}

/* Formulario */
.contact-form {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

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

.contact-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff; /* ✅ Fondo blanco */
  color: #000;      /* ✅ Texto en negro */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777; /* Placeholder gris claro */
}

.contact-form button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
  background: var(--primary);
  transform: scale(1.05);
}

/* Mensaje de éxito oculto */
.form-success {
  display: none;
  margin-top: 20px;
  color: rgb(0, 243, 0);
  font-weight: bold;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* ======================================
   Footer
====================================== */
.footer {
	background: linear-gradient(135deg, var(--bg-card), var(--bg));
	color: var(--footer-text, #ccc);
	padding: 40px 20px;
	text-align: center;
	border-top: 1px solid #333;
	transition: all 0.3s ease;
}

.footer-contenedor {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.footer-logo img {
	width: 60px;
	border-radius: 50%;
	box-shadow: 0 0 10px #ff0000;
	margin-bottom: 10px;
}

.footer-logo h3 {
	color: #ff0000;
	font-size: 1.5rem;
	margin: 0;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: center;
}

.footer-links a {
	color: var(--footer-text, #ccc);
	text-decoration: none;
	transition: color 0.3s;
}

.footer-links a:hover {
	color: #ff0000;
}

.footer-redes a {
	color: var(--footer-text, #ccc);
	margin: 0 10px;
	font-size: 1.2rem;
	transition: color 0.3s;
}

.footer-redes a:hover {
	color: #ff0000;
}

.footer-copy {
	margin-top: 10px;
	font-size: 0.9rem;
	color: var(--footer-text, #777);
}

/* ------------------------------
   Modo claro
------------------------------ */
body.light-mode .footer {
	background: linear-gradient(135deg, #f5f5f5, #fff);
	color: #111;
	border-top: 1px solid #ccc;
}

body.light-mode .footer-links a,
body.light-mode .footer-redes a,
body.light-mode .footer-copy {
	color: #111;
}

body.light-mode .footer-links a:hover,
body.light-mode .footer-redes a:hover {
	color: #ff0000; /* mantener hover rojo */
}

.pwa-banner {
    display: none; /* Se muestra con JS */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1b1c2b;
    color: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    max-width: 90%;
}

.pwa-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-logo {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

.pwa-install-btn {
    background-color: #2272FF;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.pwa-install-btn:hover {
    background-color: #1a5ed8;
}

.pwa-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}



/* ======================================
   WhatsApp Flotante Palpitante con Halo
====================================== */
#whatsapp {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Verde oficial WhatsApp */
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;               /* Oculto por defecto */
    visibility: hidden;       /* No ocupa espacio */
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;

    /* Animación palpitante */
    animation: heartbeat 1.8s infinite;
}

/* Pseudo-elemento para el halo expandible */
#whatsapp::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.4;
    animation: halo 1.8s infinite;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Hover para destacar */
#whatsapp:hover {
    transform: scale(1.2);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.8);
}

/* Animación palpitante */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); }
    70% { transform: scale(1); }
}

/* Animación del halo expandible */
@keyframes halo {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 0.4; }
}

/* Clase visible al hacer scroll */
#whatsapp.show {
    opacity: 1;
    visibility: visible;
}


/* ======================================
   Media Queries
====================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .burger {
    display: flex;
  }

  nav {
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 100%;
    position: fixed;
    left: -100%;
    top: 0;
    background: var(--bg-card);
    padding-top: 100px;
    gap: 20px;
    transition: var(--transition);
  }

  nav.show {
    left: 0;
  }
}


#scrollToTopBtn {
    position: fixed;
    bottom: 40px;
    left: 40px; /* esquina inferior izquierda */
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px) scale(0.92);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s;
    z-index: 10000;
}

#scrollToTopBtn:hover {
    background-color: var(--accent);
    transform: translateY(0) scale(1.06);
}

#scrollToTopBtn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    #scrollToTopBtn {
        left: 20px;
        bottom: 20px;
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
}




#accessToolbar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: #222;
  border-radius: 0 8px 8px 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

#accessToolbar button {
  background: #444;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

#accessToolbar button:hover {
  background: #666;
}
.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

.high-contrast a {
  color: #0ff !important;
}

.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.pause-animations * {
  animation: none !important;
  transition: none !important;
}
#accessToggle {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: #2272FF;
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 12px;
  font-size: 20px;
  z-index: 9999;
  cursor: grab;
   transition: left 0.2s ease, right 0.2s ease, top 0.2s ease;
}


/* ======================================
   Botón flotante de audio ultra tech
====================================== */
#playPause {
    position: fixed;
    bottom: 110px; /* arriba del botón de WhatsApp */
    right: 42px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2272FF, #ff0000);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    z-index: 1000;
    overflow: visible;
    animation: pulseButton 1.8s infinite ease-in-out;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

/* Halo expandible */
#playPause::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #5F85DB 0%, transparent 70%);
    opacity: 0.6;
    animation: haloAudio 1.8s infinite ease-in-out;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Hover efecto */
#playPause:hover {
    transform: scale(1.3);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    background: linear-gradient(135deg, #2272FF, #ff0000);
}

/* Pulso interno del botón */
@keyframes pulseButton {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.12); }
}

/* Halo expandible hacia afuera */
@keyframes haloAudio {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* Texto informativo */
#musicInfo {
    position: fixed;
    bottom: 170px; /* arriba del botón */
    right: 40px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 1001;
}

/* Cuando se activa */
#musicInfo.show {
    opacity: 1;
}



/* ======================================
   Banner de Instalación de App
====================================== */
.pwa-banner {
    display: flex; /* necesario para animación */
    position: fixed;
    bottom: -100px; /* fuera de la pantalla al inicio */
    left: 50%;
    transform: translateX(-50%);
    background: #1b1c2b;
    color: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    max-width: 90%;
    transition: bottom 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.pwa-banner.show {
    bottom: 20px;
    opacity: 1;
}

.pwa-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-logo {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

.pwa-install-btn {
    background-color: #2272FF;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.pwa-install-btn:hover {
    background-color: #1a5ed8;
}

.pwa-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}


/* Certificados ampliables */
.cert-card img {
    cursor: pointer;
    transition: transform .3s ease;
}

.cert-card img:hover {
    transform: scale(1.05);
}

/* Modal */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.9);
    justify-content: center;
    align-items: center;
}

.cert-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    animation: zoomIn .25s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* Desplazamiento suave entre secciones del portafolio */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

#portfolio,
#certifications,
#services,
#contact {
  scroll-margin-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* =========================================================
   Navegación móvil + botón volver arriba — ajuste definitivo
   ========================================================= */
.burger {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: var(--bg-card);
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 10060;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.2s ease, background-color 0.28s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

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

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  #header,
  header {
    padding: 10px 16px;
    min-height: 68px;
  }

  .burger {
    display: flex !important;
    position: relative;
    flex: 0 0 46px;
  }

  #navMenu {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: min(82vw, 310px) !important;
    height: 100dvh !important;
    padding: 105px 24px 32px !important;
    margin: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    border-radius: 0 22px 22px 0 !important;
    background: var(--bg-card) !important;
    box-shadow: 18px 0 45px rgba(0, 0, 0, 0.35) !important;
    transform: translate3d(-110%, 0, 0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.32s cubic-bezier(.22,.8,.25,1), opacity 0.24s ease, visibility 0.32s !important;
    overflow-y: auto;
    z-index: 10050 !important;
  }

  #navMenu.show {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #navMenu a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
    text-decoration: none;
  }

  #navMenu a:hover,
  #navMenu a:focus-visible {
    background: rgba(34, 114, 255, 0.12);
    outline: none;
  }
}

@media (min-width: 769px) {
  .burger {
    display: none !important;
  }

  #navMenu {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none !important;
  }
}

/* Botón flotante real: siempre se posiciona contra la ventana. */
#scrollToTopBtn.floating-back-to-top {
  position: fixed !important;
  left: 24px !important;
  right: auto !important;
  bottom: max(24px, env(safe-area-inset-bottom)) !important;
  top: auto !important;
  width: 54px !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, var(--primary), var(--accent)) !important;
  color: #fff !important;
  font-size: 21px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 0 5px rgba(34, 114, 255, 0.10) !important;
  z-index: 10020 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(0, 22px, 0) scale(0.82) !important;
  transition: opacity 0.25s ease, transform 0.32s cubic-bezier(.22,.8,.25,1), visibility 0.32s !important;
  will-change: transform, opacity;
}

#scrollToTopBtn.floating-back-to-top.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

#scrollToTopBtn.floating-back-to-top:hover {
  transform: translate3d(0, -4px, 0) scale(1.06) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 0 7px rgba(34, 114, 255, 0.14) !important;
}

#scrollToTopBtn.floating-back-to-top:active {
  transform: translate3d(0, 0, 0) scale(0.96) !important;
}

#scrollToTopBtn.floating-back-to-top:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 4px !important;
}

@media (max-width: 768px) {
  #scrollToTopBtn.floating-back-to-top {
    left: 16px !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 19px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .burger span,
  #navMenu,
  #scrollToTopBtn.floating-back-to-top {
    transition: none !important;
  }
}
/* JHR UI FINAL v2026.09.30.2 */
html {
  scroll-behavior: smooth;
}

#portfolio,
#services,
#contact,
#certifications,
#inicio {
  scroll-margin-top: 90px;
}

body.menu-open {
  overflow: hidden !important;
}

/* Burger: una sola interfaz móvil, por encima del panel. */
#header .burger#menuToggle {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 10060;
}

#header .burger#menuToggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
  transform-origin: center;
  transition: transform .28s ease, opacity .2s ease;
}

#header .burger#menuToggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#header .burger#menuToggle.active span:nth-child(2) {
  opacity: 0;
}

#header .burger#menuToggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  #header .burger#menuToggle {
    display: flex !important;
    position: relative !important;
  }

  #header nav#navMenu {
    display: flex !important;
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(82vw, 310px) !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 105px 24px 32px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    border-radius: 0 22px 22px 0 !important;
    background: var(--bg-card) !important;
    box-shadow: 18px 0 45px rgba(0,0,0,.35) !important;
    transform: translate3d(-110%, 0, 0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    z-index: 10050 !important;
    transition: transform .32s cubic-bezier(.22,.8,.25,1), opacity .22s ease, visibility .32s !important;
  }

  #header nav#navMenu.show {
    transform: translate3d(0,0,0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #header nav#navMenu a {
    display: block !important;
    width: 100% !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
  }
}

@media (min-width: 769px) {
  #header .burger#menuToggle {
    display: none !important;
  }

  #header nav#navMenu {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none !important;
  }
}

/* Botón flotante real, anclado a la ventana y no a una sección. */
body > #scrollToTopBtn.floating-back-to-top {
  position: fixed !important;
  left: max(18px, env(safe-area-inset-left)) !important;
  right: auto !important;
  bottom: max(22px, env(safe-area-inset-bottom)) !important;
  top: auto !important;
  width: 54px !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, var(--primary), var(--accent)) !important;
  color: #fff !important;
  font-size: 21px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.34), 0 0 0 5px rgba(34,114,255,.10) !important;
  z-index: 10020 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(0,22px,0) scale(.84) !important;
  transition: opacity .24s ease, transform .30s cubic-bezier(.22,.8,.25,1), visibility .30s !important;
  will-change: transform, opacity;
}

body > #scrollToTopBtn.floating-back-to-top.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate3d(0,0,0) scale(1) !important;
}

body > #scrollToTopBtn.floating-back-to-top:hover {
  transform: translate3d(0,-4px,0) scale(1.06) !important;
}

body > #scrollToTopBtn.floating-back-to-top:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 4px !important;
}

@media (max-width: 768px) {
  body > #scrollToTopBtn.floating-back-to-top {
    left: max(14px, env(safe-area-inset-left)) !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    width: 50px !important;
    height: 50px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #header .burger#menuToggle span,
  #header nav#navMenu,
  body > #scrollToTopBtn.floating-back-to-top {
    transition: none !important;
  }
}

/* ======================================
   Hero dinámico - efecto de escritura
   Build 2026.09.30.3
====================================== */
.hero {
  position: relative;
  isolation: isolate;
}

/* Luz ambiental sutil para dar movimiento sin distraer. */
.hero::after {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 35% 35%, rgba(34, 114, 255, 0.18), transparent 34%),
    radial-gradient(circle at 68% 62%, rgba(215, 38, 56, 0.12), transparent 30%);
  opacity: 0.75;
  transform: scale(1);
  animation: heroAmbientMotion 9s ease-in-out infinite alternate;
}

.hero > * {
  position: relative;
  z-index: 2;
}

/* El título ya no depende de la animación antigua translateY/opacity. */
.hero .hero-typewriter {
  opacity: 1 !important;
  transform: none !important;
  min-height: 1.25em;
  max-width: 1000px;
  line-height: 1.18;
  margin-inline: auto;
  transition: none !important;
}

.hero .hero-typewriter::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 0.12em;
  border-radius: 2px;
  vertical-align: -0.05em;
  background: currentColor;
  opacity: 0;
}

.hero .hero-typewriter.is-typing::after,
.hero .hero-typewriter.is-typed::after {
  opacity: 1;
  animation: heroCaretBlink 0.78s steps(1, end) infinite;
}

/* Subtítulo: aparece cuando termina el título. */
.hero .hero-subtitle-animated {
  opacity: 0 !important;
  transform: translateY(18px) scale(0.985) !important;
  filter: blur(5px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.7s ease !important;
}

.hero.hero-subtitle-visible .hero-subtitle-animated {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0);
}

/* CTA: entra después del subtítulo y mantiene un pulso muy suave. */
.hero .hero-cta-animated {
  opacity: 0 !important;
  transform: translateY(16px) scale(0.96) !important;
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    background-color 0.3s ease !important;
}

.hero.hero-cta-visible .hero-cta-animated {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  animation: heroCtaGlow 3.4s ease-in-out 0.6s infinite;
}

.hero.hero-cta-visible .hero-cta-animated:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.02) !important;
}

@keyframes heroCaretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes heroAmbientMotion {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
    opacity: 0.55;
  }
  100% {
    transform: translate3d(1.5%, 1%, 0) scale(1.07);
    opacity: 0.85;
  }
}

@keyframes heroCtaGlow {
  0%, 100% {
    box-shadow: 0 10px 28px rgba(0, 63, 145, 0.20);
  }
  50% {
    box-shadow: 0 12px 34px rgba(0, 63, 145, 0.38);
  }
}

@media (max-width: 768px) {
  .hero .hero-typewriter {
    font-size: clamp(2rem, 10vw, 3rem);
    min-height: 2.35em;
  }

  .hero .hero-subtitle-animated {
    max-width: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .hero .hero-typewriter::after,
  .hero.hero-cta-visible .hero-cta-animated {
    animation: none !important;
  }

  .hero .hero-subtitle-animated,
  .hero .hero-cta-animated {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}


/* ======================================
   Hero dinámico estable - Build 2026.10.01.1
   Progressive enhancement: el contenido es visible por defecto.
====================================== */
#inicio.hero.hero-intro {
  opacity: 1 !important;
  transform: none !important;
}

#inicio.hero .hero-typewriter {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  min-height: 1.25em;
  transition: none !important;
}

#inicio.hero .hero-typewriter-text {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Fallback: si JavaScript no carga, subtítulo y CTA siguen visibles. */
#inicio.hero .hero-subtitle-animated,
#inicio.hero .hero-cta-animated {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}

/* Solo ocultamos mientras JS confirmó que la animación está lista. */
#inicio.hero.hero-animation-ready .hero-subtitle-animated:not(.hero-force-visible) {
  opacity: 0 !important;
  transform: translateY(18px) scale(0.985) !important;
  filter: blur(5px) !important;
}

#inicio.hero.hero-animation-ready .hero-cta-animated:not(.hero-force-visible) {
  opacity: 0 !important;
  transform: translateY(16px) scale(0.96) !important;
  filter: blur(4px) !important;
}

#inicio.hero.hero-animation-ready.hero-subtitle-visible .hero-subtitle-animated {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0) !important;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1), filter .7s ease !important;
}

#inicio.hero.hero-animation-ready.hero-cta-visible .hero-cta-animated {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0) !important;
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1), filter .65s ease !important;
}

#inicio.hero .hero-typewriter::after {
  opacity: 0;
}

#inicio.hero .hero-typewriter.is-typing::after,
#inicio.hero .hero-typewriter.is-typed::after {
  opacity: 1;
  animation: heroCaretBlink .78s steps(1,end) infinite;
}

@media (prefers-reduced-motion: reduce) {
  #inicio.hero .hero-typewriter::after {
    display: none !important;
  }
  #inicio.hero .hero-subtitle-animated,
  #inicio.hero .hero-cta-animated {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
}


/* ===== JHR.DEV · enfoque comercial 2026 ===== */
.hero-actions{display:flex;gap:14px;justify-content:center;align-items:center;flex-wrap:wrap}.hero .btn-secondary{background:transparent;border:1px solid currentColor}.section-intro{max-width:820px;margin:0 auto 32px;text-align:center}.section-intro .eyebrow{display:inline-block;font-size:.78rem;letter-spacing:.18em;font-weight:800;opacity:.75;margin-bottom:8px}.section-intro p{max-width:700px;margin:10px auto 0;line-height:1.7}.process-section{padding:80px 6%;}.process-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:1150px;margin:0 auto}.process-card{position:relative;padding:28px 24px;border-radius:var(--radius,15px);background:var(--bg-card);box-shadow:var(--shadow);transition:transform var(--transition,.3s),box-shadow var(--transition,.3s)}.process-card:hover{transform:translateY(-6px)}.process-card>span{position:absolute;right:18px;top:14px;font-size:2rem;font-weight:900;opacity:.12}.process-card i{font-size:1.8rem;margin-bottom:15px}.process-card h3{margin:0 0 10px}.process-card p{margin:0;line-height:1.65;color:var(--muted)}@media(max-width:900px){.process-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.process-section{padding:60px 18px}.process-grid{grid-template-columns:1fr}.hero-actions{flex-direction:column}.hero-actions .btn{width:min(100%,290px);text-align:center}}

/* ===== JHR.DEV · integración con la paleta original ===== */
/* Las secciones nuevas reutilizan exclusivamente la identidad existente:
   fondo #1a1c2b, azul #2272FF / #003f91, rojo #ff0000 y textos del tema. */
.section-intro h2 {
  color: var(--accent);
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-align: center;
  position: relative;
}
.section-intro h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}
.section-intro .eyebrow {
  color: var(--primary);
}
.section-intro p {
  color: var(--muted);
}
.process-section {
  background: var(--bg);
  color: var(--text);
}
.process-card {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid rgba(34, 114, 255, .18);
}
.process-card i {
  color: var(--primary);
}
.process-card:nth-child(even) i {
  color: var(--accent);
}
.process-card > span {
  color: var(--primary);
}
.process-card h3 {
  color: var(--text);
}
.process-card p {
  color: var(--muted);
}
.hero .btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--primary);
}
.hero .btn-secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.light-mode .process-section {
  background: var(--bg);
}
.light-mode .process-card {
  background: var(--bg-card);
  color: var(--text);
}
@media (max-width: 600px) {
  .section-intro h2 { font-size: 2rem; }
}

/* ===== FIX FINAL · HERO + SOLUCIONES CON PALETA ORIGINAL JHR.DEV ===== */
/* Hero: conserva exactamente la identidad visual original */
#inicio.hero.hero-intro {
  background: linear-gradient(rgba(15,18,33,.60), rgba(15,18,33,.60)),
              url('/static/img/wallpaper/wallpaper.webp') center/cover no-repeat fixed;
  color: #ffffff;
}
#inicio.hero.hero-intro .hero-typewriter,
#inicio.hero.hero-intro .hero-typewriter-text {
  color: var(--accent) !important;
}
#inicio.hero.hero-intro .hero-subtitle-animated {
  color: #ffffff !important;
}
#inicio.hero.hero-intro .hero-actions .btn {
  background: #003f91;
  color: #ffffff;
  border: 2px solid #003f91;
  box-shadow: var(--shadow);
}
#inicio.hero.hero-intro .hero-actions .btn:hover {
  background: #d72638;
  border-color: #d72638;
  color: #ffffff;
}
#inicio.hero.hero-intro .hero-actions .btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #2272FF;
}
#inicio.hero.hero-intro .hero-actions .btn-secondary:hover {
  background: #d72638;
  border-color: #d72638;
  color: #ffffff;
}

/* Soluciones: el encabezado ocupa todo el grid y usa la paleta original */
#services.services > .section-intro {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto 25px;
}
#services.services > .section-intro .eyebrow {
  color: var(--primary) !important;
}
#services.services > .section-intro h2 {
  color: var(--accent) !important;
  margin-bottom: 10px;
}
#services.services > .section-intro h2::after {
  background: var(--primary) !important;
}
#services.services > .section-intro p {
  color: var(--muted) !important;
}
#services .service-card {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border: none;
  box-shadow: var(--shadow);
}
#services .service-card h3,
#services .service-card li {
  color: var(--text);
}
#services .service-card small {
  color: var(--muted);
}

/* En móvil se mantiene el mismo fondo/identidad, sin fixed para mejor rendimiento */
@media (max-width: 768px) {
  #inicio.hero.hero-intro {
    background-attachment: scroll;
  }
  #services.services > .section-intro h2 {
    font-size: 2rem;
  }
}

/* ===== SOLUCIONES · IDENTIDAD JHR.DEV AZUL + ROJO ===== */
#services.services {
  position: relative;
}
#services.services > .section-intro .eyebrow {
  color: #2272FF !important;
  font-weight: 800;
}
#services.services > .section-intro h2 {
  color: #ff0000 !important;
}
#services.services > .section-intro h2::after {
  background: linear-gradient(90deg, #2272FF 0 50%, #ff0000 50% 100%) !important;
  width: 100px;
}
#services .service-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card) !important;
  border: 2px solid #2272FF !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.5), 0 0 0 1px rgba(34,114,255,.10) !important;
}
#services .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #2272FF 0 50%, #ff0000 50% 100%);
}
#services .service-card:nth-of-type(even) {
  border-color: #ff0000 !important;
}
#services .service-card i {
  color: #2272FF !important;
  filter: drop-shadow(0 0 8px rgba(34,114,255,.25));
}
#services .service-card:nth-of-type(even) i {
  color: #ff0000 !important;
  filter: drop-shadow(0 0 8px rgba(255,0,0,.22));
}
#services .service-card h3 {
  color: #ff0000 !important;
}
#services .service-card:nth-of-type(even) h3 {
  color: #2272FF !important;
}
#services .service-card li::marker {
  color: #2272FF;
}
#services .service-card:nth-of-type(even) li::marker {
  color: #ff0000;
}
#services .service-card:hover {
  border-color: #ff0000 !important;
  box-shadow: 0 20px 45px rgba(0,0,0,.6), 0 0 22px rgba(34,114,255,.18) !important;
}
#services .service-card:nth-of-type(even):hover {
  border-color: #2272FF !important;
  box-shadow: 0 20px 45px rgba(0,0,0,.6), 0 0 22px rgba(255,0,0,.16) !important;
}
.light-mode #services .service-card {
  background: var(--bg-card) !important;
}

/* ===== SOLUCIONES · SOLO ICONOS CON COLOR =====
   Mantiene el estilo original de las tarjetas. Solo los iconos alternan azul/rojo. */
#services.services > .section-intro .eyebrow,
#services.services > .section-intro h2 {
  color: var(--text) !important;
}
#services.services > .section-intro h2::after {
  background: var(--primary) !important;
}
#services .service-card,
#services .service-card:nth-of-type(even),
#services .service-card:hover,
#services .service-card:nth-of-type(even):hover {
  border-color: transparent !important;
  box-shadow: var(--shadow) !important;
}
#services .service-card::before {
  display: none !important;
}
#services .service-card h3,
#services .service-card:nth-of-type(even) h3 {
  color: var(--text) !important;
}
#services .service-card li::marker,
#services .service-card:nth-of-type(even) li::marker {
  color: inherit !important;
}
/* Único elemento con azul/rojo: los iconos */
#services .service-card i {
  color: #2272FF !important;
  filter: drop-shadow(0 0 8px rgba(34,114,255,.25));
}
#services .service-card:nth-of-type(even) i {
  color: #ff0000 !important;
  filter: drop-shadow(0 0 8px rgba(255,0,0,.22));
}


/* ===== FIX solicitado: Hero + tema (2026-10-03) ===== */
/* JHR.DEV queda en su apariencia oscura original; se elimina el control de tema del HTML. */
#inicio.hero .hero-actions.hero-force-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  display: flex !important;
}
#inicio.hero .hero-actions .btn-soluciones {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #ff0000 !important;
  border: 2px solid #ff0000 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#inicio.hero .hero-actions .btn-soluciones:hover {
  background: #2272FF !important;
  border-color: #2272FF !important;
  color: #ffffff !important;
}
@media (max-width: 600px) {
  #inicio.hero .hero-actions .btn-soluciones {
    display: inline-flex !important;
    width: min(100%, 290px) !important;
  }
}
\n\n/* ===== HERO CTA FINAL: Contacto + Soluciones ===== */\n#inicio.hero .hero-actions {\n  display: flex !important;\n  opacity: 1 !important;\n  visibility: visible !important;\n  transform: none !important;\n  justify-content: center;\n  align-items: center;\n  flex-wrap: wrap;\n  gap: 16px;\n  margin-top: 34px;\n  position: relative;\n  z-index: 50;\n}\n#inicio.hero .hero-actions .btn {\n  display: inline-flex !important;\n  align-items: center;\n  justify-content: center;\n  min-width: 205px;\n  padding: 14px 26px;\n  border-radius: 12px;\n  color: #fff !important;\n  font-weight: 700;\n  text-decoration: none;\n  opacity: 1 !important;\n  visibility: visible !important;\n  transform: none !important;\n  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;\n}\n#inicio.hero .hero-actions .btn-contact {\n  background: linear-gradient(135deg,#2272FF,#1255cc) !important;\n  border: 1px solid #2272FF !important;\n  box-shadow: 0 8px 25px rgba(34,114,255,.28);\n}\n#inicio.hero .hero-actions .btn-contact:hover {\n  transform: translateY(-4px) !important;\n  box-shadow: 0 12px 34px rgba(34,114,255,.45);\n}\n#inicio.hero .hero-actions .btn-soluciones {\n  background: linear-gradient(135deg,#ff0000,#c90000) !important;\n  border: 1px solid #ff0000 !important;\n  box-shadow: 0 8px 25px rgba(255,0,0,.27);\n}\n#inicio.hero .hero-actions .btn-soluciones:hover {\n  transform: translateY(-4px) !important;\n  background: linear-gradient(135deg,#ff0000,#b90000) !important;\n  border-color: #ff0000 !important;\n  box-shadow: 0 12px 34px rgba(255,0,0,.44);\n}\n@media (max-width:600px){\n  #inicio.hero .hero-actions { width:100%; padding:0 18px; }\n  #inicio.hero .hero-actions .btn { width:min(100%,330px) !important; min-width:0; }\n}\n