/* Variables CSS para Carlos Lara */
:root {
    --swatch-1: rgba(0, 0, 0, 0.85);
    --swatch-2: rgba(0, 0, 0, 0.75);
    --swatch-3: rgba(0, 0, 0, 0.6);
    --swatch-4: rgba(0, 0, 0, 0.4);
    --swatch-5: rgba(0, 0, 0, 0.25);
    --swatch-6: rgba(0, 0, 0, 0.1);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Source Serif Pro', 'Times', serif;
    
    --gutter: 1.4rem;
    --mobile-scale: 0.9;
    
    --accent-color: #000000;
    --text-color: #333333;
    --link-color: #555555;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-color);
    background: #fff;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-size: 16px;
}

body.loaded {
    opacity: 1;
}

/* Header Fijo */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--swatch-6);
    transition: transform 0.3s ease;
}

.fixed-header.hidden {
    transform: translateY(-100%);
}

.header-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--gutter);
    max-width: 1200px;
    margin: 0 auto;
}

.header-col {
    display: flex;
    align-items: center;
}

/* =========================================== */
/* TEXTO DEL HEADER - MEDIDAS ACTUALIZADAS */
/* =========================================== */

/* Texto general: 18px (1.125rem) - Normal weight */
.header-text {
    font-size: 1.125rem !important;    /* 18px exactos */
    color: var(--swatch-1) !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;        /* NORMAL (no bold) */
    letter-spacing: 0.01em;
}

/* "Carlos Lara" ÚNICO texto en BOLD y con enlace */
.header-col:nth-child(1) .header-text {
    font-weight: 700 !important;        /* BOLD solo para el nombre */
}

/* Enlace del nombre "Carlos Lara" - sin target _blank */
.name-link {
    color: var(--swatch-1) !important;
    text-decoration: none;
    font-weight: 700 !important;        /* Mantener bold */
    transition: opacity 0.2s ease;
    border-bottom: none !important;     /* Sin subrayado */
}

.name-link:hover {
    opacity: 0.7 !important;
}

/* Links normales en el header (Portfolio e Instagram) */
.header-text a:not(.name-link) {
    color: var(--link-color) !important;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
    font-weight: 400 !important;        /* Normal weight para otros links */
}

.header-text a:not(.name-link):hover {
    opacity: 0.7 !important;
    border-bottom-color: currentColor;
}

.text-right {
    text-align: right;
    width: 100%;
}

.text-left {
    text-align: left;
    display: inline-block;
}

/* =========================================== */
/* SIMPLY GALLERY - ESTILOS PERSONALIZADOS */
/* =========================================== */

/* Contenedor principal */
.simply-gallery-container {
    margin: 120px auto 60px;
    padding: 0 20px;
    max-width: 1400px;
    width: 100%;
    min-height: 500px;
}

/* Grid de Simply Gallery - limpio y responsivo */
.pgc-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Items de la galería */
.pgc-gallery-item {
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f8f8f8 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.pgc-gallery-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    background: #f0f0f0 !important;
}

/* Imágenes dentro de los items */
.pgc-gallery-item img {
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: 350px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.5s ease !important;
}

.pgc-gallery-item:hover img {
    transform: scale(1.05) !important;
}

/* Lightbox de Simply Gallery */
.pgc-sg-lightbox {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
}

.pgc-sg-lightbox-content {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
}

.pgc-sg-lightbox img {
    max-height: 80vh !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Navegación del lightbox */
.pgc-sg-lightbox-nav {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    transition: all 0.3s ease !important;
}

.pgc-sg-lightbox-nav:hover {
    background: white !important;
    transform: scale(1.1) !important;
}

/* Botón cerrar */
.pgc-sg-lightbox-close {
    color: white !important;
    font-size: 40px !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s ease !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pgc-sg-lightbox-close:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

/* =========================================== */
/* RESPONSIVE - SIMPLY GALLERY */
/* =========================================== */

/* Desktop grande */
@media (min-width: 1200px) {
    .simply-gallery-container {
        max-width: 1300px;
        margin-top: 140px;
    }
    
    .pgc-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
        gap: 25px !important;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .simply-gallery-container {
        margin-top: 100px;
        padding: 0 15px;
    }
    
    .pgc-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 15px !important;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .simply-gallery-container {
        margin-top: 80px;
        padding: 0 10px;
    }
    
    .pgc-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 10px !important;
    }
    
    .pgc-gallery-item img {
        min-height: 150px !important;
        max-height: 250px !important;
    }
}

/* =========================================== */
/* UTILIDADES */
/* =========================================== */

.close-overlay {
    cursor: pointer;
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* Notificaciones admin */
.admin-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    color: #856404;
}

.admin-notice h3 {
    margin-top: 0;
    color: #856404;
}

/* Footer */
.site-footer {
    padding: 2rem;
    text-align: center;
    color: var(--swatch-4);
    font-size: 0.9rem;
    font-weight: 400;
    border-top: 1px solid var(--swatch-6);
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 400;
}

.site-footer a:hover {
    color: var(--swatch-2);
}