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

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0b0b;
    color: white;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* OVERLAY */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1500;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* BANNER */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: white;
    color: black;
    overflow: hidden;
    z-index: 2000;
    display: flex;
    align-items: center;
}

.banner-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: bannerInfinite 25s linear infinite;
}

.banner-content {
    white-space: nowrap;
    padding-right: 60px;
    font-weight: 600;
    flex-shrink: 0;
}

@keyframes bannerInfinite {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10,10,10,.85);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    z-index: 1800;
    transition: .3s;
    box-shadow: 0 5px 25px rgba(0,0,0,.4);
}

.navbar.scrolled {
    top: 0;
}

.logo img {
    height: 60px;
}

.menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.menu a {
    text-decoration: none;
    color: white;
    transition: .3s;
}

.menu a:hover {
    color: #d6d6d6;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    cursor: pointer;
    position: relative;
    font-size: 1.3rem;
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -14px;
    background: white;
    color: black;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: .2s;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.75)), url("../img/web/fernet.jpg");
    background-size: cover;
    background-position: center;
}

.hero-logo {
    width: 180px;
    margin-bottom: 20px;
    animation: flotando 4s ease-in-out infinite;
}

@keyframes flotando {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    letter-spacing: 5px;
}

.hero p {
    margin-top: 20px;
    color: #d5d5d5;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    transition: .3s;
}

.btn:hover {
    background: white;
    color: black;
}

/* SECCIONES */
section {
    padding: 100px 8%;
}

section h2 {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 50px;
}

/* PRODUCTOS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: .4s;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #ffffff;
}

.card h3 {
    padding: 20px;
}

.card-buttons {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.card-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.ver-mas {
    background: #202020;
    color: white;
}

.agregar {
    background: white;
    color: black;
}

/* COMBOS */
.combo-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.combo {
    width: 300px;
    padding: 35px;
    border: 1px solid rgba(255,255,255,.15);
    text-align: center;
    transition: .3s;
}

.combo:hover {
    background: white;
    color: black;
}

/* NOSOTROS */
.nosotros {
    text-align: center;
    max-width: 1000px;
    margin: auto;
}

.nosotros p {
    line-height: 1.9;
    color: #d2d2d2;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer-link-admin {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link-admin:hover {
    color: #fff;
}

/* CARRITO */
.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: #101010;
    z-index: 2500;
    transition: .4s;
    padding: 25px;
    overflow-y: auto;
}

.cart-panel.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.cart-close {
    cursor: pointer;
    font-size: 1.8rem;
}

.cart-item {
    padding: 15px;
    background: #181818;
    margin-bottom: 15px;
    border-radius: 10px;
}

.cart-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.cart-controls button {
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.cart-buttons {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-buttons button {
    padding: 15px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 3000;
}

.modal-content {
    width: 90%;
    max-width: 650px;
    background: #111;
    margin: 50px auto;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.modal-content img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
}

.close {
    float: right;
    cursor: pointer;
    font-size: 2rem;
}

.modal-cantidad {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

/* BOTONES */
button {
    transition: .3s;
}

button:hover {
    opacity: .9;
}

/* RESPONSIVE */
@media(max-width:900px) {
    .menu {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 120px);
        background: #0b0b0b;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: .4s;
    }

    .menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* BUSCADOR */
.buscador-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

#buscador {
    width: 100%;
    max-width: 500px;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #1a1a1a;
    color: white;
    font-size: 1rem;
}

#buscador:focus {
    outline: none;
}

/* FILTROS */
.filtros {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filtro-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    background: #202020;
    color: white;
}

.filtro-btn.active {
    background: white;
    color: black;
}

/* PRECIO */
.precio {
    padding: 0 20px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #e8c26a;
}

/* TOAST */
.toast {
    position: fixed;
    top: 140px;
    right: 20px;
    background: #1b8a3b;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    z-index: 5000;
    transform: translateX(300px);
    transition: .3s;
}

.toast.show {
    transform: translateX(0);
}

/* CONTACTO V2 */
.contacto-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.contact-card {
    width: 250px;
    padding: 30px 15px;
    text-align: center;
    text-decoration: none;
    color: white;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    transition: .3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:hover {
    transform: translateY(-8px);
    background: white;
    color: black;
}

.contact-card h3 {
    margin: 15px 0 5px;
}

.contact-card p {
    font-size: .85rem;
    word-break: break-word;
    width: 100%;
    text-align: center;
}

.mapa {
    width: 100%;
    margin-top: 40px;
}

.mapa iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 20px;
}

.modal-precio {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e8c26a;
    margin-top: 15px;
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity .8s;
}

#loader img {
    width: 220px;
    animation: logoIntro 2s ease forwards;
}

@keyframes logoIntro {
    0% {
        opacity: 0;
        transform: scale(.4) rotate(-15deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

.cart-item p {
    margin-top: 5px;
    color: #d0d0d0;
    font-size: .9rem;
}

/* BURBUJA FLOTANTE DE WHATSAPP */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 4000;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.6);
}

/* PANEL DE ADMINISTRACIÓN (ADMIN) */
.admin-body {
    background: #080808;
    color: #fff;
}

.admin-login-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.admin-login-box {
    background: #121212;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.admin-logo {
    width: 100px;
    margin-bottom: 15px;
}

.admin-login-box input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
}

.btn-admin-submit {
    width: 100%;
    padding: 12px;
    background: #e8c26a;
    color: #000;
    border: none;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

.admin-container {
    padding: 30px 5%;
    max-width: 1400px;
    margin: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
}

@media (max-width: 950px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-card {
    background: #121212;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 25px;
}

.admin-card h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #e8c26a;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #ccc;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
}

.btn-admin-add {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #000;
    border: none;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.input-precio-tabla {
    width: 90px;
    padding: 6px;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #e8c26a;
    border-radius: 6px;
    font-weight: bold;
}

.btn-sm-save, .btn-sm-delete {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-sm-save { background: #25d366; color: #000; }
.btn-sm-delete { background: #ff4d4d; color: #fff; }
.btn-danger { background: #d9534f; color: #fff; padding: 10px 15px; border: none; border-radius: 8px; cursor: pointer; }
.btn-secundario { background: #333; color: #fff; padding: 10px 15px; border-radius: 8px; text-decoration: none; margin-right: 10px; display: inline-block; }
.badge { background: #222; color: #e8c26a; padding: 4px 8px; border-radius: 12px; font-size: 0.75rem; }
.error-msg { color: #ff4d4d; font-size: 0.85rem; margin-top: 10px; }