@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:wght@400;500;600;700&display=swap');

/* ========================================
   DEJANDO HUELLA - ESTILOS PRINCIPALES
   Tipografía: Libre Bodoni
   Color Dorado: #d4af37
   ======================================== */

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Libre Bodoni', serif;
}

body {
    font-family: 'Libre Bodoni', serif;
    background-color: #ffffff;
    color: #111111;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

.contenedor {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER - DISEÑO ELEGANTE Y MINIMALISTA
   ======================================== */
.header-principal {
    background-color: #000;
    border-bottom: 1px solid #1a1a1a;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-principal .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.85;
}

.logo-imagen {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.logo-texto {
    font-family: 'Libre Bodoni', serif;
    font-size: 1.4em;
    font-weight: 600;
    color: #d4af37;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Slogan rotativo */
.slogan-rotativo {
    margin-top: 2px;
}

.slogan-texto {
    font-size: 0.75em;
    color: #d4af37;
    font-weight: 500;
    letter-spacing: 0.25em;
    display: block;
    text-transform: uppercase;
}

/* Navegación */
.navegacion {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    padding: 10px 16px;
    border-radius: 0;
    text-transform: uppercase;
    font-size: 0.8em;
}

.nav-link:hover {
    color: #f4e09d;
}

/* Botón INICIO destacado */
.nav-inicio {
    position: relative;
}

/* Dropdown menu */
.nav-dropdown {
    position: relative;
}

/* Pseudo-elemento para conectar el nav-link con el dropdown (evita que se cierre) */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px; /* Área invisible de conexión */
    background: transparent;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px); /* Reducido de 10px a 5px */
    left: 0;
    background-color: #111;
    min-width: 200px;
    border: 1px solid #333;
    border-radius: 8px;
    z-index: 1001;
    padding: 8px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Mostrar dropdown con animación suave */
.nav-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: #d4af37;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    font-size: 0.85em;
    letter-spacing: 0.05em;
}

.dropdown-content a:hover {
    background-color: rgba(212, 175, 55, 0.15);
    color: #f4e09d;
    padding-left: 25px;
}

.dropdown-content hr {
    border: none;
    border-top: 1px solid #333;
    margin: 8px 0;
}

/* Flecha indicadora en el dropdown */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #111;
    border-left: 1px solid #333;
    border-top: 1px solid #333;
    transform: rotate(45deg);
}

/* Badge carrito */
.carrito-link {
    position: relative;
}

.badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background-color: #d4af37;
    color: #000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65em;
    font-weight: 600;
}

/* Botón registro destacado */
.btn-registro {
    background-color: transparent;
    border: 1px solid #d4af37;
    color: #d4af37 !important;
    padding: 10px 20px !important;
    margin-left: 10px;
}

.btn-registro:hover {
    background-color: #d4af37;
    color: #000 !important;
}

.contenido-principal {
    min-height: calc(100vh - 200px);
    padding: 0;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #000000;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #000000;
}

/* Catálogo */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.producto-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    border-color: #d4af37;
}

.producto-imagen {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.producto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.producto-info .btn {
    margin-top: 10px;
    /* Espacio entre precio y botón */
}

.producto-info .precio-contenedor,
.producto-info>.producto-precio {
    margin-top: auto;
}

.producto-info h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #000000;
}

.producto-marca {
    color: #666666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.producto-precio {
    font-size: 1.4em;
    color: #d4af37;
    font-weight: 700;
    margin: 10px 0;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-size: 1em;
}

.btn-primario {
    background-color: #d4af37;
    color: #000000;
}

.btn-primario:hover {
    background-color: #b89530;
    transform: scale(1.05);
}

.btn-secundario {
    background-color: #666666;
    color: #ffffff;
}

.btn-secundario:hover {
    background-color: #444444;
}

.btn-eliminar {
    background-color: #c41e3a;
    color: #ffffff;
    padding: 8px 15px;
    font-size: 0.9em;
}

.btn-eliminar:hover {
    background-color: #a01829;
}

.btn-grande {
    font-size: 1.1em;
    padding: 15px 35px;
}

/* Detalle de producto */
.producto-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.producto-detalle-imagen {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-detalle-imagen img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.producto-detalle-imagen img:hover {
    transform: scale(1.05);
}

.producto-detalle-info h1 {
    border: none;
    margin-bottom: 15px;
}

.marca-detalle {
    font-size: 1.1em;
    color: #666666;
    margin-bottom: 10px;
}

.precio-detalle {
    font-size: 2em;
    color: #d4af37;
    font-weight: 700;
    margin: 20px 0;
}

.producto-descripcion {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.formulario-agregar {
    margin-top: 30px;
}

.form-grupo {
    margin-bottom: 20px;
}

.form-grupo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
}

.form-grupo select,
.form-grupo input,
.form-grupo textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-grupo select:focus,
.form-grupo input:focus,
.form-grupo textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.form-grupo textarea {
    resize: vertical;
    min-height: 100px;
}

.producto-stock {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

/* Carrito */
.carrito-vacio {
    text-align: center;
    padding: 60px 20px;
}

.carrito-vacio p {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #666666;
}

/* ========================================
   CARRITO - ESTILOS BASE (DESKTOP)
   ======================================== */
.tabla-carrito {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: table; /* FORZAR TABLA EN DESKTOP */
}

.tabla-carrito th,
.tabla-carrito td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tabla-carrito th {
    background-color: #000000;
    color: #d4af37;
    font-weight: 600;
}

.tabla-carrito tbody tr:hover {
    background-color: #f9f9f9;
}

.carrito-producto {
    display: flex;
    align-items: center;
    gap: 15px;
}

.carrito-producto img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.input-cantidad {
    width: 70px;
    padding: 8px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
}

.subtotal,
.total-carrito {
    font-weight: 700;
    color: #d4af37;
    font-size: 1.1em;
}

.carrito-acciones {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

/* Checkout */
.checkout-contenedor {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.checkout-formulario h2,
.checkout-resumen h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #000000;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

.metodo-pago {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

#paypal-button-container {
    margin-top: 15px;
    min-height: 50px;
}

.checkout-resumen {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.resumen-items {
    margin: 20px 0;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.resumen-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 3px solid #d4af37;
    font-size: 1.3em;
    color: #d4af37;
}

/* ========================================
   FOOTER - DISEÑO ELEGANTE Y MINIMALISTA
   ======================================== */
.footer-principal {
    background-color: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    color: #666;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-contenido {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-seccion h3 {
    color: #d4af37;
    margin-bottom: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-seccion p {
    color: #888;
    margin-bottom: 10px;
    font-size: 0.9em;
    line-height: 1.6;
}

.redes-sociales {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.redes-sociales a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.85em;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}

.redes-sociales a:hover {
    color: #d4af37;
    border-bottom-color: #d4af37;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
    color: #555;
    font-size: 0.85em;
    letter-spacing: 0.05em;
}

/* ========================================
   RESPONSIVE - HEADER Y FOOTER
   ======================================== */
@media (max-width: 1024px) {
    .header-principal .contenedor {
        padding: 15px 20px;
    }

    .navegacion {
        gap: 3px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.75em;
    }

    .logo-imagen {
        width: 45px;
        height: 45px;
    }

    .logo-texto {
        font-size: 1.1em;
    }

    .slogan-texto {
        font-size: 0.45em;
    }
}

@media (max-width: 768px) {
    .catalogo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .producto-detalle {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .checkout-contenedor {
        grid-template-columns: 1fr;
    }

    .tabla-carrito th,
    .tabla-carrito td {
        padding: 10px 8px;
    }

    .carrito-producto {
        flex-direction: column;
        align-items: flex-start;
    }

    .carrito-producto img {
        width: 50px;
        height: 50px;
    }

    .carrito-acciones {
        flex-direction: column;
        gap: 15px;
    }

    .carrito-acciones .btn {
        width: 100%;
    }

    h1 {
        font-size: 2em;
    }

    .footer-contenido {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 0;
    }

    .dropdown-content::before {
        display: none; /* Ocultar flecha en móvil */
    }

    .nav-dropdown::after {
        display: none; /* Ocultar pseudo-elemento en móvil */
    }

    .nav-dropdown:hover .dropdown-content {
        display: block;
    }
}

@media (max-width: 480px) {
    .producto-precio {
        font-size: 1.2em;
    }

    .precio-detalle {
        font-size: 1.6em;
    }

    .tabla-carrito {
        font-size: 0.75em;
    }
    

    .navegacion a {
        font-size: 0.9em;
    }

    .logo-imagen {
        width: 45px;
        height: 45px;
    }

    .logo-texto {
        font-size: 1.2em;
    }

}

/* Botón de registro destacado */
.btn-registro {
    background-color: #d4af37 !important;
    color: #000 !important;
    padding: 8px 16px !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
}

.btn-registro:hover {
    background-color: #b89530 !important;
}

/* ========================================
   MEJORAS PARA CATÁLOGO
   ======================================== */

.catalogo-header {
    text-align: center;
    margin: 40px 0;
}

.catalogo-header h1 {
    font-size: 2.8em;
    color: #000;
    margin-bottom: 10px;
    border: none;
}

.subtitulo {
    color: #666;
    font-size: 1.2em;
}

/* Filtros de categoría */
.filtros-categoria {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 30px 0 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.filtro-btn {
    padding: 10px 20px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
}

.filtro-btn:hover {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.filtro-btn.active {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
}

.filtro-especial {
    background: linear-gradient(135deg, #d4af37, #b89530);
    color: #000;
    border-color: #d4af37;
}

.filtro-especial:hover {
    background: linear-gradient(135deg, #b89530, #d4af37);
}

/* Badges en productos */
.producto-card {
    position: relative;
}

.badge-nuevo,
.badge-destacado {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    z-index: 10;
}

.badge-nuevo {
    background: #28a745;
    color: white;
}

.badge-destacado {
    background: #d4af37;
    color: #000;
}

/* Precios con descuento */
.precio-contenedor {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.precio-anterior {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
}

.descuento-badge {
    background: #c41e3a;
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 700;
}

/* Estilos de descuento para el carrito */
.precio-carrito-descuento {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.precio-anterior-carrito {
    text-decoration: line-through;
    color: #888;
    font-size: 0.85em;
}

.precio-actual-carrito {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1em;
}

.descuento-badge-carrito {
    background: linear-gradient(135deg, #c41e3a, #a01830);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
}

.ahorro-carrito {
    display: block;
    color: #28a745;
    font-size: 0.8em;
    font-weight: 600;
    margin-top: 5px;
}

/* Sin productos */
.sin-productos {
    text-align: center;
    padding: 80px 20px;
}

.sin-productos p {
    font-size: 1.5em;
    color: #666;
    margin-bottom: 30px;
}

/* ========================================
   SLIDER DE IMÁGENES
   ======================================== */

.slider-seccion {
    position: relative;
    width: 100%;
    height: clamp(530px, calc(100vh - 130px), 830px);
    overflow: hidden;
    background: #000;
    margin: 0 0 20px 0;
    padding: 0;
}

.slider-contenedor {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.activo {
    opacity: 1;
    z-index: 10;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-contenido {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
    z-index: 20;
}

.slide-contenido h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #d4af37;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.slide-contenido p {
    font-size: 1.2em;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Botones de navegación */
.slider-anterior,
.slider-siguiente {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.8);
    color: #000;
    border: none;
    font-size: 2em;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
    border-radius: 5px;
}

.slider-anterior:hover,
.slider-siguiente:hover {
    background: #d4af37;
    transform: translateY(-50%) scale(1.1);
}

.slider-anterior {
    left: 20px;
}

.slider-siguiente {
    right: 20px;
}

/* Indicadores (puntos) */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.activo {
    background: #d4af37;
    width: 30px;
    border-radius: 6px;
}

.slider-dot:hover {
    background: rgba(212, 175, 55, 0.8);
}

/* ========================================
   CATÁLOGO DE CATEGORÍAS
   ======================================== */

.catalogo-seccion {
    padding: 40px 0;
}

.catalogo-categoria {
    margin-bottom: 80px;
}

.catalogo-categoria h2 {
    font-size: 2em;
    color: #000;
    margin-bottom: 25px;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    width: 100%;
}

/* Grid mejorado */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Descripción corta */
.producto-descripcion-corta {
    font-size: 0.95em;
    color: #666;
    line-height: 1.4;
    margin: 10px 0;
    min-height: 40px;
}

/* Responsive slider */
@media (max-width: 768px) {
    .slider-seccion {
        height: 300px;
    }

    .slide-contenido h2 {
        font-size: 1.8em;
    }

    .slide-contenido p {
        font-size: 1em;
    }

    .slider-anterior,
    .slider-siguiente {
        font-size: 1.5em;
        padding: 10px 15px;
    }

    .catalogo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .slider-seccion {
        height: 200px;
        margin-bottom: 30px;
    }

    .slide-contenido {
        bottom: 20px;
        left: 20px;
    }

    .slide-contenido h2 {
        font-size: 1.4em;
    }

    .catalogo-grid {
        grid-template-columns: 1fr;
    }
}

/* Clases para marca/logo */
.logo-titulo,
.marca-principal {
    font-family: 'Libre Bodoni', serif;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* ========================================
   PÁGINA DE DETALLE DEL PRODUCTO
   ======================================== */
.producto-detalle-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.producto-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Imagen del producto */
.producto-imagen {
    position: sticky;
    top: 100px;
}

.producto-imagen img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Información del producto */
.producto-info {
    padding: 20px 0;
}

.producto-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* MODELO Y DESCRIPCIÓN CORTA (Área del cuadro rojo) */
.producto-modelo-descripcion {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #d4af37;
}

.producto-modelo {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

.producto-modelo strong {
    color: #000;
    font-weight: 600;
}

.producto-descripcion-corta {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Metadata (categoría y stock) */
.producto-metadata {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.producto-categoria,
.producto-stock {
    font-size: 14px;
    margin: 0;
}

.producto-categoria strong,
.producto-stock strong {
    color: #000;
    font-weight: 600;
}

.producto-categoria span {
    color: #d4af37;
    font-weight: 500;
}

.en-stock span {
    color: #28a745;
    font-weight: 600;
}

.sin-stock span {
    color: #dc3545;
    font-weight: 600;
}

/* PRECIO - Negro y Subrayado */
.producto-precio-contenedor {
    margin-bottom: 30px;
}

.producto-precio {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    /* Negro */
    text-decoration: underline;
    /* Subrayado */
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    margin: 0;
}

/* ========================================
   SELECTOR DE TALLAS - Estilo Nike
   ======================================== */
.producto-tallas-seccion {
    margin-bottom: 30px;
}

.tallas-titulo {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.tallas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.talla-btn {
    padding: 15px 10px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Libre Bodoni', serif;
}

.talla-btn:hover:not(.talla-agotada) {
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.talla-btn.talla-seleccionada {
    border-color: #000;
    background: #000;
    color: #fff;
    font-weight: 600;
}

.talla-btn.talla-agotada {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
    background: #f5f5f5;
}

.talla-us {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.talla-seleccionada .talla-us {
    color: #ccc;
}

/* Formulario y cantidad */
.producto-form {
    margin-bottom: 30px;
}

.cantidad-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.cantidad-label {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.cantidad-input {
    width: 80px;
    padding: 10px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    font-family: 'Libre Bodoni', serif;
}

.cantidad-input:focus {
    outline: none;
    border-color: #000;
}

/* Botón agregar al carrito */
.btn-agregar-carrito {
    width: 100%;
    padding: 18px;
    background: #d4af37;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Libre Bodoni', serif;
    letter-spacing: 0.5px;
}

.btn-agregar-carrito:hover {
    background: #b38f48;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 160, 84, 0.4);
}

.btn-agregar-carrito:active {
    transform: translateY(0);
}

/* ========================================
   DESCRIPCIÓN DESPLEGABLE (ACORDEÓN)
   ======================================== */
.producto-descripcion-completa {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.descripcion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    font-family: 'Libre Bodoni', serif;
    transition: all 0.3s ease;
}

.descripcion-toggle span {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    /* Negro como solicitaste */
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

.descripcion-toggle:hover span {
    color: #333;
}

.icono-flecha {
    transition: transform 0.3s ease;
    color: #000;
}

.descripcion-toggle.activo .icono-flecha {
    transform: rotate(180deg);
}

.descripcion-contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
}

.descripcion-contenido.mostrar {
    max-height: 1000px;
    padding: 25px 20px;
}

.descripcion-contenido p {
    font-size: 15px;
    line-height: 1.8;
    color: #000;
    /* Negro */
    margin: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .producto-detalle {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .producto-imagen {
        position: relative;
        top: 0;
    }

    .producto-titulo {
        font-size: 24px;
    }

    .producto-precio {
        font-size: 28px;
    }

    .tallas-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

/* ========================================
   UNIFICACIÓN DE COLOR DORADO #d4af37
   Todos los elementos dorados usan este color
   ======================================== */

/* Slogan rotativo en header */
.slogan-rotativo {
    font-size: 0.85em;
    color: #d4af37;
    font-style: normal;
    font-weight: 400;
    min-height: 24px;
    margin-top: 5px;
    letter-spacing: 0.1em;
    font-family: 'Libre Bodoni', serif;
    text-transform: uppercase;
}

.slogan-texto {
    animation: fadeInOut 5s infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

/* Logo imagen más grande */
.logo-imagen {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

/* Botón de registro destacado */
.btn-registro {
    background: linear-gradient(135deg, #d4af37, #b89530) !important;
    color: #000000 !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-weight: 500 !important;
    margin-left: 10px !important;
    font-family: 'Libre Bodoni', serif;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-registro:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
}

/* Títulos principales en dorado */
h1, h2 {
    color: #d4af37;
    font-family: 'Libre Bodoni', serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Navegación */
.nav-link {
    font-family: 'Libre Bodoni', serif;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.dropdown-content a {
    font-family: 'Libre Bodoni', serif;
    font-weight: 400;
}

/* ========================================
   MIS PEDIDOS - DESKTOP (SOLO TABLA)
   ======================================== */
.pedidos-tabla-desktop {
    display: block;
}

.pedidos-cards-mobile {
    display: none;
}

/* ========================================
   CARRITO - DESKTOP (SOLO TABLA)
   ======================================== */
.carrito-cards-mobile {
    display: none !important; /* OCULTO EN DESKTOP - Solo se muestra en móvil */
    visibility: hidden !important;
}

/* Asegurar que la tabla se muestre en desktop */
@media (min-width: 769px) {
    .tabla-carrito,
    table.tabla-carrito {
        display: table !important;
        visibility: visible !important;
    }
    
    .carrito-cards-mobile {
        display: none !important;
        visibility: hidden !important;
    }
    
    .pedidos-tabla-desktop {
        display: block !important;
        visibility: visible !important;
    }
    
    .pedidos-cards-mobile {
        display: none !important;
        visibility: hidden !important;
    }
}