/* Variables */
:root {
    --primary: #2196F3;
    --primary-dark: #287CBF;
    --secondary: #2196F3;
    --danger: #f44336;
    --text: #333;
    --text-light: #666;
    --border: #ddd;
    --bg-light: #f8f9fa;
    --white: #fff;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #f5f5f5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


    /* ============================================
   HEADER - RESPONSIVE CON CARRITO VISIBLE
   ============================================ */

/* Header base */
.header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 968px) {
    .logo-img {
        height: 62px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 48px;
    }
}

.logo a:hover {
    opacity: 0.8;
}

/* Navegación desktop */
.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.nav a:hover {
    color: var(--primary);
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #25D366;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* Mobile toggle button - oculto por defecto */
.mobile-menu-toggle {
    display: none;
}

/* ============================================
   MOBILE STYLES
   ============================================ */
@media (max-width: 968px) {
    .header {
        padding: 12px 0;
    }
    
    .header .container {
        position: relative;
    }
    
    /* Logo más pequeño en mobile */
    .logo {
        font-size: 20px;
    }
    
    /* Navegación principal - oculta en mobile excepto carrito */
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        max-height: 400px;
    }
    
    .nav a {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        display: block;
    }
    
    /* Carrito - SIEMPRE VISIBLE en mobile */
    .nav a[href="cart.php"] {
        position: fixed;
        top: 12px;
        right: 70px;
        width: auto;
        padding: 8px 12px;
        background: var(--primary);
        color: white !important;
        border-radius: 20px;
        font-size: 14px;
        border: none;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
        z-index: 101;
    }
    
    /* Botón de menú mobile */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        position: fixed;
        right: 20px;
        top: 10px;
        z-index: 101;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--primary);
        display: block;
        margin: 3px 0;
        transition: all 0.3s;
        border-radius: 2px;
    }
    
    /* Animación del icono cuando está activo */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Ajustes extra para pantallas muy pequeñas */
@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
    
    .nav a[href="cart.php"] {
        right: 60px;
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .mobile-menu-toggle {
        right: 15px;
        width: 35px;
        height: 35px;
    }
}


/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0 50px;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-form {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    outline: none;
    min-width: 0;
}

.search-form input::placeholder {
    color: #999;
}

.search-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 30px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Categories Section */
.categories-section {
    padding: 50px 0;
    background: white;
}

.categories-section .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-card {
    background: #F8F9FA;
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    text-decoration: none;
    cursor: pointer;
}

.category-card:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.category-card.active {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.15);
}

.category-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

.category-card h3 {
    font-size: 16px;
    margin: 8px 0 5px;
    color: #2C3E50;
    font-weight: 600;
}

.category-card p {
    font-size: 13px;
    color: #7F8C8D;
    margin: 0;
    font-weight: 500;
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 700;
}

.products-section .section-title {
    text-align: left;
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-secondary {
    background: #95A5A6;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #7F8C8D;
}

.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products h3 {
    margin: 20px 0 10px;
    color: var(--text);
    font-size: 24px;
}

.no-products p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 12px 12px 0 0;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    padding: 10px;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
}

.shipping-badge {
    position: absolute;
    top: 50px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    display: inline-block;
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.star {
    color: #ddd;
    font-size: 16px;
}

.star.filled {
    color: #FFC107;
}

.review-count {
    font-size: 13px;
    color: var(--text-light);
    margin-left: 5px;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 14px;
}

.final-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
    white-space: nowrap;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* PRODUCTS ACTIONS */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.product-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy-now {
    background: #10b981;
    color: white;
}

.btn-buy-now:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-details {
    background: #667eea;
    color: white;
}

.btn-details:hover {
    background: #5568d3;
}

@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
}


/* Footer */
.footer {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: var(--white);
    padding: 60px 20px 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.payment-methods-footer {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-bottom p {
    margin: 8px 0;
    opacity: 0.8;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        padding: 40px 20px 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        z-index: 99;
    }
    
    .nav.active {
        display: flex;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .hero-search {
        padding: 0 15px;
    }
    
    .search-form input {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .search-form button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .categories-section {
        padding: 40px 0;
    }
    
    .categories-section .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 0 15px;
    }
    
    .category-card {
        padding: 18px 10px;
        min-height: 120px;
    }
    
    .category-icon {
        font-size: 40px;
        margin-bottom: 8px;
    }
    
    .category-card h3 {
        font-size: 14px;
        margin: 6px 0 4px;
    }
    
    .category-card p {
        font-size: 12px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .products-section {
        padding: 40px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .final-price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 20px;
        padding: 0 15px;
    }
    
    .hero p {
        font-size: 14px;
        padding: 0 15px;
    }
    
    .search-form input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-form button {
        padding: 10px 15px;
    }
    
    .search-form button span {
        display: none;
    }
    
    .categories-section {
        padding: 30px 0;
    }
    
    .categories-section .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 15px;
    }
    
    .category-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .category-card {
        min-height: 110px;
        padding: 15px 10px;
    }
    
    .category-card h3 {
        font-size: 13px;
        margin: 5px 0 3px;
    }
    
    .category-card p {
        font-size: 11px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* ============================================
   ESTILOS PÁGINA DE PRODUCTO
   ============================================ */

/* Product Page Container */
.product-page {
    padding: 40px 0;
    background: #f5f5f5;
}

/* Product Layout - 2 columnas */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
    background: white;
    padding: 30px;
    border-radius: 12px;
}

/* Galería de Producto */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f0f0f0;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.discount-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f44336;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    z-index: 10;
}

/* Galería de Miniaturas */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.thumbnail {
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #2196F3;
    transform: scale(1.05);
}

/* Detalles del Producto */
.product-details {
    padding: 20px 0;
}

.product-title-main {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.product-rating-large {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.product-rating-large .star {
    font-size: 24px;
}

.rating-number {
    font-size: 18px;
    font-weight: bold;
    margin-left: 5px;
    color: #333;
}

/* Sección de Precios */
.product-price-section {
    margin-bottom: 25px;
}

.price-original {
    text-decoration: line-through;
    color: #666;
    font-size: 20px;
    margin-bottom: 5px;
}

.price-current {
    font-size: 42px;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 8px;
    line-height: 1;
}

.savings {
    color: #f44336;
    font-weight: 600;
    font-size: 16px;
}

/* Descripción */
.product-description {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-description h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.product-description p {
    color: #666;
    line-height: 1.6;
}

/* Beneficios */
.product-benefits {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #E8F5E9;
    border-radius: 6px;
}

.benefit svg {
    color: #2196F3;
    stroke-width: 3;
    flex-shrink: 0;
}

.benefit span {
    color: #333;
    font-weight: 500;
}

/* Botón de Ordenar */
.btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2196F3;
    color: white;
    padding: 18px 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s;
    width: 100%;
    margin: 25px 0;
}

.btn-order:hover {
    background: #287CBF;
    transform: scale(1.02);
}

.btn-order svg {
    stroke-width: 3;
}

/* Trust Badges */
.trust-badges {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 20px;
}

.trust-badges p {
    color: #666;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2196F3;
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.summary-row.total {
    font-size: 22px;
    font-weight: bold;
    color: #2196F3;
    padding-top: 12px;
    border-top: 2px solid #ddd;
    margin-top: 12px;
}

.btn-submit {
    width: 100%;
    background: #2196F3;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #287CBF;
}

.form-note {
    text-align: center;
    color: #666;
    margin-top: 10px;
    font-size: 14px;
}

/* Confirmation Page */
.confirmation-page {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.confirmation-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.success-icon {
    margin-bottom: 25px;
}

.confirmation-box h1 {
    color: #2196F3;
    font-size: 36px;
    margin-bottom: 15px;
}

.order-number {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
}

.confirmation-message {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.next-steps {
    text-align: left;
    margin: 30px 0;
    padding: 25px;
    background: #E3F2FD;
    border-radius: 8px;
}

.next-steps h3 {
    margin-bottom: 15px;
    color: #2196F3;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.next-steps li:last-child {
    border-bottom: none;
}

.confirmation-actions {
    margin-top: 30px;
}

/* Responsive para Producto */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-title-main {
        font-size: 24px;
    }
    
    .price-current {
        font-size: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px auto;
        padding: 25px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .product-title-main {
        font-size: 20px;
    }
    
    .price-current {
        font-size: 28px;
    }
    
    .btn-order {
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* ========================================
   ESTILOS NUEVOS - AGREGAR AL FINAL
   ======================================== */

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--primary);
    transition: opacity 0.3s;
    text-decoration: none;
}

.breadcrumbs a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: #999;
    margin: 0 5px;
}

.breadcrumbs .current {
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* Badge de Categoría en Producto */
.product-category-badge {
    margin-bottom: 15px;
}

.product-category-badge a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.product-category-badge a:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.category-icon-large {
    font-size: 24px;
    line-height: 1;
}

.product-category-badge span {
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

/* Responsive para Breadcrumbs - Agregar dentro de @media (max-width: 768px) */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 12px 0;
    }
    
    .breadcrumbs .container {
        font-size: 13px;
        padding: 0 15px;
    }
    
    .breadcrumbs .current {
        max-width: 150px;
    }
    
    .product-category-badge {
        margin-bottom: 12px;
    }
    
    .product-category-badge a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .category-icon-large {
        font-size: 20px;
    }
}

/* Responsive para móviles pequeños - Agregar dentro de @media (max-width: 480px) */
@media (max-width: 480px) {
    .breadcrumbs .container {
        font-size: 12px;
    }
    
    .breadcrumbs .current {
        max-width: 120px;
    }
    
    .product-category-badge a {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .category-icon-large {
        font-size: 18px;
    }
}

/* ========================================
   ESTILOS DE RESEÑAS - AGREGAR AL FINAL DE style.css
   ======================================== */

/* Sección de Reseñas */
.reviews-section {
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.reviews-title {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 30px;
    text-align: center;
}

/* Resumen de Rating */
.reviews-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
}

.rating-overview {
    text-align: center;
}

.rating-number {
    font-size: 64px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.rating-stars-large {
    margin-bottom: 10px;
}

.star-large {
    font-size: 32px;
    color: #ddd;
    margin: 0 2px;
}

.star-large.filled {
    color: #FFC107;
}

.rating-count {
    color: var(--text-light);
    font-size: 14px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin: 5px 0;
}

/* Formulario de Reseña */
.review-form-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.review-form-section h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text);
}

.review-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.review-form small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 13px;
}

/* Sistema de Estrellas Interactivo */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    font-size: 40px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
    margin: 0;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #FFC107;
    transform: scale(1.1);
}

.star-rating-input input[type="radio"]:checked ~ label {
    color: #FFC107;
}

/* Lista de Reseñas */
.reviews-list {
    margin-top: 40px;
}

.reviews-list h3 {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--text);
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-reviews p {
    margin: 10px 0;
    font-size: 16px;
}

.review-item {
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    background: white;
    transition: box-shadow 0.3s;
}

.review-item:hover {
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--text);
}

.review-stars {
    display: flex;
    gap: 2px;
}

.star-small {
    font-size: 16px;
    color: #ddd;
}

.star-small.filled {
    color: #FFC107;
}

.review-date {
    color: var(--text-light);
    font-size: 14px;
}

.review-comment {
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-section {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .reviews-title {
        font-size: 24px;
    }
    
    .rating-number {
        font-size: 48px;
    }
    
    .star-large {
        font-size: 24px;
    }
    
    .review-form-section {
        padding: 20px;
    }
    
    .review-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .star-rating-input {
        font-size: 36px;
        gap: 3px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .review-item {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 20px 15px;
    }
    
    .reviews-title {
        font-size: 20px;
    }
    
    .rating-number {
        font-size: 40px;
    }
    
    .star-large {
        font-size: 20px;
    }
    
    .reviews-summary {
        padding: 20px;
    }
    
    .review-form-section {
        padding: 15px;
    }
    
    .star-rating-input {
        font-size: 32px;
    }
}

/* ========================================
   PRODUCTOS RELACIONADOS - AGREGAR AL FINAL
   ======================================== */

.related-products-section {
    margin: 60px 0;
    padding: 40px 0;
    background: var(--bg-light);
    border-radius: 12px;
}

.related-products-section .section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--text);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

/* Responsive para productos relacionados */
@media (max-width: 768px) {
    .related-products-section {
        margin: 40px 0;
        padding: 30px 0;
    }
    
    .related-products-section .section-title {
        font-size: 22px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .related-products-section .section-title {
        font-size: 20px;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
