:root {
    --bg-dark: #0f1115;
    --bg-card: #1a1d24;
    --text-primary: #f2f2f2;
    --text-secondary: #a0a0a0;
    --accent-gold: #c9a84c;
    --accent-gold-hover: #e2bd54;
    --danger: #ff4a4a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-signature: 'Pinyon Script', cursive;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    /* Prevention of selection */
    user-select: none;
    -webkit-user-select: none;
}

/* Prevent image dragging if any remain */
img {
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Typography */
h1, h2 {
    font-family: var(--font-signature);
    font-weight: 400;
}

h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
}

.signature-font {
    font-family: var(--font-signature);
    font-size: 2rem;
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background-color: #050608;
    overflow: hidden;
    position: relative;
}

.hero-ambient {
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    z-index: 1;
    filter: blur(80px) brightness(0.2);
    background-image: url('fotos/Cachorro 30x40.jpg');
    background-size: cover;
    background-position: center;
    transition: background-image 2s ease-in-out;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 2rem 5rem 2rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 4.5rem;
    margin-bottom: 0.2rem;
    color: var(--accent-gold);
    line-height: 1.1;
    text-shadow: 0 0 25px rgba(201, 168, 76, 0.5), 0 5px 15px rgba(0,0,0,0.8);
}

.hero .author-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 3rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.hero-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.hero-nav a:hover {
    color: var(--accent-gold);
}

.hero-visual {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.hero-canvas {
    max-width: 100%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.9), 0 0 10px rgba(201,168,76,0.2);
    border: 2px solid rgba(201,168,76,0.2);
    transition: opacity 1.5s ease-in-out;
}

.hero-canvas.fade-out {
    opacity: 0.01;
}

/* Protecciones Anti-Robo extremas */
canvas {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none; /* Bloquea cualquier interacción (clic, drag) directa con él */
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 5%;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

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

.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-item {
    width: 350px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.item-canvas-container {
    width: 100%;
    height: 350px;
    background: #000;
}

.item-canvas-container canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    padding: 1.5rem;
}

.item-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.item-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    z-index: 1000;
    overflow-y: auto;
}

.lightbox.active {
    display: flex;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

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

.lightbox-content {
    display: flex;
    width: 90%;
    max-width: 1400px;
    margin: auto;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    min-height: 80vh;
}

.lightbox-image-container {
    flex: 2;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-image-container canvas {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-sidebar {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.05);
    max-height: 80vh;
    overflow-y: auto;
}

.lightbox-sidebar h3 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.lb-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.lb-desc {
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.btn-buy, .btn-primary, .btn-submit {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    font-family: var(--font-body);
}

.btn-primary {
    display: inline-block;
    width: auto;
    text-decoration: none;
}

.btn-buy:hover, .btn-primary:hover, .btn-submit:hover {
    background: var(--accent-gold-hover);
}

.buy-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.5rem;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.comments-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.comments-disclaimer {
    font-size: 0.8rem;
    color: var(--danger);
    background: rgba(255, 74, 74, 0.1);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.comments-list {
    margin-bottom: 2rem;
}

.comment {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comment-author {
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.comment-content {
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form input, .comment-form textarea {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem;
    color: white;
    font-family: var(--font-body);
    border-radius: 4px;
}

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

/* Footer */
footer {
    background-color: #050608;
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo h2 {
    font-size: 1.5rem;
}

.footer-links p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Header simple de la Galería */
.gallery-header {
    background-color: #050608;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.gallery-header .header-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.gallery-header .header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.gallery-header .header-nav a:hover {
    color: var(--accent-gold);
}

/* Presentación Corta en Landing */
.presentation-section {
    padding: 6rem 5%;
    background: #0a0b0e;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.presentation-content {
    max-width: 800px;
    text-align: center;
}

.presentation-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.presentation-content p {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
    background: #0a0b0e;
}

.contact-card {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 8px;
    max-width: 800px;
    text-align: center;
    border: 1px solid rgba(201,168,76,0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.contact-card h2 {
    color: var(--accent-gold);
    font-size: 2.8rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.contact-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-style: italic;
    padding: 0 2rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-email, .btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-email {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-email:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent-gold);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: 1px solid #25D366;
}

.btn-whatsapp:hover {
    background: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.lb-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-direction: column;
}

.lb-btn {
    width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-card { padding: 3rem 1.5rem; }
    .contact-message { padding: 0; font-size: 1.1rem; }
    .contact-methods { flex-direction: column; gap: 1rem; }
    
    .hero {
        flex-direction: column-reverse; /* Pone la imagen ARRIBA de las letras */
        height: auto;
        min-height: 100vh;
        justify-content: center;
        padding-top: 4rem;
        padding-bottom: 3rem;
    }
    
    .hero-visual {
        width: 100%;
        height: 55vh; /* Fotografía más grande y protagonista en móvil */
        padding: 0;
        margin-bottom: 1.5rem;
    }

    .hero-canvas {
        max-height: 100%;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 1rem;
        text-align: center; /* Centramos las letras y el texto */
    }
    
    .hero-nav ul {
        justify-content: center; /* Centramos el menú */
        gap: 1.5rem;
    }
    
    .hero-content img {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 1rem !important;
    }

    .hero h2 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .hero .author-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .presentation-content h2 {
        font-size: 2rem;
    }
    
    .presentation-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .presentation-content .btn-submit {
        display: block;
        width: 85%;
        margin: 2rem auto 0 !important;
        padding: 1rem 1rem !important;
        text-align: center;
    }

    /* Lightbox Modal Ajustes */
    .lightbox-content {
        flex-direction: column;
    }
    .lightbox-image-container {
        height: 50vh;
    }
}
