@import url('https://fonts.googleapis.com/css2?family=BBH+Bartle&family=Bebas+Neue&display=swap');

body {
    font-family: 'Bebas Neue', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

.main-header {
    background: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Formal y sutil */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.main-header:hover {
    background: rgba(12, 12, 14, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo .animated-logo {
    font-family: 'BBH Bartle', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    /* Esta fuente suele ser ya gruesa */
    text-decoration: none;
    color: #ffffff;
    letter-spacing: 3px;
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.logo .animated-logo:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    color: white;
    text-decoration: none;
}

header nav ul li a.active {
    border-bottom: 2px solid #ff4081;
}

/* Hero que ocupa toda la pantalla */
.hero {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%), url('img/generales/fonndo.jpeg') no-repeat center center/cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}



.hero .overlay {
    background: rgba(0, 0, 0, 0.5);
    /* oscurece la imagen para que se lea el texto */
    padding: 40px;
    border-radius: 15px;
}

.hero h1 {
    font-family: 'BBH Bartle', sans-serif;
    font-size: 4rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero .btn {
    padding: 15px 25px;
    font-size: 1.2rem;
    background-color: #ff4081;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
}

.hero .btn:hover {
    background-color: #e73370;
}

producto {
    background-color: #222;
}

/* Eliminamos los duplicados antiguos y unificamos el estilo oscuro */

.producto-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.producto-card .info {
    text-align: center;
    margin-top: 10px;
}

.producto-card h2 {
    margin: 5px 0;
    font-size: 1.4rem; /* Aumentado para mejor lectura */
    font-weight: bold;
    letter-spacing: 0.5px;
}

.producto-card .precio {
    color: #d0c7ca;
    font-weight: bold;
    margin: 5px 0;
}

.contacto {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

footer {
    text-align: center;
    background: #222;
    color: white;
    padding: 15px;
    margin-top: 0;
}

h1 {
    color: #a5a1a1;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0; /* Quitamos el gap para que las líneas sean continuas */
    padding: 20px;
}

.producto-card {
    background: transparent;
    color: white;
    overflow: hidden;
    text-align: center;
    padding: 40px 20px; /* Más espacio vertical para la línea divisora */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Línea divisora sutil horizontal */
    transition: background 0.3s ease;
}

.producto-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.producto-card .btn {
    padding: 10px 20px;
    margin-top: 10px;
    background: #867d80;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.producto-card .btn:hover {
    background: #aca6a8;
}

.carrito-container {
    background: rgba(0, 0, 0, 0.85);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    max-width: 900px;
    width: 100%;
    color: white;
}

.carrito-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.carrito-container table {
    width: 100%;
    border-collapse: collapse;
}

.carrito-container table th,
.carrito-container table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #555;
}

.carrito-container table th {
    background-color: #222;
}

.carrito-container table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.mini-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-eliminar {
    background: #ff3b3b;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-eliminar:hover {
    background: #e63232;
}

.btn-seguir {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #bbadb2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-seguir:hover {
    background: #cab7bd;
}

.vacio {
    text-align: center;
    font-size: 18px;
    padding: 20px;
}

/* Estilo del menú de navegación */
.main-header nav {
    background-color: transparent;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Estilo de los enlaces */
.main-header nav a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    padding: 8px 25px;
    transition: color 0.3s ease;
    background: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    /* Línea divisoria */
}

/* Quitamos la línea para el último elemento sin romper el espacio */
.main-header nav a:last-child {
    border-right: none;
}

.main-header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ff4081;
    transition: width 0.3s ease;
}

/* Hover: cuando pasás el mouse */
.main-header nav a:hover {
    color: #ff4081;
    background: none;
}

.main-header nav a:hover::after,
.main-header nav a.active::after {
    width: 100%;
}

/* Link activo: la página actual */
.main-header nav a.active {
    color: #ff4081;
    background: none;
}

/* Extras del Carrito */
.cart-link {
    transition: color 0.3s ease !important;
}

.cart-link:hover {
    /* Eliminamos el scale para mantener la línea de diseño fija */
    transform: none;
}

.cart-count {
    background: #ff4081;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

contacto {
    background-image: url(img/generales/foto.jpg);
}

.footer a.href {
    background-color: #fff;

}

@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }

    .producto-card {
        max-width: 90%;
    }

    .producto-card img {
        width: 100%;
        height: auto;
    }

    header nav a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
    }

    form select {
        width: 90%;
        font-size: 1rem;
    }

    label {
        display: block;
        margin-bottom: 8px;
    }
}

/* Eliminado el duplicado que reseteaba la fuente a Arial */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: bold; /* Faux-bold para mejorar legibilidad en Bebas Neue */
}

table {
    margin: 10px auto;
    border-collapse: collapse;
    width: 80%;
}

td,
th {
    border: 1px solid #ccc;
    padding: 6px;
}

.login {
    width: 100%;
    max-width: 400px;
    background: rgba(15, 15, 17, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.login h2 {
    font-family: 'BBH Bartle', sans-serif;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.login input[type="text"],
.login input[type="password"] {
    width: 100%;
    background: rgba(40, 40, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login input:focus {
    border-color: #ff4081;
    background: rgba(50, 50, 55, 0.9);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 64, 129, 0.3);
}

.login button {
    width: 100%;
    background: #ff4081;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1.1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login button:hover {
    background: #e73370;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.4);
}

.login p {
    color: #ff4d4d;
    font-size: 0.9rem;
    margin-top: 20px;
}

input,
select,
button,
textarea {
    margin: 5px;
    padding: 5px;
    font-family: inherit; /* Heredar Bebas Neue del body */
}

button {
    background: black;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #444;
}

/* ========================================= */
/* CARRUSEL DE PRODUCTOS - INDEX             */
/* ========================================= */
.hero-with-carousels {
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.carousel-wrapper {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
}

/* Gradientes laterales para suavizar los bordes */
.carousel-container::before,
.carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15vw;
    max-width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.carousel-track {
    display: inline-block;
    white-space: nowrap;
}

/* Animaciones de marquesina */
.track-left {
    animation: scroll-left 240s linear infinite;
}

.track-right {
    animation: scroll-right 240s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    display: inline-block;
    margin: 0 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-item img {
    height: 200px;
    width: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.carousel-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.6);
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* ========================================= */
/* DESTELLO/RESALTADO DE PRODUCTO - CATÁLOGO */
/* ========================================= */
.destello-producto {
    animation: flashGlow 2.5s ease-out forwards;
}

@keyframes flashGlow {
    0% {
        box-shadow: 0 0 30px #ff4081, 0 0 60px #ff4081;
        transform: scale(1.05);
        background-color: #4a192b;
        border: 2px solid #ff4081;
    }

    50% {
        box-shadow: 0 0 20px #ff4081;
        transform: scale(1.02);
        border: 2px solid #ff4081;
    }

    100% {
        box-shadow: 0 0 0 transparent;
        transform: scale(1);
        background-color: #111;
        border: 2px solid transparent;
    }
}

/* ========================================= */
/* LIGHTBOX PARA IMÁGENES DE PRODUCTOS       */
/* ========================================= */

.lightbox {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* Fondo oscuro */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 64, 129, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #ff4081;
    text-decoration: none;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    display: inline-block;
    margin: 0 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-item img {
    height: 200px;
    width: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.carousel-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.6);
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* ========================================= */
/* DESTELLO/RESALTADO DE PRODUCTO - CATÁLOGO */
/* ========================================= */
.destello-producto {
    animation: flashGlow 2.5s ease-out forwards;
}

@keyframes flashGlow {
    0% {
        box-shadow: 0 0 30px #ff4081, 0 0 60px #ff4081;
        transform: scale(1.05);
        background-color: #4a192b;
        border: 2px solid #ff4081;
    }

    50% {
        box-shadow: 0 0 20px #ff4081;
        transform: scale(1.02);
        border: 2px solid #ff4081;
    }

    100% {
        box-shadow: 0 0 0 transparent;
        transform: scale(1);
        background-color: #111;
        border: 2px solid transparent;
    }
}