/* Tipografías alojadas en el propio sitio (public/fonts, licencia SIL OFL):
   no se envía la IP de los visitantes a Google Fonts y la CSP (font-src 'self')
   no necesita excepciones. Subconjunto latino: incluye tildes y ñ. */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/montserrat-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/montserrat-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/open-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/open-sans-latin-400-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/open-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/open-sans-latin-700-normal.woff2') format('woff2');
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #027d6d; /* AA: 5,0:1 sobre blanco (antes #039784, 3,6:1) */
    --secondary-color: #545454;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --border-color: #E0E0E0;
    --text-primary: #545454;
    --text-secondary: #666666; /* AA también sobre --bg-light */
    --success-color: #027d6d;
    --error-color: #D32F2F;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
    line-height: 1.3;
}

h1 {
    font-size: 42px;
    font-weight: 700;
}

h2 {
    font-size: 32px;
    font-weight: 600;
}

h3 {
    font-size: 24px;
    font-weight: 600;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #016558;
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
}

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 580px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay h1 {
    color: white;
    margin-bottom: 10px;
}

.hero-overlay p {
    font-size: 20px;
}

/* Filters */
.filters {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.filters h2 {
    text-align: center;
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Products Grid */
.products {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card.hidden {
    display: none;
}

.product-image {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.product-image img {
    
    
    object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.status-badge.disponible {
    background-color: var(--success-color);
}

.status-badge.vendido {
    background-color: var(--error-color);
}

.product-info {
    padding: 20px;
    
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.product-technique {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #016558;
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Product Detail */
.product-detail {
    padding: 60px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #027d6d;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 30px;
}

/* Proporción fija (la de las fichas, 4:5) para que la foto limpia de la obra
   y las fichas se vean completas y la página no "salte" al cambiar de imagen. */
.detail-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--border-color);
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-info h1 {
    margin-bottom: 20px;
}

.detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.detail-section p {
    line-height: 1.8;
    color: var(--text-primary);
}

.detail-specs {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.spec-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.spec-value {
    color: var(--text-primary);
}

/* Checkout */
.checkout {
    padding: 60px 0;
}

.checkout h1 {
    margin-bottom: 40px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.checkout-form h2 {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 151, 132, 0.25);
}

/* Foco visible para navegación por teclado (accesibilidad) */
a:focus-visible,
button:focus-visible,
.filter-btn:focus-visible,
.product-card a:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.shipping-info,
.payment-info {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.shipping-info h3,
.payment-info h3 {
    margin-bottom: 15px;
}

.shipping-info p,
.payment-info p {
    margin-bottom: 8px;
}

.checkout-summary {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h2 {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

.summary-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Artist Section */
.artist-section {
    padding: 60px 0;
}

.artist-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-top: 40px;
}

.artist-image {
    border-radius: 8px;
    overflow: hidden;
    
}

.artist-image img {
    width: 100%;
    height: auto;
}

.artist-bio h1 {
    margin-bottom: 10px;
}

.artist-bio h2 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 30px;
}

.bio-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.bio-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.bio-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.bio-content li {
    margin-bottom: 8px;
}

/* Contact Page Hero */
.contact-page-hero {
    background: linear-gradient(135deg, #f0fdfb 0%, #e4f5f2 100%);
    padding: 60px 0;
    border-bottom: 1px solid #c6e3de;
    text-align: center;
}

.contact-page-hero h1 {
    margin-bottom: 14px;
    margin-top: 14px;
}

.contact-page-hero p {
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 60px 0 80px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
}

.contact-form-wrapper h2 {
    margin-bottom: 30px;
}

.contact-info {
    background: none;
    padding: 0;
    border-radius: 0;
    height: fit-content;
}

.contact-info h2 {
    margin-bottom: 20px;
}

/* Contact Info Cards */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.card-icon {
    width: 42px;
    height: 42px;
    background: rgba(3,151,132,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.card-body h3 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--secondary-color);
}

.card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2px;
}

.card-body a {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 4px;
}

.card-body a:hover {
    color: #027d6d;
}

.card-body strong {
    color: var(--secondary-color);
}

/* Encargo Banner in Contact */
.encargo-banner {
    background: linear-gradient(135deg, #027d6d, #016558);
    border-radius: 12px;
    padding: 26px 22px;
    margin-top: 8px;
    text-align: center;
}

.encargo-banner h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
}

.encargo-banner p {
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 0;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-primary);
    margin-bottom: 5px;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
}

.faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--bg-white);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--secondary-color);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    line-height: 1.8;
    color: var(--text-primary);
}

/* ===== STATIC PAGE HERO (Terms, FAQ) ===== */
.page-hero {
    background: linear-gradient(135deg, #f0fdfb 0%, #e4f5f2 100%);
    padding: 56px 0;
    border-bottom: 1px solid #c6e3de;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 12px;
    margin-top: 14px;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-hero .last-updated {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== TERMS PAGE ===== */
.terms-section {
    padding: 0 0 80px;
}

.terms-summary {
    background: var(--bg-light);
    padding: 36px 0;
    border-bottom: 1px solid var(--border-color);
}

.terms-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.terms-summary-card {
    background: white;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.terms-summary-card .summary-icon {
    font-size: 26px;
    margin-bottom: 10px;
    line-height: 1;
}

.terms-summary-card h3 {
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.terms-summary-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.terms-body {
    padding: 60px 0;
}

.terms-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 56px;
    align-items: start;
}

.terms-toc {
    position: sticky;
    top: 100px;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 22px;
    border: 1px solid var(--border-color);
}

.terms-toc h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.terms-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.terms-toc a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 7px 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s ease, padding-left 0.2s ease;
    line-height: 1.4;
}

.terms-toc ul li:last-child a {
    border-bottom: none;
}

.terms-toc a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.terms-block {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border-color);
}

.terms-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-block-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.terms-block-icon {
    width: 38px;
    height: 38px;
    background: rgba(3,151,132,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.terms-block h2 {
    font-size: 19px;
    margin: 0;
    color: var(--secondary-color);
}

.terms-block h3 {
    font-size: 15px;
    margin-top: 18px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.terms-block p {
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 15px;
}

.terms-block ul {
    margin-left: 20px;
    margin-bottom: 14px;
}

.terms-block li {
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
}

.terms-closing {
    background: linear-gradient(135deg, #027d6d, #016558);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    margin-top: 40px;
}

.terms-closing p {
    color: rgba(255,255,255,0.92);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ===== FAQ PAGE – PROFESSIONAL REDESIGN ===== */
.faq-section {
    padding: 0 0 80px;
}

.faq-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 52px;
    align-items: start;
    padding: 60px 0;
}

/* Sticky Sidebar */
.faq-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-nav {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 22px;
    border: 1px solid var(--border-color);
}

.faq-nav > h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-family: 'Montserrat', sans-serif;
}

.faq-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.faq-nav-link:hover {
    background: rgba(3,151,132,0.09);
    color: var(--primary-color);
}

.faq-nav-count {
    margin-left: auto;
    background: var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
}

.faq-quick-contact {
    background: linear-gradient(135deg, #027d6d, #016558);
    border-radius: 12px;
    padding: 22px;
    text-align: center;
}

.faq-quick-contact h3 {
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
}

.faq-quick-contact p {
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    margin-bottom: 14px;
    line-height: 1.55;
}

/* Main content area */
.faq-main {
    min-width: 0;
}

.faq-group {
    margin-bottom: 40px;
}

.faq-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.faq-group-badge {
    background: var(--primary-color);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.faq-group-header h2 {
    font-size: 17px;
    color: var(--secondary-color);
    margin: 0;
}

/* Enhanced FAQ item states */
.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(3,151,132,0.15), 0 2px 12px rgba(3,151,132,0.07);
}

.faq-question {
    padding: 17px 20px;
}

.faq-question span {
    font-size: 15px;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.2s ease;
}

.faq-item.active .faq-question span {
    color: var(--primary-color);
}

.faq-answer p {
    padding: 2px 20px 18px;
    line-height: 1.78;
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
}

.faq-answer a {
    color: var(--primary-color);
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.faq-answer a:hover {
    opacity: 0.8;
}

/* Bottom CTA */
.faq-bottom-cta {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px;
    text-align: center;
    margin-top: 40px;
}

.faq-bottom-cta h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.faq-bottom-cta p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 22px;
    line-height: 1.6;
}

.faq-bottom-cta .btn-primary {
    display: inline-block;
    width: auto;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 15px;
}

/* Terms Section */

.last-updated {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.terms-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.terms-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
}

.terms-content p {
    margin-bottom: 15px;
}

.terms-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.terms-content li {
    margin-bottom: 10px;
}

.terms-footer {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 0 16px;
    margin-top: 60px;
    font-size: 14px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.5fr;
    gap: 32px;
    margin-bottom: 28px;
}

.footer-section h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-section > a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.footer-section > a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.social-link:hover {
    color: white;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

/* Newsletter: campos apilados, de ancho completo y con etiqueta visible */
.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
}

.footer-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-field label {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.footer-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: #fff;
    color: var(--text-primary);
    font-size: 15px;
}

.footer-input::placeholder {
    color: #767676;
}

.footer-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

/* Verificación: pregunta y respuesta en una sola línea */
.footer-captcha {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.footer-captcha label {
    font-weight: 400;
}

.footer-input-small {
    width: 72px;
    padding: 7px 10px;
}

.footer-newsletter-btn {
    padding: 12px 24px;
    font-size: 15px;
}

.footer-consent {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

.footer-consent input {
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-consent a {
    color: #fff;
    text-decoration: underline;
}

.footer-error {
    color: #ffb4b4;
    font-size: 12px;
    margin: 0;
}

.footer-newsletter-success {
    color: #7CE0C6;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== HERO TEXT CONTENT ===== */
.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    background: rgba(3, 151, 132, 0.85);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-content h1 {
    color: white;
    font-size: 50px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-content > p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    margin-bottom: 32px;
    line-height: 1.65;
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--primary-color);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 18px rgba(3,151,132,0.55);
}

.hero-cta:hover {
    background-color: #016558;
    transform: translateY(-2px);
    color: white;
}

/* ===== ARTIST TEASER - HOMEPAGE ===== */
.artist-teaser {
    background: linear-gradient(135deg, #f0fdfb 0%, #e4f5f2 100%);
    padding: 48px 0;
    border-bottom: 1px solid #c6e3de;
}

.artist-teaser-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 36px;
}

.artist-teaser-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(3,151,132,0.3);
}

.artist-teaser-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.artist-teaser-text h2 {
    font-size: 24px;
    margin-bottom: 4px;
    color: var(--secondary-color);
}

.artist-teaser-text .speciality {
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
}

.artist-teaser-text p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 560px;
    line-height: 1.7;
}

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background-color: var(--primary-color);
    padding: 26px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== ARTIST PAGE HERO ===== */
.artist-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.artist-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(3,151,132,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.artist-hero-content {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.artist-hero-photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.artist-hero-photo img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center top;
}

.artist-hero-info {
    color: white;
}

.artist-hero-tag {
    display: inline-block;
    background: rgba(3,151,132,0.3);
    border: 1px solid rgba(3,151,132,0.6);
    color: #5ee8d8;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: inline-block;
}

.artist-hero-info h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 8px;
    line-height: 1.1;
}

.artist-hero-subtitle {
    color: #5ee8d8;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 24px;
    display: block;
}

.artist-hero-bio {
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 36px;
}

.artist-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 28px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #5ee8d8;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== TECHNIQUE SECTION ===== */
.technique-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    background: rgba(3,151,132,0.1);
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
    display: inline-block;
}

.section-header h2 {
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.technique-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.technique-card {
    background: white;
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.technique-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.technique-card.featured {
    background: linear-gradient(135deg, #027d6d, #016558);
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(3,151,132,0.35);
}

.technique-icon {
    font-size: 44px;
    margin-bottom: 18px;
    line-height: 1;
}

.technique-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.technique-card.featured h3 {
    color: white;
}

.technique-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.technique-card.featured p {
    color: rgba(255,255,255,0.85);
}

.technique-badge {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    color: white;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-top: 18px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* ===== TRAYECTORIA / TIMELINE ===== */
.trayectoria-section {
    padding: 80px 0;
}

.timeline {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    padding-left: 44px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 6px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #c8e6e2);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--secondary-color);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== BIO SECTION ===== */
.bio-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.bio-text p {
    color: var(--text-primary);
    line-height: 1.85;
    margin-bottom: 20px;
    font-size: 15px;
    text-align: justify;
}

.bio-quote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 24px;
    background: white;
    border-radius: 0 8px 8px 0;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.bio-quote p {
    font-style: italic;
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary-color);
}

.bio-highlights {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.bio-highlights h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.highlight-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.highlight-icon {
    width: 36px;
    height: 36px;
    background: rgba(3,151,132,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.highlight-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.highlight-item strong {
    color: var(--secondary-color);
}

/* ===== EXPOSICIONES ===== */
.exposiciones-section {
    padding: 80px 0;
}

.expo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}

.expo-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 28px 28px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.expo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.expo-year {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.expo-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.expo-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== ENCARGOS CTA ===== */
.encargos-cta {
    background: linear-gradient(135deg, #027d6d, #016558);
    padding: 60px 0;
    text-align: center;
}

.encargos-cta h2 {
    color: white;
    margin-bottom: 14px;
}

.encargos-cta > .container > p {
    color: rgba(255,255,255,0.88);
    font-size: 17px;
    margin-bottom: 30px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.btn-white {
    display: inline-block;
    padding: 14px 36px;
    background: white;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-content {
        grid-template-columns: 1fr;
    }

    .checkout-content {
        grid-template-columns: 1fr;
    }

    .artist-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .artist-hero-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .artist-hero-photo img {
        height: 380px;
    }

    .technique-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bio-grid {
        grid-template-columns: 1fr;
    }

    .expo-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .artist-teaser-content {
        grid-template-columns: auto 1fr;
    }

    .terms-layout {
        grid-template-columns: 1fr;
    }

    .terms-toc {
        display: none;
    }

    .terms-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .faq-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .faq-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .artist-teaser-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .artist-teaser-photo {
        margin: 0 auto;
    }

    .artist-teaser-text p {
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .artist-hero-info h1 {
        font-size: 36px;
    }

    .artist-hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .technique-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 32px;
    }

    .expo-grid {
        grid-template-columns: 1fr;
    }

    .terms-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advanced-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .advanced-filters input[type="search"],
    .advanced-filters select {
        flex: 1 1 auto;
        width: 100%;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .hero {
        height: 300px;
    }
    
    /* Marca y enlaces lado a lado; newsletter ocupa la fila completa debajo */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }

    .footer-newsletter-form {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Galería de imágenes en el detalle de producto + lightbox */
.gallery-main {
    cursor: zoom-in;
    position: relative;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.gallery-thumb {
    background-color: #fff;
    box-shadow: inset 0 0 0 1px var(--border-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 12px 16px;
    border-radius: 50%;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px;
    color: #757575;
    margin: 20px 0 10px;
}

.breadcrumbs a {
    color: #757575;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span[aria-current] {
    color: var(--secondary-color, #545454);
}

/* Botones de compartir */
.share-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.share-btn.whatsapp { background-color: #25D366; }
.share-btn.facebook { background-color: #1877F2; }

/* Productos relacionados */
.related-products {
    padding: 60px 0;
    background-color: #F5F5F5;
}

.related-products h2 {
    margin-bottom: 24px;
}

/* Vistos recientemente */
.recently-viewed {
    padding: 40px 0;
}

.recently-viewed h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.recently-viewed-card {
    text-decoration: none;
    color: inherit;
}

.recently-viewed-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.recently-viewed-card .rv-name {
    font-size: 13px;
    margin-top: 6px;
    color: var(--secondary-color, #545454);
}

/* Testimonios */
.testimonials-section {
    padding: 60px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.testimonial-card {
    background: #F5F5F5;
    border-radius: 8px;
    padding: 24px;
}

.testimonial-quote {
    font-style: italic;
    color: var(--secondary-color, #545454);
    margin-bottom: 12px;
}

.testimonial-rating {
    color: #f5a623;
    margin-bottom: 8px;
}

.testimonial-name {
    font-weight: 700;
}

/* Filtros de precio/técnica en la galería */
.advanced-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
    max-width: 780px;
    margin: 28px auto 0;
    padding-top: 26px;
    border-top: 1px solid var(--border-color, #E0E0E0);
}

.filters-submit {
    width: auto;
    height: 44px;
    padding: 0 26px;
    border-radius: 30px;
}

.filters-summary {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

.filters-summary a,
.no-results a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.no-results {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
}

.advanced-filters input,
.advanced-filters select {
    height: 44px;
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 30px;
    background-color: var(--bg-white, #fff);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--text-primary, #545454);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.advanced-filters input[type="search"] {
    flex: 1 1 240px;
    min-width: 200px;
    padding: 0 16px 0 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
}

.advanced-filters select {
    flex: 0 1 190px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0 34px 0 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.advanced-filters input[type="search"]:focus,
.advanced-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 151, 132, 0.15);
}

.advanced-filters input[type="search"]::placeholder {
    color: #767676;
}

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

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}

/* ===== BLOG ===== */
/* Todas las portadas son 16:9 (1600 x 900, ver App\Support\BlogCoverGenerator),
   por eso los contenedores usan exactamente esa proporción: nada se recorta. */

.blog-hero {
    background: linear-gradient(135deg, #f0fdfb 0%, #e4f5f2 100%);
    border-bottom: 1px solid #c6e3de;
    padding: 48px 0 40px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 40px;
    margin: 14px 0 10px;
}

.blog-hero p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* "Síguenos en Instagram" + RSS (discreto, para quien usa lector de feeds) */
.blog-follow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.blog-follow-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    background: #fff;
    border: 1px solid #c6e3de;
    transition: all 0.2s ease;
}

.blog-follow-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.blog-follow-rss {
    padding: 6px 12px;
    color: var(--text-secondary);
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.blog-filter {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid #c6e3de;
    background: #fff;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.blog-filter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.blog-filter.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.blog-section {
    padding: 48px 0 56px;
}

.blog-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}

/* Con 1 o 2 artículos, dos columnas anchas en vez de dejar una vacía */
.blog-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Tarjeta */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--secondary-color);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
}

.blog-card-placeholder img {
    width: 30%;
    height: auto;
    object-fit: contain;
    opacity: 0.6;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 18px;
}

.blog-tag {
    align-self: flex-start;
    display: inline-block;
    background: rgba(3, 151, 132, 0.1);
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-card h3 a {
    color: var(--secondary-color);
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.blog-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.blog-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.blog-card:hover .blog-card-arrow {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.blog-card-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    white-space: nowrap;
}

.blog-card-link:hover {
    text-decoration: underline;
}

/* Artículo destacado: imagen a la izquierda, texto a la derecha */
.blog-card-featured {
    flex-direction: row;
    margin-bottom: 36px;
}

.blog-card-featured .blog-card-image {
    flex: 0 0 58%;
}

.blog-card-featured .blog-card-body {
    justify-content: center;
    padding: 36px 40px;
}

.blog-card-featured h3 {
    font-size: 28px;
    margin-bottom: 14px;
}

.blog-card-featured .blog-card-excerpt {
    flex: 0 0 auto;
    font-size: 16px;
    -webkit-line-clamp: 4;
    margin-bottom: 24px;
}

.blog-card-featured .blog-card-footer {
    border-top: none;
    padding-top: 0;
}

.blog-card-btn {
    width: auto;
    padding: 10px 22px;
}

/* Página del artículo */
.blog-post-header {
    background: linear-gradient(135deg, #f0fdfb 0%, #e4f5f2 100%);
    padding: 28px 0 120px;
}

.blog-post-header .container {
    max-width: 800px;
    text-align: center;
}

.blog-post-header .breadcrumbs {
    text-align: left;
    margin-bottom: 28px;
}

.blog-post-header .blog-tag {
    align-self: auto;
}

.blog-post-header h1 {
    font-size: 40px;
    line-height: 1.2;
    margin: 4px 0 16px;
}

.blog-post-lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 auto 24px;
    max-width: 680px;
}

.blog-byline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.blog-byline strong {
    display: block;
    font-size: 14px;
    color: var(--secondary-color);
}

.blog-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: var(--shadow);
}

.blog-draft-notice {
    background: #fff4e5;
    border: 1px solid #f0b45a;
    color: #8a5300;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* La portada se superpone al encabezado */
.blog-post-cover-wrap {
    max-width: 1040px;
    margin: -96px auto 0;
    padding: 0 20px;
}

.blog-post-cover {
    margin: 0;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    background: var(--secondary-color);
}

.blog-post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-body {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 0 20px;
}

.blog-content {
    font-size: 18px;
    line-height: 1.85;
    color: var(--text-primary);
}

.blog-content > p:first-of-type::first-letter {
    float: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 62px;
    line-height: 0.9;
    font-weight: 700;
    color: var(--primary-color);
    margin: 6px 10px 0 0;
}

.blog-content h2 {
    font-size: 27px;
    margin: 44px 0 14px;
}

.blog-content h3 {
    font-size: 21px;
    margin: 30px 0 10px;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content ul,
.blog-content ol {
    margin: 0 0 22px 22px;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-content li::marker {
    color: var(--primary-color);
}

.blog-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-content blockquote {
    position: relative;
    margin: 36px 0;
    padding: 8px 0 8px 28px;
    border-left: 4px solid var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--secondary-color);
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 12px 0;
}

.blog-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    padding: 18px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.blog-share .share-buttons {
    margin: 0;
}

.blog-author {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin: 36px 0 8px;
    padding: 26px;
    background: var(--bg-light);
    border-radius: 12px;
}

.blog-author img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-author-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.blog-author h2 {
    font-size: 21px;
    margin-bottom: 6px;
}

.blog-author p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Obras mencionadas: misma proporción 4:5 que las fichas del catálogo */
.blog-related-works {
    padding: 56px 0 24px;
}

.blog-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.blog-work-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    color: var(--text-primary);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-work-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.blog-work-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background: var(--secondary-color);
}

.blog-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-work-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px 14px;
    font-size: 13px;
    color: var(--text-secondary);
}

.blog-work-info strong {
    font-size: 15px;
    color: var(--secondary-color);
}

.blog-work-price {
    font-weight: 700;
    color: var(--primary-color);
}

.blog-more {
    background: var(--bg-light);
    margin-top: 48px;
}

/* Encabezado de sección con enlace a la derecha (inicio, artículo) */
.home-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
}

.home-blog-header h2 {
    margin: 10px 0 0;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-card-featured .blog-card-image {
        flex-basis: 50%;
    }

    .blog-card-featured .blog-card-body {
        padding: 24px 28px;
    }

    .blog-card-featured h3 {
        font-size: 23px;
    }
}

@media (max-width: 768px) {
    .blog-hero h1,
    .blog-post-header h1 {
        font-size: 28px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-featured {
        flex-direction: column;
    }

    .blog-card-featured .blog-card-body {
        padding: 20px 22px 22px;
    }

    .blog-card-featured h3 {
        font-size: 21px;
    }

    .blog-post-header {
        padding-bottom: 72px;
    }

    .blog-post-cover-wrap {
        margin-top: -56px;
        padding: 0 16px;
    }

    .blog-post-lead {
        font-size: 17px;
    }

    .blog-content {
        font-size: 16px;
    }

    .blog-content blockquote {
        font-size: 19px;
    }

    .blog-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .home-blog-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ===== AVISO DE COOKIES ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--secondary-color);
    color: #fff;
    padding: 14px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #fff;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.cookie-btn-reject {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.cookie-btn-accept {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
}

/* En celular: texto chico y botones a lo ancho, para tapar lo mínimo */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 12px 16px;
    }

    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .cookie-consent-text {
        font-size: 12.5px;
    }

    .cookie-btn {
        flex: 1;
        padding: 9px 12px;
    }
}


/* ===== FRANJA "DEL BLOG" EN EL INICIO ===== */
.blog-strip {
    padding: 36px 0;
    border-bottom: 1px solid var(--border-color);
}

.blog-strip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.blog-strip-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    margin: 0;
}

.blog-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-strip-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-strip-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.blog-strip-image {
    flex: 0 0 128px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: var(--secondary-color);
}

.blog-strip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-strip-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.blog-strip-text strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.35;
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-strip-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .blog-strip-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .blog-strip-header h2 {
        font-size: 19px;
    }

    .blog-strip-image {
        flex-basis: 104px;
    }
}


/* ===== ACCESIBILIDAD ===== */
/* Enlace "Saltar al contenido": invisible hasta que se navega con teclado */
.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 10000;
    padding: 10px 18px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

main:focus {
    outline: none;
}

/* Foco visible en todos los enlaces y controles al navegar con teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.footer a:focus-visible,
.footer button:focus-visible,
.cookie-consent a:focus-visible,
.cookie-consent button:focus-visible {
    outline-color: #fff;
}

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


/* =====================================================================
   AUDITORÍA RESPONSIVA (celular y tablet)
   Va al final del archivo a propósito: estas reglas deben ganar sobre las
   reglas base declaradas más arriba (ej. .advanced-filters input, que antes
   anulaba su propio ajuste móvil por estar declarada después).
   ===================================================================== */

/* Descripción de la obra: justificada solo en pantallas anchas
   (en angostas deja "ríos" de espacio entre palabras). */
.detail-description {
    text-align: justify;
}

/* Barra fija de compra: solo en celular (ver más abajo). */
.mobile-buy-bar {
    display: none;
}

@media (max-width: 768px) {
    /* --- Campos de formulario: 16px evita que iPhone haga zoom al tocarlos --- */
    input,
    select,
    textarea,
    .form-group input,
    .form-group select,
    .form-group textarea,
    .advanced-filters input,
    .advanced-filters select,
    .footer-input {
        font-size: 16px;
    }

    /* --- Buscador de la galería: antes cada campo medía ~150px de alto --- */
    .advanced-filters input[type="search"],
    .advanced-filters select {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        height: 46px;
    }

    .filters-submit {
        width: 100%;
    }

    /* --- Botones de filtro: chips que se acomodan en filas, no uno por fila --- */
    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .filter-btn {
        width: auto;
        padding: 9px 16px;
        font-size: 14px;
    }

    /* --- Portada: la altura se adapta al texto (antes 300px fijos lo cortaban) --- */
    .hero {
        height: auto;
        min-height: 440px;
    }

    .hero img {
        position: absolute;
        inset: 0;
        /* El banner trae texto y logo propios al centro: en celular se
           encuadra la zona de las pinturas para que no choquen con el título. */
        object-position: left center;
    }

    .hero-overlay {
        position: relative;
        min-height: 440px;
        padding: 48px 0;
    }

    .hero-tag {
        margin-bottom: 14px;
    }

    .hero-content > p {
        margin-bottom: 24px;
    }

    /* --- Áreas táctiles de al menos 44px en controles principales --- */
    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        margin-right: -10px;
    }

    .nav a {
        padding: 12px 0;
    }

    .footer-section > a,
    .footer-legal a {
        display: inline-block;
        padding: 6px 0;
    }

    .footer-section > a {
        display: block;
        margin-bottom: 0;
    }

    .footer-consent input {
        width: 20px;
        height: 20px;
        margin-top: 0;
    }

    .breadcrumbs a,
    .back-link,
    .blog-card-link,
    .card-body a {
        display: inline-block;
        padding: 6px 0;
    }

    /* --- Etiquetas en versalitas: mínimo 12px para que se lean --- */
    .section-tag,
    .stat-label,
    .hero-stat-label,
    .artist-hero-tag,
    .blog-tag,
    .blog-strip-tag,
    .technique-badge,
    .faq-group-badge {
        font-size: 12px;
    }

    /* --- Ficha de la obra --- */
    .detail-description {
        text-align: left;
    }

    .share-label-long {
        display: none;
    }

    .share-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .mobile-buy-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    }

    .mobile-buy-bar-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.3;
    }

    .mobile-buy-bar-info strong {
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        color: var(--secondary-color);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-buy-bar-info span {
        font-size: 13px;
        font-weight: 700;
        color: var(--primary-color);
    }

    .mobile-buy-bar .btn-primary {
        width: auto;
        flex-shrink: 0;
        padding: 12px 22px;
        font-size: 15px;
    }

    /* Espacio para que la barra no tape el final de la página. */
    body:has(.mobile-buy-bar) .footer {
        padding-bottom: 90px;
    }

    /* --- Checkout: el resumen (qué se compra y cuánto) va antes del formulario --- */
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .checkout-summary {
        order: -1;
        position: static;
        padding: 20px;
    }

    .checkout-summary h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .summary-image {
        max-height: 220px;
        object-fit: contain;
        background: #fff;
    }
}

/* Tablet: la ficha de la obra queda en una columna; la foto no debe
   ocupar todo el ancho (con proporción 4:5 llegaba a ~900px de alto). */
@media (max-width: 1024px) {
    .detail-content > div:first-child {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Velo algo más oscuro: en celular el texto queda sobre pinturas claras. */
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65));
    }
}
