/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
   :root {
    /* Paleta de Colores (Dark Mode) */
    --color-bg-dark: #0D0D0D;
    --color-bg-lighter: #1A1A1A;
    --color-gold: #C9A96E;
    --color-gold-hover: #D4AF37;
    --color-text-main: #F5F5F5;
    --color-text-muted: #BBBBBB;
    --color-overlay: rgba(0, 0, 0, 0.75);

    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Espaciado */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Transiciones */
    --transition-fast: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tipografía Básica */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* ==========================================================================
   BOTONES (CTAs)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border-color: var(--color-gold);
}

.btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
}

.btn-card {
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 0.8rem 1.5rem;
}

.btn-card:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-gold);
    font-style: italic;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.main-nav a.active {
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 5px;
    color: var(--color-gold);
}

.header-social {
    display: flex;
    gap: 1.5rem;
}

.header-social a {
    color: var(--color-gold);
    font-size: 1.2rem;
}

.header-social a:hover {
    color: var(--color-text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Placeholder para imagen de fondo (retrato abstracto según requerimiento) */
    background-image: url('assets/images/obras/obra-jesus-garcia-zapata-11.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13,13,13,0.9) 0%, rgba(13,13,13,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    margin-top: 5rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    color: var(--color-gold);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 0 auto 2rem auto;
}

.hero-role {
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-side-text {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold);
    font-size: 1.2rem;
    z-index: 2;
    white-space: nowrap;
    opacity: 0.8;
}

/* ==========================================================================
   TRES PILARES
   ========================================================================== */
.pillars {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg-dark);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.pillar-card {
    text-align: center;
    padding: 2rem;
    transition: transform var(--transition-fast);
}

.pillar-card:hover {
    transform: translateY(-10px);
}

.pillar-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.pillar-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.pillar-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   CARTAS DE CONTENIDO
   ========================================================================== */
.content-cards {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg-lighter);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    min-height: 500px;
}

.feature-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem 2rem;
    background-size: cover;
    background-position: center;
}

.card-obras {
    background-image: url('assets/images/obras/obra-jesus-garcia-zapata-01.webp');
}

.card-conferencias {
    background-image: url('assets/images/obras/obra-jesus-garcia-zapata-10.webp');
}

.card-quote {
    background-image: url('assets/images/obras/obra-jesus-garcia-zapata-02.webp');
    justify-content: center;
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.3) 100%);
    z-index: 1;
    transition: background var(--transition-fast);
}

.card-quote .card-overlay {
    background: rgba(13,13,13,0.8);
}

.feature-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.5) 100%);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-content.centered {
    text-align: center;
}

.card-title {
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 1px;
}

.card-text {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-gold);
    line-height: 1.4;
}

/* ==========================================================================
   CIERRE VISUAL
   ========================================================================== */
.closing-banner {
    position: relative;
    padding: var(--space-xl) 2rem;
    text-align: center;
    background-image: url('assets/images/obras/obra-jesus-garcia-zapata-15.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(13, 13, 13, 0.7);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.banner-text {
    font-size: clamp(2rem, 3vw, 3rem);
    color: var(--color-gold);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.banner-signature {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #050505;
    padding: var(--space-xl) 0 2rem 0;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-gold);
    font-style: italic;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-slogan {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--color-gold);
}

.col-links ul {
    list-style: none;
}

.col-links li {
    margin-bottom: 0.8rem;
}

.col-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.col-links a:hover {
    color: var(--color-gold);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: var(--color-gold);
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--color-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-phrase {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold);
}

/* ==========================================================================
   BOTÓN WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ==========================================================================
   PÁGINAS INTERNAS GLOBALES
   ========================================================================== */
.inner-page {
    padding-top: 100px;
}

.page-content {
    padding: var(--space-md) 0 var(--space-xl) 0;
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding: 0 1rem;
}

.page-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

/* ==========================================================================
   GALERÍA DE OBRAS
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-text-main);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: var(--color-bg-lighter);
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img-container img {
    transform: scale(1.05);
}

.gallery-hover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13,13,13,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-size: 2rem;
    color: var(--color-gold);
    cursor: zoom-in;
}

.gallery-item:hover .gallery-hover {
    opacity: 1;
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-item-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.gallery-item-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available {
    background-color: rgba(201, 169, 110, 0.1);
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.status-sold {
    background-color: rgba(255,255,255,0.05);
    color: var(--color-text-muted);
    border: 1px solid rgba(255,255,255,0.2);
}

.status-exhibition {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid #3498db;
}

/* ==========================================================================
   CONFERENCIAS
   ========================================================================== */
.hero-internal {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    text-align: center;
    margin-top: -100px; /* Compensa el padding de inner-page */
    margin-bottom: var(--space-lg);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: var(--space-xl);
}

.topic-card {
    background: var(--color-bg-lighter);
    padding: 2rem;
    border-radius: 4px;
    border-top: 3px solid var(--color-gold);
}

.topic-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.topic-card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.topic-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: var(--space-xl);
}

.video-wrapper {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    background: #111;
}

.video-placeholder i {
    font-size: 4rem;
    color: #FF0000;
    margin-bottom: 1rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-bg-lighter) 0%, #111 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(201, 169, 110, 0.2);
}

.cta-box h2 {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   MI HISTORIA
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.about-image img {
    border-radius: 4px;
    box-shadow: 20px 20px 0 rgba(201, 169, 110, 0.1);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #CCC;
}

.timeline-section {
    background: var(--color-bg-lighter);
    padding: 4rem 2rem;
    border-radius: 4px;
    margin-bottom: var(--space-lg);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-gold);
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-year {
    width: 45%;
    text-align: right;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-gold);
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-year {
    order: 2;
    text-align: left;
    padding-right: 0;
    padding-left: 2rem;
}

.timeline-content {
    width: 45%;
    padding-left: 2rem;
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 4px;
}

.timeline-item:nth-child(even) .timeline-content {
    order: 1;
    padding-left: 1.5rem;
    text-align: right;
}

.about-closing-quote {
    text-align: center;
    padding: 3rem 0;
}

.about-closing-quote p {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: var(--color-gold);
}

/* ==========================================================================
   TIENDA
   ========================================================================== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: var(--space-xl);
}

.product-card {
    background: var(--color-bg-lighter);
    border-radius: 4px;
    overflow: hidden;
}

.product-image {
    position: relative;
    aspect-ratio: 1/1;
    background: #000;
}

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

.product-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.badge.unique {
    background: var(--color-gold);
    color: var(--color-bg-dark);
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
}

.product-details {
    padding: 2rem;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.product-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

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

.price-value {
    font-size: 1.8rem;
    color: var(--color-gold);
    font-weight: 600;
}

.price-consult {
    font-size: 1.2rem;
    color: var(--color-text-main);
    font-style: italic;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-actions .btn {
    width: 100%;
    text-align: center;
}

.offer-link {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: underline;
}

.shop-info-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--color-bg-lighter);
    padding: 2rem;
    border-radius: 4px;
    gap: 2rem;
}

.shop-info-bar .info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--color-gold);
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.contact-info .contact-item {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-info .contact-item i {
    font-size: 1.5rem;
    width: 30px;
}

.contact-form-container {
    background: var(--color-bg-lighter);
    padding: 3rem;
    border-radius: 4px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    color: var(--color-text-main);
    font-family: var(--font-body);
    border-radius: 2px;
    transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

/* ==========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 900px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-year, .timeline-content {
        width: 100%;
        text-align: left !important;
        padding-left: 2rem !important;
        padding-right: 0 !important;
    }
    
    .timeline-year {
        margin-bottom: 1rem;
    }
    
    .shop-info-bar {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1024px) {
    .hero-side-text {
        display: none;
    }
    
    .pillars-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        min-height: 400px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* A implementar menú móvil vía JS */
    }
    
    .header-social {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Imagen enmarcada (Historia) */
.framed-portrait {
    border: 8px solid var(--gray-medium);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    padding: 10px;
    background: var(--bg-dark);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    border-radius: 4px;
    border: 2px solid var(--accent-gold);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   MENÚ MÓVIL Y AJUSTES RESPONSIVOS GLOBALES
   ========================================================================== */
html, body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(13, 13, 13, 0.98);
        padding: 2rem 0;
        border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
    }
}
