html{
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* CAROUSEL DE IMAGENES */
/*
.carousel-container {
  position: relative;
  max-width: 1550px;
  overflow: hidden;
  height: 400px;
  background: #000;
}
*/

.carousel-container {
  position: relative;
  max-width: 100%; /* El carrusel seguirá ocupando el 100% del ancho de su padre */
  width: 100%; /* Asegura que el contenedor tome el ancho completo disponible */
  overflow: hidden;
  background: #000;
  margin-top: 0;

  /* --- CAMBIOS CLAVE AQUÍ --- */
  height: 0; /* Elimina la altura fija */
  padding-top: 33.33%; /* Esto crea una relación de aspecto 3:1 (9 / 16 * 100%) */
  /* Si prefieres 2:1, usa padding-top: 50%; (1 / 2 * 100%) */
  /* Si prefieres 3:1, usa padding-top: 33.33%; (1 / 3 * 100%) */
}

/*.carousel-slide {
  display: none;
  height: 100%;
}*/

/* Las diapositivas deben posicionarse absolutamente dentro del contenedor para ocupar el espacio de padding-top */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Ocupará el 100% del alto calculado por padding-top */
  display: none;
}

/*.carousel-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}*/

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Asegura que el centro de la imagen siempre sea visible */
}


.carousel-slide.active{
    display: block;
}

.carousel-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn.prev {left: 10px;}
.carousel-btn.next {right: 10px;}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.carousel-dots .dot{
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background-color: #fff;
}

/* Seccion de confianza */
.seccion-confianza{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background-color: #1a1a1a;
    padding: 15px 20px;
    gap: 40px;
    border-top: 2px solid #2d2d2d;
    border-bottom: 2px solid #2d2d2d;
}

.item-confianza{
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre icono y texto */
    padding: 5px 15px;
    background-color: #2c2c2c;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    color: #f5f5f5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3 ease, background 0.3 ease;
    min-width: 80px;
}

.item-confianza:hover{
    /*transform: translateY(-5px);*/
    background-color: #333333;
}

.item-confianza svg{
    width: 28px;
    height: 28px;
    color: #ffffff;
    flex-shrink: 0;
}

.item-confianza p{
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #e0e0e0;
    white-space: nowrap;
}

.item-confianza img{
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    width: 140px;
    height: auto;
}

/* Seccion de categorias */

.seccion-categorias {
    display: flex;
    justify-content: center; /* Centrar los elementos */
    align-items: flex-start;
    flex-wrap: wrap;
    background-color: #1a1a1a; /* Color obscuro */
    padding: 40px 20px; /* Espaciado interno */
    gap: 30px; /* Espacio entre los elementos */
}

.item-categoria {
    flex: 0 0 auto;
    width: 180px; /* Ancho de cada elemento */
    text-align: center; /* Centrar texto de la imagen */
    color: #ffffff;
    transition: transform 0.3 ease;
    text-decoration: none;
}

.item-categoria a{
    display: block;
    color: inherit; /* Hereda el color del titulo */
    text-decoration: none; /* Quita el subrayado */
    padding: 10px; /* Añadir mas espacio dentro del area */
}

.item-categoria:hover{
    transform: translateY(-5px);
    cursor: pointer;
}

.item-categoria img{
    max-width: 100%; /* Asegura que la imagen no se desborde */
    height: auto;
    display: block;
    margin: 0 auto 15px auto; /* Centra la imagen */
    width: 150px; /* Tamaño aproximado de las imagenes */
    height: 150px;
    object-fit: contain;
}

.item-categoria h3{
    margin: 0; /* Elimina el margen predeterminado del h3 */
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SECCION DE OFERTAS */
.seccion-ofertas {
    width: 100%;
    padding: 60px 20px;
    /* Agregamos padding-bottom para compensar el crecimiento vertical de las tarjetas */
    padding-bottom: 80px; /* Ajusta este valor si es necesario, prueba con 80px o 90px */

    /* Tus estilos de fondo y borde */
    /* background: linear-gradient(135deg, #330808, #1a0303); */
    border-top: 5px solid #ff4d00;
    position: relative;
    overflow: hidden; /* Esto es para el overflow horizontal y los pseudo-elementos */
}
.seccion-ofertas::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle, rgba(255, 68, 0, 0.3) 10%, rgba(0, 0, 0, 0) 70%); /* Naranja translúcido */
    animation: fuegoSutil 5s infinite alternate;
    z-index: -1;
}

.seccion-ofertas::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(255, 179, 0, 0.2) 0%, rgba(0, 0, 0, 0) 60%); /* Amarillo translúcido */
    animation: destellosSutiles 7s infinite alternate;
    z-index: -2;
}

@keyframes fuegoSutil {
    0% { transform: scale(1) translate(-10px, 10px); opacity: 0.8; }
    100% { transform: scale(1.05) translate(10px, -10px); opacity: 0.5; }
}

@keyframes destellosSutiles {
    0% { transform: translate(-60%, -40%) rotate(0deg) scaleX(1); opacity: 0.6; }
    100% { transform: translate(-40%, -60%) rotate(360deg) scaleX(1.05); opacity: 0.3; }
}

.titulo-ofertas {
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 3.8em;
    margin-top: 0;
    margin-bottom: 60px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 0 15px rgba(255, 68, 0, 0.8);
    animation: tituloOfertaAnimado 1s infinite alternate;
}

@keyframes tituloOfertaAnimado {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.titulo-ofertas::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    width: 120px;
    height: 8px;
    background: linear-gradient(90deg, #ff4d00, #ffb300);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 68, 0, 0.9);
    animation: fuegoLinea 1.5s infinite alternate;
}

@keyframes fuegoLinea {
    0% { transform: translateX(-55%) scaleX(0.8); opacity: 0.8; }
    100% { transform: translateX(-45%) scaleX(1.2); opacity: 1; }
}

/* --- Cuadrícula de Ofertas --- */
.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
    align-items: stretch;
    margin-top: 30px;
}
.oferta-card {
    background: linear-gradient(145deg, #260d0d, #3b1414); /* Rojos más oscuros para las tarjetas */
    color: #fff;
    width: 100%;
    max-width: 340px; /* Ligeramente más anchas */
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    /* Sombra intensa con tonos rojizos */
    box-shadow: 0 10px 25px rgba(255, 68, 0, 0.6), 0 0 20px rgba(255, 179, 0, 0.2);
    text-align: center;
    padding-bottom: 30px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
}

.oferta-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 68, 0, 0.8), 0 0 30px rgba(255, 179, 0, 0.4);
}

.oferta-card img {
    width: 90%;
    height: 220px;
    object-fit: contain; /* Para que se vea el producto completo */
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.oferta-card h3 {
    font-size: 1.6em;
    margin: 15px 0 10px;
    color: #ffb300; /* Amarillo/naranja para destacar el nombre */
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 179, 0, 0.7);
    min-height: 2.4em;
}

/* Etiqueta de Descuento */
.etiqueta-oferta {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #ff4d00, #d62828); /* Rojo a naranja intenso */
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(255, 68, 0, 0.6);
    animation: descuentoAnimado 1s infinite alternate;
}

@keyframes descuentoAnimado {
    0% { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

/* Precios */
.precio-original {
    display: block;
    font-size: 1.2em;
    color: #ccc;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.precio-oferta {
    display: block;
    font-size: 2.2em;
    font-weight: bold;
    color: #ff4d00; /* Naranja brillante para el precio de oferta */
    text-shadow: 0 0 8px rgba(255, 68, 0, 0.8);
    margin-bottom: 20px;
    animation: precioOfertaAnimado 0.8s infinite alternate;
}

@keyframes precioOfertaAnimado {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

/* Botón "Ver Detalle" */
.btn-oferta {
    background: linear-gradient(90deg, #ff4d00, #d62828); /* Rojo a naranja intenso */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 68, 0, 0.6);
    animation: botonOfertaPulso 1.2s infinite alternate;
}

@keyframes botonOfertaPulso {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.btn-oferta:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 68, 0, 0.8);
    background: linear-gradient(90deg, #d62828, #ff4d00); /* Invierte el degradado */
}

/* Mensaje de no ofertas */
.no-ofertas {
    color: #ccc;
    font-size: 1.2em;
    text-align: center;
    padding: 40px;
    background-color: #1a0303;
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 0 15px rgba(255, 68, 0, 0.4);
}

@media (max-width: 992px) {
    .titulo-ofertas {
        font-size: 3em;
        margin-bottom: 50px;
    }
    .ofertas-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    .oferta-card {
        padding-bottom: 25px;
        max-width: 300px;
    }
    .oferta-card img {
        height: 200px;
    }
    .precio-original {
        font-size: 1.1em;
    }
    .precio-oferta {
        font-size: 2em;
    }
    .btn-oferta {
        font-size: 1em;
        padding: 10px 25px;
    }
}

@media (max-width: 768px) {
    .seccion-ofertas {
        padding: 40px 15px;
        margin: 60px auto;
    }
    .titulo-ofertas {
        font-size: 2.4em;
        margin-bottom: 40px;
    }
    .ofertas-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .oferta-card {
        width: 95%;
        max-width: 350px;
    }
    .oferta-card img {
        height: 180px;
    }
}

/* SECCION DESTACADOS */
.seccion-destacados{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    background-color: #111;
}

.titulo-destacados{
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 2.5em;
    margin-top: 0;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 0 15px rgba(136, 255, 0, 0.712);
}

.card-destacado{
    position: relative;
    background-color: #1a1a1a;
    color: #ffffff;
    width: 260px;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
    text-align: center;
    transition: transform 0.3s;
}

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

.card-destacado img{
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.etiqueta-nuevo{
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff3d00;
    color: white;
    font-size: 12px;
    padding: 3px 7px;
    border-radius: 5px;
}

.card-destacado h3{
    margin: 10px 0 5px;
    font-size: 18px;
}

.card-destacado p{
    font-size: 14px;
    margin-bottom: 10px;
}

.estrellas{
    color: gold;
    font-size: 16px;
    margin-bottom: 10px;
}

.card-destacado span{
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-destacado button{
    background-color: #00c853;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* SECCION MEDIOS DE PAGO */
.seccion-pagos{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background-color: #0d1117;
    padding: 40px 20px;
    gap: 30px;
    border-top: 2px solid #1f6feb;
}

.item-pago{
    display: flex;
    align-items: center;
    background-color: #161b22;
    padding: 15px 20px;
    border-radius: 10px;
    gap: 12px;
    width: 220px;
    transition: transform 0.3 ease, box-shadow 0.3 ease;
    color: #c9d1d9;
    box-shadow: 0 0 10px rgba(31, 111, 235, 0.2);
    cursor: default;
}

.item-pago:hover{
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(31, 111, 235, 0.5);
}

.item-pago svg{
    width: 30px;
    height: 30px;
    fill: #58a6ff;
    flex-shrink: 0;
}

.item-pago span{
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

/* SECCION NUEVO */
.seccion-nuevo{
    width: 100%;
    padding: 20px 10px;
    background-color: #111;
    box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.1), 0 0 40px rgba(0, 255, 255, 0.0);
    position: relative;
    overflow: hidden;
}

.seccion-nuevo h2{
    font-size: 2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
    
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #00BCD4, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

.seccion-nuevo h2::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00bcd4, #2196f3);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    animation: pulseLine 3s infinite ease-in-out;
}

@keyframes pulseLine{
    0% {transform: translateX(-50%) scaleX(1); opacity: 0.8;}
    50% {transform: translateX(-50%) scaleX(1.1); opacity: 1;}
    100% {transform: translateX(-50%) scaleX(1); opacity: 0.8;}
}

.novedades-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin-top: 15px;
}

.card-nuevo{
    position: relative;
    background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
    color: #e0e0e0;
    width: auto;
    margin: 0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.4 ease-in-out, box-shadow 0.4 ease-in-out, border 0.4 ease-in-out;
    border: 2px solid transparent;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-link-wrapper {
    text-decoration: none; /* This removes the underline */
    color: inherit; /* Ensures the text color is inherited from its parent, not default blue link */
    /* Add any other styling here to make the whole card clickable and styled */
    display: flex; /* If you want image and text to stack vertically */
    flex-direction: column; /* For vertical stacking */
    height: 100%; /* Make the link take full height of the card */
}

.card-nuevo .card-content-wrapper {
    flex-grow: 1; /* ¡Este es crucial! Hace que este div ocupe todo el espacio sobrante */
    display: flex; /* Conviértelo en flex para alinear su contenido interno */
    flex-direction: column; /* Apila su contenido */
    justify-content: flex-start; /* Alinea el contenido al inicio */
    padding-bottom: 10px; /* Pequeño espacio entre el contenido y el botón */
}

.card-nuevo:hover{
    /*transform: translateY(-15px) scale(1.02);*/
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 255, 255, 0.4);
    border: 2px solid #00ffff;
}

.card-nuevo img{
    width: 100%;
    height: 150px; /* Altura fija para las imágenes */
    object-fit: contain; /* Para que la imagen quepa sin cortarse */
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3 ease;
    border-bottom: 1px solid rgba(255, 68, 0, 0.2);
}

.card-nuevo img:hover{
    transform: scale(1.05); /* Zoom liger en la imagen al pasar el mouse */
}

.card-nuevo h3{
    margin: 8px 0;
    font-size: 1.4rem;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    min-height: 2rem;
}

.card-nuevo p{
    font-size: 0.7rem;
    color: #bbb;
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 3.5em;
    flex-grow: 1;
}

.estrellas{
    color: #ffb000;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.estrellas .fas, .estrellas .far{
    margin: 0 2px;
}

.card-nuevo .precio{
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;

    background: linear-gradient(90deg, #62efff, #00c853, #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.7));
    animation: animarPrecio 4s ease infinite;
}

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

.etiqueta-nuevo{
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #e91e63, #ff5722);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.7em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.5);
    animation: popIn 0.8s ease-out forwards;
    transform: scale(0);
    transform-origin: top right;
}

/* Animación para la etiqueta "Nuevo" */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.btn-comprar{
    background: linear-gradient(90deg, #00BCD4, #2196F3);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    margin-top: auto;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3 ease;
    box-shadow: 0 6px 15px rgba(0, 200, 255, 0.3);
    width: 100%;
    max-width: 180px;
}

.btn-comprar:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 200, 255, 0.6);
    background: linear-gradient(90deg, #2196F3, #00BCD4);
}

.no-productos{
    color: #bbb;
    font-size: 1.2em;
    text-align: center;
    padding: 40px;
    background-color: #1a1a1a;
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* --- Responsividad --- */
@media (max-width: 992px) {
    .novedades-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Ajusta minmax para pantallas más pequeñas */
        gap: 20px; /* Reducido el gap */
    }
    .card-nuevo img {
        height: 140px; /* Ajuste para tablets */
    }
    .card-nuevo h3 {
        font-size: 1.3em;
    }
    .card-nuevo .precio {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .seccion-nuevo {
        padding: 30px 10px; /* Ajuste para móviles */
        margin: 0 auto; /* Elimina el margin-top para que no haya espacio grande arriba */
    }
    .novedades-grid {
        grid-template-columns: 1fr; /* Una sola columna para móviles, esto está bien */
        gap: 20px; /* Ligeramente reducido */
    }
    .card-nuevo {
        max-width: 320px; /* Permite que la tarjeta sea un poco más grande en el centro para móviles */
        margin: 0 auto; /* Centra la tarjeta única en móviles */
    }
    .card-nuevo img {
        height: 150px; /* Ajuste para móviles */
    }
    .card-nuevo h3 {
        font-size: 1.2em;
    }
    .card-nuevo .precio {
        font-size: 1.6em;
    }
}

/* SECCION PERIFERICOS */
.seccion-perifericos{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0a1f44, #111);
    border-top: 5px solid #00ffff;
    position: relative;
    overflow: hidden;
}

.titulo-perifericos {
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 3.2em;
    margin-top: 0;
    margin-bottom: 50px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;

    /* NUEVO Degradado para el texto del título (más hacia el púrpura/naranja) */
    background: linear-gradient(90deg, #ff00ff, #8a2be2, #ffa500, #ff4500); /* Magenta, Azul Violeta, Naranja, Rojo-Naranja */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Compatibilidad */
    /* Sombra de brillo que combine con los nuevos colores */
    filter: drop-shadow(0 0 5px rgba(255, 0, 255, 0.5));
}


.titulo-perifericos::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateY(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #00ffff, #007bff);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    animation: pulseLinePerifericos 3s infinite ease-in-out;
}

@keyframes pulseLinePerifericos {
    0% { transform: translateX(-50%) scaleX(1); opacity: 0.8; }
    50% { transform: translateX(-50%) scaleX(1.1); opacity: 1; }
    100% { transform: translateX(-50%) scaleX(1); opacity: 0.8; }
}

.card-perifericos {
    background: linear-gradient(145deg, #1e1e1e, #2b2b2b); /* Degradado más profundo para la tarjeta */
    color: #ffffff;
    width: 320px; /* Ancho ajustado para que se vean bien en 3 columnas en la mayoría de pantallas */
    max-width: 90%; /* Asegura que no se desborde en móviles */
    border-radius: 15px; /* Bordes más redondeados */
    overflow: hidden;
    /* Sombra más dramática y con un toque de color */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 255, 0.15);
    text-align: center;
    padding-bottom: 25px; /* Más padding abajo para el botón */
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, border 0.4s ease-out; /* Transiciones más suaves */
    cursor: pointer;
    border: 2px solid transparent; /* Borde inicial transparente */
    position: relative; /* Para cualquier elemento posicionado internamente */
}

.card-perifericos::before { /* Efecto de luz de neón alrededor del borde */
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #007bff, #ff00ff); /* Degradado de colores vibrantes */
    z-index: -1;
    border-radius: 17px; /* Un poco más grande que el borde de la tarjeta */
    filter: blur(8px); /* Efecto de desenfoque para que parezca una luz */
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.4s ease-out;
}

.card-perifericos:hover::before {
    opacity: 1; /* Muestra el efecto de luz al pasar el mouse */
}

.card-perifericos:hover {
    transform: translateY(-15px) scale(1.02); /* Efecto de levitación más pronunciado y ligero crecimiento */
    /* Sombra más intensa y con más brillo al pasar el mouse */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 255, 255, 0.6);
    border-color: #00ffff; /* Borde cian brillante al pasar el mouse */
}

.card-perifericos img {
    width: 100%;
    height: 300px; /* Altura un poco mayor para las imágenes */
    object-fit: cover;
    /* Borde inferior con un degradado animado */
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #00ffff, #007bff, #ff00ff) 1; /* Degradado de borde */
    /* border-image: linear-gradient(90deg, #00ffff, #ff00ff) 1; */
    animation: borderPulse 3s infinite alternate; /* Animación de pulso para el borde */
    transition: transform 0.3s ease;
}

.card-perifericos img:hover {
    transform: scale(1.05); /* Zoom sutil en la imagen */
}

@keyframes borderPulse {
    0% { border-image: linear-gradient(90deg, #00ffff, #007bff) 1; }
    50% { border-image: linear-gradient(90deg, #007bff, #ff00ff) 1; }
    100% { border-image: linear-gradient(90deg, #ff00ff, #00ffff) 1; }
}

.card-perifericos h3 {
    font-size: 1.8em; /* Título de categoría más grande y legible */
    margin: 20px 0 10px; /* Más espacio */
    color: #00ffff; /* Color cian brillante para los títulos de categoría */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7); /* Sombra luminosa */
    min-height: 2.4em; /* Asegura un espacio para 2 líneas de texto */
}

.card-perifericos p {
    font-size: 1.05em; /* Ligeramente más grande y legible */
    color: #b0b0b0; /* Color más claro para la descripción */
    padding: 0 20px 25px; /* Más padding para el texto */
    line-height: 1.6;
    min-height: 4.5em; /* Espacio para 3-4 líneas de texto */
}


/* Botón "Ver más" */
.boton-perifericos {
    background: linear-gradient(90deg, #00ffff, #007bff); /* Degradado de cian a azul para el botón */
    color: white;
    border: none;
    padding: 12px 30px; /* Más padding para un botón más grande */
    border-radius: 30px; /* Bordes muy redondeados (píldora) */
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 200, 255, 0.4); /* Sombra que brilla */
}

.boton-perifericos:hover {
    transform: translateY(-5px); /* Levantamiento */
    box-shadow: 0 10px 25px rgba(0, 200, 255, 0.7); /* Sombra más fuerte y brillante */
    background: linear-gradient(90deg, #007bff, #00ffff); /* Invierte el degradado para un efecto visual */
}

/* Para asegurar que el <a> no interfiera con el padding del botón */
.enlace-card-perifericos {
    display: block; /* Ocupa todo el ancho disponible */
    margin-top: auto; /* Empuja el botón hacia abajo si las descripciones tienen alturas variables */
}

/* --- Responsividad --- */
@media (max-width: 992px) {
    .titulo-perifericos {
        font-size: 2.5em;
        margin-bottom: 40px;
    }
    .titulo-perifericos::after {
        width: 80px;
        height: 3px;
    }
    .card-perifericos {
        width: 280px; /* Ajuste para que quepan mejor en tabletas */
        padding: 20px;
    }
    .card-perifericos img {
        height: 200px;
    }
    .card-perifericos h3 {
        font-size: 1.5em;
    }
    .card-perifericos p {
        font-size: 0.95em;
        padding: 0 15px 20px;
    }
}

@media (max-width: 768px) {
    .seccion-perifericos {
        padding: 40px 15px;
        gap: 30px;
    }
    .titulo-perifericos {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .titulo-perifericos::after {
        width: 70px;
        height: 2px;
    }
    .card-perifericos {
        width: 95%; /* Casi todo el ancho para una sola columna */
        max-width: 350px; /* Límite para que no se vean gigantes en móviles grandes */
    }
    .card-perifericos img {
        height: 180px;
    }
}

/* SECCION DE TESTIMONIOS */

/* --- Sección de Testimonios --- */
.seccion-testimonios {
    background-color: #0d0d0d; /* Un fondo oscuro muy sutil para contrastar */
    color: #e0e0e0; /* Color de texto suave */
    padding: 15px 20px; /* Buen padding para espacio alrededor */
    text-align: center;
    position: relative;
    overflow: hidden; /* Para contener los posibles efectos de fondo */
    border-top: 1px solid rgba(0, 255, 255, 0.1); /* Línea sutil en la parte superior */
    border-bottom: 1px solid rgba(0, 255, 255, 0.1); /* Línea sutil en la parte inferior */
}

.seccion-testimonios::before { /* Efecto de fondo abstracto */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0.8;
    transform: rotate(45deg);
    z-index: 0;
}

.contenedor-testimonios {
    max-width: 1300px;
    margin: 0 auto;
    position: relative; /* Para asegurar que el contenido esté sobre el fondo */
    z-index: 1;
}

.titulo-testimonios {
    font-size: 3em; /* Tamaño de título impactante */
    color: #00ffff; /* Un color cian vibrante para el título */
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.subtitulo-testimonios {
    font-size: 1.2em;
    color: #a0a0a0;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.grid-testimonios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 columnas en desktop, adaptables */
    gap: 40px; /* Espacio generoso entre tarjetas */
    justify-content: center;
    align-items: stretch; /* Esencial para que todas las tarjetas tengan la misma altura */
}

/* --- Tarjeta Individual de Testimonio --- */
.testimonio-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a); /* Degradado oscuro elegante */
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 255, 0.15); /* Sombra profunda con brillo sutil */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex; /* Flexbox para control interno */
    flex-direction: column; /* Apila los elementos verticalmente */
    justify-content: space-between; /* Distribuye el espacio entre los bloques */
    height: 100%; /* Asegura que la tarjeta ocupe toda la altura de su celda de la cuadrícula */
}

.testimonio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 255, 255, 0.3);
    border: 1px solid #00ffff; /* Borde sutil al pasar el mouse */
}

.cita-texto {
    font-size: 1.15em;
    font-style: italic;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 25px; /* Espacio entre la cita y la info del cliente */
    position: relative;
    flex-grow: 1; /* Permite que el texto de la cita ocupe el espacio restante */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto verticalmente dentro de su contenedor flex */
    min-height: 120px; /* Asegura una altura mínima para citas cortas */
}

.cita-texto p {
    margin: 0; /* Elimina márgenes por defecto del párrafo */
    padding: 0 15px; /* Padding para que el texto no pegue a los íconos */
}

.cita-texto .fas { /* Estilos para los íconos de comillas */
    color: #00ffff;
    font-size: 2.2em;
    position: absolute;
    opacity: 0.4;
}

.cita-texto .fa-quote-left {
    top: 0;
    left: 0;
}

.cita-texto .fa-quote-right {
    bottom: 0;
    right: 0;
}

.cliente-info {
    display: flex;
    flex-direction: column; /* Apila avatar y nombre */
    align-items: center; /* Centra el avatar y el nombre */
    margin-top: 20px; /* Espacio superior */
}

.cliente-avatar {
    width: 80px; /* Tamaño del avatar */
    height: 80px;
    border-radius: 50%; /* Circular */
    object-fit: cover;
    border: 3px solid #00ffff; /* Borde cian alrededor del avatar */
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.cliente-nombre {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff; /* Nombre del cliente en blanco */
    margin-bottom: 5px;
}

.cliente-puesto {
    font-size: 0.9em;
    color: #888; /* Puesto en un gris más suave */
    margin: 0;
}


/* --- Responsividad para Testimonios --- */
@media (max-width: 992px) {
    .titulo-testimonios {
        font-size: 2.5em;
    }
    .subtitulo-testimonios {
        font-size: 1.1em;
        margin-bottom: 40px;
    }
    .grid-testimonios {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Dos columnas o menos en tablets */
        gap: 30px;
    }
    .testimonio-card {
        padding: 25px;
    }
    .cita-texto {
        font-size: 1em;
        min-height: 100px;
    }
    .cliente-avatar {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .seccion-testimonios {
        padding: 60px 15px;
    }
    .titulo-testimonios {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .subtitulo-testimonios {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .grid-testimonios {
        grid-template-columns: 1fr; /* Una columna para móviles */
        gap: 25px;
    }
    .testimonio-card {
        max-width: 400px; /* Limita el ancho de la tarjeta en móvil */
        margin: 0 auto; /* Centra la tarjeta en móvil */
        padding: 20px;
    }
    .cita-texto {
        font-size: 0.95em;
        min-height: 80px;
    }
    .cliente-avatar {
        width: 60px;
        height: 60px;
    }
}

/* SECCION DE CARACTERISTICAS */

.seccion-caracteristicas {
    padding: 60px 20px;
    background: linear-gradient(135deg, #0a0a0a, #1c1c1c);
    text-align: center;
    color: #fff;
}

.seccion-caracteristicas h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #00ccff;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.4);
}

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

.card {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    width: 300px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

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

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #00ccff;
}

.card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #ccc;
}
