/* ============================================================
   shop.stuffhub.es v2 - Estilos comunes
   ============================================================ */

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

body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

/* Skip link (a11y) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #ff6b35;
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */
.header {
    background-color: #2d2d2d;
    padding: 1rem;
    border-top: 3px solid #ff6b35;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.project-title {
    text-align: center;
    width: 100%;
    padding: 0.5rem;
    background-color: #333;
    border-radius: 8px;
}

.project-title h1 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.project-title p {
    font-size: 0.9rem;
    color: #aaa;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Top bar (lang switcher, ahora son <a>) ---------- */
.top-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.lang-switch {
    display: inline-flex;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #444;
}

.lang-switch a {
    color: #aaa;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a:focus {
    color: #fff;
    outline: none;
}

.lang-switch a[aria-current="true"] {
    background-color: #ff6b35;
    color: #1a1a1a;
}

/* ---------- Menu ---------- */
.menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-btn {
    background-color: #333;
    color: #f0f0f0;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    font-family: inherit;
    display: inline-block;
}

.menu-btn:hover,
.menu-btn:focus {
    background-color: #444;
    transform: translateY(-2px);
    outline: none;
}

/* ---------- Dropdown nativo con <details>/<summary> ---------- */
.dropdown {
    position: relative;
    display: inline-block;
}

/* summary parece un botón, sin marcador triangular */
.dropdown > summary {
    list-style: none;             /* firefox */
    cursor: pointer;
    /* Hereda apariencia de .menu-btn vía clase en HTML */
}
.dropdown > summary::-webkit-details-marker { display: none; } /* safari/chrome */
.dropdown > summary::marker { content: ""; }                    /* chrome/firefox */

.dropdown-content {
    position: absolute;
    background-color: #333;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 10;
    top: 100%;
    left: 0;
    border-radius: 4px;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
    background-color: #ff6b35;
    outline: none;
}

/* ---------- Main ---------- */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
    width: 100%;
}

/* ---------- Página de producto ---------- */
.product-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.product-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: block;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

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

.product-details { flex: 1; min-width: 300px; }

.product-title { font-size: 2rem; margin-bottom: 1rem; }

.product-short-description {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.product-specs {
    background-color: #2d2d2d;
    border-left: 4px solid #ff6b35;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
    gap: 1rem;
}

.spec-item:last-child { border-bottom: none; }

.spec-label { color: #aaa; }
.spec-value { font-weight: 500; text-align: right; }

.price-crypto {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-top: 0.2rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}
.price-crypto .crypto-row { display: block; }
.price-crypto.loading::after { content: "…"; color: #666; margin-left: 0.3rem; }

/* ---------- Long description ---------- */
.product-long-description { margin-bottom: 3rem; color: #ccc; }
.product-long-description h3 { color: #fff; margin-bottom: 1rem; font-size: 1.4rem; }
.product-long-description p { margin-bottom: 1rem; }

/* ---------- Galería ---------- */
.gallery { margin-top: 2rem; }
.gallery-title { margin-bottom: 1.5rem; font-size: 1.4rem; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color: #2d2d2d;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Lightbox (CSS-only :target) ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}
.lightbox:target { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 4px; }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}
.lightbox-close:hover { color: #ff6b35; }

/* ---------- Home ---------- */

/* Hero products - tarjetas grandes con foto protagonista */
.hero-products {
    margin-bottom: 3rem;
}

.hero-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-intro h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-intro p {
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hero-card {
    background-color: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.hero-card:hover,
.hero-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    outline: none;
}

.hero-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #1a1a1a;
}

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

.hero-card:hover .hero-card-image img {
    transform: scale(1.08);
}

.hero-card-title {
    padding: 1rem;
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.benefit {
    background: #2d2d2d;
    border-left: 4px solid #ff6b35;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.benefit-icon {
    width: 36px;
    height: 36px;
    fill: #ff6b35;
    margin-bottom: 0.8rem;
    display: block;
}
.benefit h3 { color: #fff; margin-bottom: 0.5rem; }
.benefit p  { color: #ccc; }

.products-list {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.products-list h2 { color: #fff; margin-bottom: 1.5rem; text-align: center; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #333;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.25s, box-shadow 0.25s;
    display: block;
    color: inherit;
}
.product-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}
.product-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
    object-fit: contain;
}
.product-card span { display: block; color: #eee; font-size: 1rem; }

.cta-block {
    background: #2d2d2d;
    padding: 2rem;
    border: 2px solid #ff6b35;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.cta-block h2 { color: #ff6b35; font-size: 1.8rem; margin-bottom: 0.5rem; }
.cta-block p  { color: #ccc; font-size: 1.05rem; max-width: 700px; margin: 0 auto; }

/* ---------- Cómo comprar ---------- */
.purchase-section {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.purchase-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.purchase-description {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
    text-align: center;
}
.purchase-process {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
    margin-bottom: 0;
    position: relative;
    list-style: none;
    padding: 0;
}
.purchase-process::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 5%;
    width: 90%;
    height: 2px;
    background-color: #ff6b35;
    z-index: 0;
}
.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: calc(25% - 1rem);
    margin-bottom: 2rem;
    min-width: 180px;
}
.step-number {
    width: 40px;
    height: 40px;
    background-color: #ff6b35;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    border: 2px solid #ff6b35;
}
.step-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.step-description { color: #ccc; font-size: 0.9rem; }

.purchase-instructions {
    background-color: #252525;
    border-radius: 8px;
    padding: 1rem;
    margin: 0 0 1.5rem;
    font-size: 0.85rem;
    color: #999;
    border-left: 2px solid #ff6b35;
}

.contact-heading { color: #fff; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.contact-intro   { color: #ccc; margin-bottom: 1rem; }

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.contact-card {
    background-color: #333;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.contact-card h3 { color: #fff; margin-bottom: 0.5rem; }
.contact-card p  { color: #ccc; font-size: 0.95rem; margin-bottom: 1rem; }
.contact-link {
    color: #ff6b35;
    font-weight: 500;
    text-decoration: none;
}
.contact-link:hover { text-decoration: underline; }

/* Easter egg */
#monero-easter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff6b35;
    color: #1a1a1a;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 9999;
    animation: fadeInOut 4s ease-in-out forwards;
}
@keyframes fadeInOut {
    0%   { opacity: 0; transform: scale(0.8); }
    10%  { opacity: 1; transform: scale(1); }
    90%  { opacity: 1; }
    100% { opacity: 0; transform: scale(0.8); }
}

/* ---------- producto5 - dos secciones diferenciadas ---------- */
.page-section {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 12px;
}

.seasonal-section {
    background-color: #2d2d2d;
    border-left: 4px solid #ff6b35;
}

.collab-section {
    background-color: #252525;
    border-left: 4px solid #ffa05c;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.section-subtitle {
    color: #ccc;
    font-size: 1.05rem;
    max-width: 750px;
    margin: 0 auto;
}

.section-outro {
    color: #aaa;
    text-align: center;
    margin-top: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #444, transparent);
    margin: 2.5rem 0;
}

.philosophy-block {
    background-color: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 2rem auto;
    max-width: 700px;
}

.philosophy-title {
    color: #ffa05c;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.philosophy-list {
    list-style: none;
    padding: 0;
}

.philosophy-list li {
    color: #ddd;
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
    line-height: 1.5;
}

.philosophy-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

.examples-title {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    margin: 2rem 0 1rem;
}

.collab-cta {
    background-color: rgba(255, 107, 53, 0.1);
    border: 1px solid #ff6b35;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.collab-cta p {
    color: #f0f0f0;
    margin: 0;
    font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer {
    background-color: #2d2d2d;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
    border-top: 3px solid #ff6b35;
}
.footer h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
}
.contact-icon-container {
    width: 60px;
    height: 60px;
    background-color: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-icon { width: 30px; height: 30px; fill: #1a1a1a; }
.contact-item a:hover { color: #ff6b35; }
.contact-id {
    font-size: 0.8rem;
    color: #aaa;
    word-break: break-all;
    max-width: 180px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.intro-text  { text-align: center; max-width: 800px; margin: 1rem auto; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .menu { flex-direction: column; align-items: center; }
    .product-section { flex-direction: column; }
    .product-image, .product-details { min-width: 100%; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .contact-details { flex-direction: column; gap: 1.5rem; }
    .top-bar { justify-content: center; }
    .purchase-process { flex-direction: column; }
    .purchase-process::before { display: none; }
    .process-step { width: 100%; margin-bottom: 2.5rem; }
    .process-step:not(:last-child) {
        padding-bottom: 1.5rem;
        border-bottom: 1px dashed #555;
    }
    .contact-methods { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
