
  /* ESTILOS GENERALES */
  :root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-red: #B22222;
    /* rojo oscuro firebrick */
    --color-gray-light: #CCCCCC;
    --font-main: 'Barlow', sans-serif;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: var(--font-main);
     background-color: #111111;
    color: var(--color-white);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  header {
    background-color: #111;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #333;
    z-index: 1000;
  }

  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .logo-text .sub {
    font-weight: bold;
    font-size: 1.2rem;
  }

  nav {
    display: flex;
  }

  nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
  }

  nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background 0.3s ease;
  }

  nav a:hover {
    background-color: #333;
  }

  /* HAMBURGER MENU */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background-color: red;
    /* menú hamburguesa rojo */
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

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

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

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

  .hero {
    background-color: #ffffff;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
  }


.hero h1 {
  font-size: 3rem;
  color: #000000a6;
  margin-bottom: 1.5rem;
  letter-spacing: 4px;
  font-weight: 900;
  text-transform: uppercase;
}

.fade-on-scroll {
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

  .btn-primary:hover {
    background-color: #8b1a1a;
  }

  .btn-primary {
    padding: 0.8rem 2.5rem;
    background: rgb(0, 0, 0);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.3s ease;
    user-select: none;
  }

  .btn-primary:hover,
  .btn-primary:focus {
    background: #fff8f8;
    color: #000000;
    outline: none;
    box-shadow: 0 0 25px #ccc6c6;
  }

  
  
.section-title {
  margin: 4rem 0 2rem;
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 5px;
  background: linear-gradient(90deg, #d30c0cde 0%, #a10909de 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Para Firefox */
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  text-shadow: 2px 2px 8px rgba(255, 254, 254, 0.25);
  animation: gradientShift 4s ease infinite;
  user-select: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Sección: ¿Por qué elegirnos? */
.cc-elegir-section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--color-white);
}



.cc-elegir-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.cc-elegir-card {
  background-color: #151515;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  max-width: 300px;
  flex: 1 1 260px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cc-elegir-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.cc-elegir-card h3 {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.cc-elegir-card p {
  font-size: 1.05rem;
  color: #bbbbbb;
  line-height: 1.6;
  font-weight: 400;
}



  /* Sección Nosotros */
  #nosotros {
    max-width: 900px;
    margin: 4rem auto 4rem auto;
    padding: 0 2rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-gray-light);
    text-align: center;
    line-height: 1.7;
  }

  /* Por qué elegirnos */
  .why-choose {
    max-width: 1100px;
    margin: 0 auto 6rem;
    background: #121212;
    padding: 4rem 2rem 5rem;
    border-radius: 1rem;
    box-shadow: 0 6px 30px rgba(178, 34, 34, 0.25);
    text-align: center;
    color: var(--color-white);
  }

  .why-choose h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    letter-spacing: 4px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-red);
    text-shadow: 0 0 10px rgba(178, 34, 34, 0.8);
  }

  .why-choose p.subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-gray-light);
    margin-bottom: 3rem;
  }

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

  .feature-item {
    background: #222;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.15);
    transition: transform 0.3s ease;
    cursor: default;
  }

  .feature-item:hover,
  .feature-item:focus {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(178, 34, 34, 0.6);
    outline: none;
  }

  .feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--color-red);
    user-select: none;
  }

  .feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-white);
  }

  .feature-desc {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-light);
    line-height: 1.5;
  }



  /* 1. Typewriter efecto para .hero h1 */
  .hero h1 {
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid var(--color-red);
    animation: typing 4s steps(30, end) infinite, blinkCaret 0.75s step-end infinite;
    width: fit-content;
    max-width: 100%;
  }

  @keyframes typing {
    0% {
      width: 0
    }

    50% {
      width: 100%
    }

    100% {
      width: 0
    }
  }

  @keyframes blinkCaret {
    0%,
    100% {
      border-color: transparent
    }

    50% {
      border-color: var(--color-red)
    }
  }

  /* 2. Botones con efecto glow al hover y foco */
  .btn-primary,
  .primary {
    background-color: var(--color-red);
    color: var(--color-white);
    border: none;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    user-select: none;
  }

  .btn-primary:hover,
  .primary:hover,
  .btn-primary:focus,
  .primary:focus {
    box-shadow: 0 0 12px var(--color-red), 0 0 20px #ff4949;
    transform: scale(1.05);
    outline: none;
  }

  /* 3. Títulos de sección con línea deslizante */
  .section-title {
    position: relative;
    overflow: hidden;
  }

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red), #d3d0d0);
  transform: translateX(-100%);
  animation: slideIn 4s forwards; /* más lento que 1.5s */
}

  @keyframes slideIn {
    to {
      transform: translateX(0);
    }
  }

  /* 4. Botón chatbot WhatsApp con pulso animado */
  .chatbot {
    background-color: #25D366 !important;
    box-shadow: 0 0 12px #25D366 !important;
    animation: pulse 2.5s infinite !important;
  }


  @keyframes pulse {
    0% {
      box-shadow: 0 0 12px #25D366;
      transform: scale(1);
    }

    50% {
      box-shadow: 0 0 20px #25D366;
      transform: scale(1.1);
    }

    100% {
      box-shadow: 0 0 12px #25D366;
      transform: scale(1);
    }
  }

  /* 5. Hover animado para auto-cards (ya tienes transform y sombra) */
  /* Complementamos con una sombra de brillo suave */
  .auto-card:hover {
    box-shadow:
      0 12px 40px rgba(178, 34, 34, 0.6),
      0 0 20px 5px rgba(178, 34, 34, 0.3);
  }

  /* Opcional: Añadir cursor pointer en .auto-card para reforzar interactividad */
  .auto-card {
    cursor: pointer;
  }

.chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  border-radius: 50%;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chatbot:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.chatbot svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: white;
}

/* Efecto mágico en enlaces del nav */
nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::before {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: #B22222; /* rojo firebrick */
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav a:hover,
nav a:focus {
  color: #ff6b6b;
  animation: navGlow 1s infinite alternate;
}

nav a:hover::before,
nav a:focus::before {
  width: 100%;
}

/* Brillo suave animado */
@keyframes navGlow {
  0% {
    text-shadow: 0 0 5px #ff6b6b, 0 0 10px #b22222, 0 0 15px #ff6b6b;
  }
  100% {
    text-shadow: 0 0 10px #ff6b6b, 0 0 20px #b22222, 0 0 30px #ff6b6b;
  }
}


@media (max-width: 1024px) {
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Navegación fija lateral */
nav {
  padding-left: 1.5rem;
  padding-right: 1.5rem;

  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  color: #fff;
  z-index: 1000;
  border-radius: 0 0 0 20px;
}

/* Estado abierto del nav */
nav.open {
  transform: translateX(0);
}

/* Lista vertical del nav */
nav ul {
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
  list-style: none;
  display: flex; /* para que flex-direction funcione */
}

/* Items del menú */
nav li {
  border-bottom: 1px solid #444;
}

/* Último item sin borde */
nav li:last-child {
  border-bottom: none;
}

/* Links del menú */
nav a {
  color: #fff;
  display: block;
  padding: 1.2rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  user-select: none;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a:focus {
  background-color: rgba(255, 0, 0, 0.3);
  outline: none;
}

/* Botón hamburguesa */
.hamburger {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: black;
  padding: 0.6rem;
  border-radius: 8px;
  box-shadow: 0 0 10px var(--color-red);
  z-index: 1100;
}

}
  @media (max-width: 768px) {
  /* Box-sizing para todo */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  nav {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    padding-top: 80px;
    color: #fff;
    z-index: 1000;
    border-radius: 0 0 0 20px;
  }
  nav.open {
    transform: translateX(0);
  }
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
    list-style: none;
  }
  nav li {
    border-bottom: 1px solid #444;
  }
  nav li:last-child {
    border-bottom: none;
  }
  nav a {
    color: #fff;
    display: block;
    padding: 1.2rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    user-select: none;
  }
  nav a:hover,
  nav a:focus {
    background-color: rgba(255, 0, 0, 0.3);
    outline: none;
  }
  .hamburger {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
     background-color: black;
    padding: 0.6rem;
    border-radius: 8px;
    box-shadow: 0 0 10px var(--color-red);
    z-index: 1100;
  }
 
  
  .hero h1 {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  

  /* Ajustes generales */
  .section-title {
    font-size: 2rem;
    letter-spacing: 2px;
    margin: 2rem 0 1.5rem;
    text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.2);
  }

  /* Sección: ¿Por qué elegirnos? */
  .cc-elegir-section {
    padding: 0 1rem;
    margin: 2rem 0;
  }

  .cc-elegir-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cc-elegir-card {
    max-width: 100%;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 4px 12px rgba(250, 229, 229, 0.4);
  }

  .cc-elegir-card h3 {
    font-size: 1.2rem;
  }

  .cc-elegir-card p {
    font-size: 1.0rem;
  }

  /* Sección nosotros */
  #nosotros {
    font-size: 1rem;
    padding: 0 1rem;
    margin: 3rem auto;
  }

  /* Por qué elegirnos */
  .why-choose {
    padding: 2.5rem 1rem 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 20px rgba(178, 34, 34, 0.2);
  }

  .why-choose h2 {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
  }

  .why-choose p.subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Características */
  .features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .feature-item {
    padding: 1.5rem 1.2rem;
    box-shadow: 0 4px 10px rgba(178, 34, 34, 0.2);
  }

  .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
  }

  .feature-title {
    font-size: 1.3rem;
  }

  .feature-desc {
    font-size: 0.95rem;
  }


  .chatbot {
    bottom: 15px;
    right: 15px;
    padding: 12px;
  }

  .chatbot svg {
    width: 24px;
    height: 24px;
  }

  }
  
  /* Ajuste para móviles */
@media (max-width: 600px) {
  .contenedor-titulo h2 {
    font-size: 1.5rem; /* tamaño más pequeño en celulares */
  }

  .contenedor-titulo p {
    font-size: 0.9rem; /* también reducimos el párrafo */
  }

  .cards-group {
    gap: 1rem; /* menos espacio entre cards */
  }

  .card {
    width: 90%; /* cards más estrechas en móvil */
  }
}



    /* Cursor typing blink */
    @keyframes blink {

      0%,
      50%,
      100% {
        opacity: 1;
      }

      25%,
      75% {
        opacity: 0;
      }
    }

    /* Ripple effect */
    @keyframes ripple {
      to {
        transform: scale(4);
        opacity: 0;
      }
    }

    .btn-primary,
    .primary {
      position: relative;
      overflow: hidden;
      cursor: pointer;
      transition: box-shadow 0.3s ease;
      border-radius: 4px;
    }

    .btn-primary:focus,
    .primary:focus {
      outline: none;
      box-shadow: 0 0 8px #b22222dd;
    }

    .btn-primary span.ripple,
    .primary span.ripple {
      position: absolute;
      border-radius: 50%;
      transform: scale(0);
      animation: ripple 0.6s linear;
      background: rgba(255, 255, 255, 0.4);
      pointer-events: none;
    }

    /* Logo glitch */
    .logo-text .main.glitch {
      position: relative;
      color: #b22222;
      text-shadow:
        2px 0 red,
        -2px 0 cyan;
      clip-path: polygon(0 2%, 100% 2%, 100% 8%, 0 8%);
      animation: glitch-anim 0.15s ease-in-out;
    }

    @keyframes glitch-anim {
      0% {
        clip-path: polygon(0 2%, 100% 2%, 100% 8%, 0 8%);
        transform: translate(0);
      }

      50% {
        clip-path: polygon(0 10%, 100% 10%, 100% 14%, 0 14%);
        transform: translate(-2px, -1px);
      }

      100% {
        clip-path: polygon(0 2%, 100% 2%, 100% 8%, 0 8%);
        transform: translate(0);
      }
    }
  
/* ==================== CONTENEDOR ==================== */
.destacados-premium {
  background: linear-gradient(to bottom, #000 0%, #0a0a0a 100%);
  padding: 80px 20px 120px;
  text-align: center;
}

/* ==================== TÍTULO ==================== */
.title-box h2 {
  color: #fff;
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.title-line {
  width: 80px;
  height: 4px;
  margin: 12px auto 35px;
  background: #b81e1e;
  border-radius: 4px;
  animation: expand 2s infinite ease-in-out;
}

@keyframes expand {
  0% { width: 40px; opacity: .4; }
  50% { width: 80px; opacity: 1; }
  100% { width: 40px; opacity: .4; }
}

.subtitle {
  color: #bfbfbf;
  font-size: 1.15rem;
  margin-bottom: 60px;
}

/* ==================== GRID ==================== */
.premium-grid {
  max-width: 1250px;
  margin: auto;
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ==================== CARD ==================== */
.premium-card {
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 0 40px rgba(255,255,255,0.05);
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 65px rgba(255,255,255,0.18);
}

/* BORDE BRILLANTE */
.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(45deg, #b81e1e, transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
}

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

/* ==================== IMAGEN ==================== */
.img-wrapper {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

/* ==================== TEXTO ==================== */
.premium-card h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 18px 0 10px;
}

.premium-card p {
  color: #cfcfcf;
  font-size: 0.95rem;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* ==================== BOTÓN REAL ==================== */
.premium-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #b81e1e;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .25s ease, transform .25s ease;
}

.premium-btn:hover {
  background: #8f1616;
  transform: translateY(-2px);
}