:root {
    /* Colors - Hybrid Palette */
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent-color: #00ffff;
    /* Cyber Cyan for subtle glows/highlights if needed */
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-heading: 'Cinzel', serif;
    /* Reverted to Original */
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --container-width: 1200px;
    --container-width: 1200px;
    --section-spacing: 120px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Background Setup (Concept B Integration) */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('assets/imagen ambientacion.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    /* filter: grayscale(100%) contrast(120%); */
    /* Removed grayscale to show original colors */
}

.global-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.6);
    /* Reduced opacity to 60% for more visibility */
    background: radial-gradient(circle at center, rgba(5, 5, 5, 0.5), rgba(0, 0, 0, 0.8));
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Utilities */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.highlight {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    /* Optional: subtle text shadow glow */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 16px;
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.3);
    /* Red tint border */
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.1);
    /* Subtle red glow */
}

/* Red Glow Hover Effect for Glass Panels */
.glass-panel:hover {
    box-shadow: 0 0 25px rgba(220, 20, 60, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.8);
    /* Darker header background for legibility */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    gap: 12px;
    flex: 1;
    /* Take space on the left */
}

.logo-img {
    height: 40px;
    width: auto;
    filter: invert(1);
    /* Invert if logo is black, assuming white needed */
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-nav-desktop {
    flex: 2;
    /* Main space for centered nav */
    display: flex;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-cta:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* Transparent border */
    border-radius: 50px;
    /* Rounded sides as requested */
    transition: all 0.3s ease;
    background: transparent;
}

.nav-whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    /* Subtle green tint on hover */
    border-color: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
}

.wa-icon {
    width: 20px;
    height: 20px;
}

.header-right-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex: 1;
    /* Take space on the right */
}

@media (max-width: 768px) {
    .wa-text {
        display: none;
        /* Hide text on small screens to save space */
    }

    .nav-whatsapp {
        padding: 8px !important;
        /* Circular icon on mobile */
        border-radius: 50% !important;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
}

/* Hero Section - Split Layout */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    /* Space for fixed header */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    /* Image takes right half */
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full face is visible without cropping */
    object-position: center bottom;
    /* Anchor to bottom */
}

.hero-content {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-text {
    width: 50%;
    /* Text takes left half */
    padding-right: 40px;
    z-index: 10;
}

/* Gradient mask to blend image with background on the left side */
.hero-gradient-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    /* Fade edge */
    height: 100%;
    background: linear-gradient(to right, var(--bg-dark), transparent);
    z-index: 1;
}

@media (max-width: 900px) {
    .hero-section {
        flex-direction: column-reverse;
        /* Text on top/bottom depending on preference, here stack */
        justify-content: flex-end;
        padding-top: 80px;
    }

    .hero-image-container {
        position: relative;
        width: 100%;
        height: 50vh;
    }

    .hero-img {
        object-fit: cover;
        object-position: center top;
        /* Focus on face for mobile */
    }

    .hero-text {
        width: 100%;
        padding: 40px 24px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.3);
}

/* Gallery Section */
.gallery-section {
    padding: var(--section-spacing) 0;
}

.section-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.filters {
    gap: 16px;
    display: none;
    /* Hiding filters as requested */
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 50px;
    /* Grater space to avoid saturation */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.4s ease;
    z-index: 1;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    /* More rounded corners */
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    /* Consistent aspect ratio tiles */
    background: #111;
    border: 3px solid rgba(255, 255, 255, 0.1);
    /* Thicker base border */
    transition: all 0.3s ease;
}

/* Active state - Disabling automatic centering zoom in favor of manual expand button */
.gallery-item.active {
    display: none;
    /* JS will not use this class anymore */
}

.expand-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(220, 20, 60, 0.8);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .expand-btn {
    opacity: 1;
    transform: translateY(0);
}

.expand-btn:hover {
    background: #ff0000;
    transform: scale(1.1) translateY(0);
}

/* Remove default hover effect to let Expand Button handle the 'zoom' feeling */
.gallery-item:hover {
    border-color: #ff0000;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.4);
}

.gallery-item img {
    cursor: zoom-in;
    /* Indicate that it can be opened */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    /* Very subtle zoom to the inner image on hover */
}

/* Removed .item-overlay and .zoom-overlay as they are replaced by Lightbox modal */

/* Bio Section */
.bio-section {
    padding: var(--section-spacing) 0;
}

.bio-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.bio-image {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-text-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bio-text-extra.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.read-more-btn {
    background: none;
    border: none;
    color: #ff0000;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 10px 0;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.read-more-btn:hover {
    color: #fff;
    letter-spacing: 2px;
}

.timeline {
    margin-top: 3rem;
    border-left: 2px solid rgba(255, 0, 0, 0.2);
    /* Red tinted line */
    padding-left: 30px;
}

.timeline-link {
    text-decoration: none;
    display: block;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
}

.timeline-link .timeline-item {
    cursor: pointer;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: #555;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    transition: all 0.3s;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item:hover::before {
    background: #ff0000;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.8);
    scale: 1.5;
}

.timeline-item .year {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

.timeline-item:hover .year {
    color: #fff;
}

.timeline-item .desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Approach Section */
.approach-section {
    padding: var(--section-spacing) 0;
}

.section-header.centered {
    text-align: center;
    justify-content: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    padding: var(--section-spacing) 0;
    padding-bottom: 150px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.process-steps {
    list-style: none;
    margin-top: 2rem;
}

.process-steps li {
    display: flex;
    gap: 24px;
    margin-bottom: 2.5rem;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.step-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
}

.contact-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    /* Highlight glass panel style */
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 2rem 0;
}

.instagram-callout {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.instagram-callout p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #20BA5C;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    color: #fff;
}

.btn-instagram:hover {
    opacity: 0.9;
}

.btn-email {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-email:hover {
    background: #fff;
    color: #000;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    background: #050505;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.98);
    /* Near total black for focus */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    cursor: default;
    /* Remove the confusing zoom-out cursor */
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    /* Sharper corners for a clean look */
    box-shadow: 0 0 50px rgba(0, 0, 0, 1), 0 0 30px rgba(220, 20, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease-out;
    cursor: zoom-out;
    /* Indicate that clicking the image closes it */
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 2010;
    transition: all 0.3s;
}

.close-lightbox:hover {
    background: #ff0000;
    transform: rotate(90deg);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
    }

    .main-nav-desktop {
        display: none;
    }

    /* Hide desktop nav */
    .mobile-menu-btn {
        display: flex;
    }

    /* Show mobile trigger */

    .header-content {
        padding: 0 16px;
    }

    .bio-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .filters {
        flex-wrap: wrap;
    }

    .hero-text {
        padding: 1.5rem;
        /* Slightly less padding on mobile */
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-bottom: 12px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
    }
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 24px 0;
}

.mobile-nav-links a {
    color: #fff;
    font-size: 2rem;
    font-family: var(--font-heading);
    text-decoration: none;
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}