/* Modern CSS Reset */

/* 1. Usar un modelo de caja más intuitivo */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. Eliminar márgenes por defecto */
* {
    margin: 0;
    padding: 0;
}

/* 3. Altura completa para html y body */
html, body {
    height: 100%;
}

/* 4. Tipografía base profesional y suavizado de texto */
body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* 5. Mejoras para elementos multimedia */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* 6. Herencia de fuentes para formularios */
input, button, textarea, select {
    font: inherit;
}

/* 7. Evitar desbordamiento de texto */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* 8. Quitar estilos de lista por defecto (común en menús) */
ul, ol {
    list-style: none;
}

/* 9. Enlaces limpios por defecto */
a {
    text-decoration: none;
    color: inherit;
}

/* --- Layout --- */

.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

/* --- Header --- */

.main-header {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: #1a1a1a;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #000;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-left: 1px solid #f0f0f0;
    padding-left: 1.25rem;
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .main-header {
        padding: 0.5rem 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-right {
        gap: 1rem;
    }

    .nav-links {
        display: none; /* Escondido por defecto en móvil */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 1.5rem 20px;
        gap: 1.25rem;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        animation: slideDown 0.3s ease;
    }

    .nav-links.is-active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
    }

    .header-actions {
        border-left: none;
        padding-left: 0;
        gap: 1rem;
    }
}

.action-icon {
    width: 24px;
    height: 24px;
    color: #444;
    transition: color 0.2s ease, transform 0.2s ease;
}

.action-icon:hover {
    color: #000;
    transform: translateY(-1px);
}

.dropdown-trigger svg, .mobile-menu-toggle svg {
    pointer-events: none;
}

/* --- Dropdown --- */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 0.6rem 0;
    margin-top: 0.75rem;
    z-index: 1001;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu a {
    color: #444;
    padding: 0.6rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f8f8f8;
    color: #000;
}

.dropdown-menu .menu-icon {
    width: 18px;
    height: 18px;
    color: #888;
}

.dropdown-menu a:hover .menu-icon {
    color: #000;
}

.dropdown-divider {
    border: 0;
    border-top: 1px solid #f0f0f0;
    margin: 0.5rem 0;
}

.text-danger {
    color: #dc3545 !important;
}

.text-danger:hover {
    background-color: #fff5f5 !important;
}

/* --- Hero Section --- */

.hero-section {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(circle at top, #fcfcfc 0%, #fff 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 2rem;
}

.hero-badge svg {
    color: #ffb800; /* Un color dorado para el destello */
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #000;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

/* --- Hero Search --- */

.search-container {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.hero-search-form {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-search-form:focus-within {
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border-color: #000;
}

.search-input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1rem;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: #aaa;
}

.hero-search-form input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: #000;
}

.btn-primary {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0.8rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-primary:hover {
    background-color: #222;
    transform: translateY(-1px);
}

/* --- Hero Stats --- */

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-item strong {
    font-size: 1.5rem;
    color: #000;
    font-weight: 700;
}

.stat-item span {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: #eee;
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-search-form {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 1rem;
        padding: 0;
    }

    .search-input-wrapper {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        padding: 0.8rem 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #666;
    font-size: 0.95rem;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #888;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #1a1a1a;
}

.footer-social svg {
    width: 22px;
    height: 22px;
}

.footer-links h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #666;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
    color: #1a1a1a;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.85rem;
}

.footer-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart-icon {
    width: 14px;
    height: 14px;
    color: #ff4d4d;
}

/* --- Products Catalog --- */

.products-header, .search-results-header {
    text-align: center;
    padding: 4rem 0 3rem;
}

.search-results-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.results-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: #f0f0f0;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.results-count {
    color: #888;
    font-weight: 500;
    margin-bottom: 2rem;
}

.search-refine {
    max-width: 400px;
    margin: 0 auto;
}

.mini-search-form {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.mini-search-form input {
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.mini-search-form button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.mini-search-form button:hover {
    background: #000;
}

.no-results-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 0;
}

.empty-icon {
    width: 80px;
    height: 80px;
    color: #ddd;
    margin-bottom: 2rem;
}

.no-results-found h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.no-results-found p {
    color: #666;
}

.products-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.products-header .subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: #eee;
}

.product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: #f9f9f9;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffb800;
}

.product-info h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.product-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fcfcfc;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.product-price strong {
    font-size: 1.25rem;
    color: #000;
    font-weight: 800;
}

.btn-card {
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-card:hover {
    background-color: #000;
    transform: scale(1.05);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.no-products, .no-results-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.no-products-icon, .empty-icon {
    width: 80px;
    height: 80px;
    color: #ddd;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

/* --- Dropdown State --- */

.dropdown.is-open .dropdown-menu {
    display: block;
}

.dropdown-menu .menu-icon {
    width: 18px;
    height: 18px;
    color: #888;
}

/* --- Error Pages --- */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 20px;
    min-height: 60vh;
}

.error-icon {
    margin-bottom: 2rem;
}

.huge-icon {
    width: 100px;
    height: 100px;
    color: #ddd;
}

.huge-icon.warning {
    color: #ff4d4d;
    opacity: 0.8;
}

.error-code {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 1rem;
}

.error-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #000;
}

.error-message {
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    background-color: #fff;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    padding: 0.8rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
    transform: translateY(-1px);
}

.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 2rem 15px !important;
    }

    .auth-card {
        padding: 2rem 1.5rem !important;
    }

    .error-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
}

/* --- Auth Pages --- */

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 20px;
    min-height: 80vh;
    background: radial-gradient(circle at top, #fcfcfc 0%, #fff 100%);
}

.auth-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: #f8f8f8;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.auth-icon {
    width: 32px;
    height: 32px;
    color: #1a1a1a;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #888;
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #aaa;
    pointer-events: none;
}

.auth-form .form-control {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
}

.auth-form .form-control:focus {
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.03);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
}

.forgot-password, .auth-footer a {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    transition: opacity 0.2s;
}

.forgot-password:hover, .auth-footer a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.auth-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
    color: #888;
    font-size: 0.9rem;
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.terms-label {
    margin-top: 1rem;
}

/* --- Footer --- */

.main-footer {
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #666;
    font-size: 0.95rem;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #888;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #1a1a1a;
}

.footer-social svg {
    width: 22px;
    height: 22px;
}

.footer-links h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #666;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
    color: #1a1a1a;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.85rem;
}

.footer-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart-icon {
    width: 14px;
    height: 14px;
    color: #ff4d4d;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Legal Pages --- */

.legal-page {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 20px;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-icon {
    width: 64px;
    height: 64px;
    color: #ddd;
    margin: 0 auto 1.5rem;
    display: block;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #000;
}

.last-updated {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: #1a1a1a;
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: #333;
}

.legal-content p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 0.75rem;
    list-style: disc;
}

.legal-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95rem;
}

/* --- Account Page --- */

.account-page {
    padding: 4rem 0;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.account-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    color: #1a1a1a;
}

.profile-avatar svg {
    width: 100%;
    height: 100%;
}

.profile-info h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: #888;
    font-weight: 500;
}

.badge.premium {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fffbeb;
    color: #b45309;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #fef3c7;
}

.content-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.content-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.count-pill {
    background-color: #1a1a1a;
    color: #fff;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.purchases-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.purchase-item {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.purchase-item:hover {
    border-color: #e0e0e0;
    transform: translateY(-4px); /* Consistente con el catálogo */
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.purchase-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.purchase-icon {
    width: 48px;
    height: 48px;
    background-color: #f8f8f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.purchase-icon svg {
    width: 24px;
    height: 24px;
}

.purchase-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.purchase-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.purchase-meta svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-top: -2px;
}

.meta-divider {
    color: #eee;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #1a1a1a;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-download:hover {
    background-color: #000;
}

.btn-download small {
    opacity: 0.6;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
}

.no-file-tag {
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 600;
}

.empty-account {
    text-align: center;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-account .empty-icon {
    width: 80px;
    height: 80px;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.empty-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .purchase-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .purchase-actions {
        width: 100%;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }
}

/* --- Product Detail Page --- */

.product-page {
    padding: 2rem 0 6rem;
}

.product-breadcrumb {
    margin-bottom: 2rem;
}

.product-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    transition: color 0.2s;
}

.product-breadcrumb a:hover {
    color: #000;
}

.product-grid-detail {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 6rem;
}

.product-media {
    width: 100%;
}

.image-container {
    background-color: #f9f9f9;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.main-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.image-placeholder-large {
    background-color: #f9f9f9;
    border-radius: 24px;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
}

.placeholder-icon-large {
    width: 80px;
    height: 80px;
}

.purchase-box {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    padding: 2.5rem;
    border-radius: 24px;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.product-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: #f0f0f0;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.purchase-box h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.price-section .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.price-section .amount {
    font-size: 3rem;
    font-weight: 850;
    color: #000;
    letter-spacing: -0.04em;
}

.price-section .period {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    margin-left: 0.5rem;
}

.product-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
}

.highlight-item svg {
    width: 20px;
    height: 20px;
    color: #10b981;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.purchased-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    color: #166534;
}

.purchased-alert svg {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.purchased-alert p {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.purchased-alert a {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
}

.product-description-full {
    max-width: 800px;
}

.product-description-full .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-description-full .section-title svg {
    width: 24px;
    height: 24px;
    color: #1a1a1a;
}

.product-description-full h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

@media (max-width: 992px) {
    .product-grid-detail {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .purchase-box {
        position: static;
    }
}

/* --- Checkout Page --- */

.checkout-page {
    padding: 4rem 0;
    min-height: 80vh;
    background: radial-gradient(circle at top, #fcfcfc 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-container {
    width: 100%;
    max-width: 540px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.checkout-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.checkout-header p {
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
}

.checkout-card {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}

.checkout-summary {
    background-color: #fafafa;
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.product-item-checkout {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-item-checkout .product-icon {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}

.product-item-checkout .product-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.summary-price {
    text-align: right;
}

.price-total {
    display: block;
    font-size: 1.75rem;
    font-weight: 850;
    color: #000;
    line-height: 1;
}

.price-currency {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
}

.checkout-payment {
    padding: 2.5rem;
}

.payment-instruction {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
}

.paypal-wrapper {
    min-height: 150px;
    margin-bottom: 2rem;
}

.payment-status-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-status-box.processing {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.payment-status-box.success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.payment-status-box.error {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.checkout-security {
    border-top: 1px solid #f5f5f5;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.security-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.security-item svg {
    width: 16px;
    height: 16px;
}

.security-disclaimer {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

.checkout-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    transition: color 0.2s;
}

.btn-back:hover {
    color: #000;
}

@media (max-width: 600px) {
    .checkout-page {
        padding: 2rem 15px;
    }

    .checkout-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .summary-price {
        text-align: left;
    }

    .checkout-payment {
        padding: 1.5rem;
    }
}
