:root {
    --bg-dark: #0a192f;
    --bg-darker: #020c1b;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --accent: #64ffda;
    --dark-blue-overlay: rgba(10, 25, 47, 0.85);
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    line-height: 1.6;
}

/* Background Collage */
#background-collage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    opacity: 0.2; /* Low opacity for background feel */
    background-color: #020c1b;
    background-image: url(images/fondotatuajes.png);
}

.bg-grid-item {
    position: absolute;
    width: 50px;
    height: 50px;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.7;
    border-radius: 4px; /* Optional rounded */
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.overlay-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-color: #0a192f7c;
    pointer-events: none;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    color: var(--text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* --- Navigation --- */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px; /* Default larger padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: padding 0.3s, box-shadow 0.3s;
}

#header.scrolled {
    padding: 10px 50px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    background-color: var(--dark-blue-overlay); /* Ensure readability */
}

/* On mobile, override these explicitly */
@media (max-width: 768px) {
    #header, #header.scrolled {
        padding: 15px 20px; /* Keep mobile padding constant or slightly reduced */
    }
}

.logo {
    height: 50px;
    border-radius: 5%;
    border: 2px solid var(--text-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 45vw;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 40px;
    max-width: 500px;
    text-align: center;
}

.cta-btn {
    padding: 15px 30px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.hero-collage {
    flex: 1;
    height: 100vh;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0px;
    /* Optional: Rotate slightly for artistic effect or keep straight */
}

.collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
    border: 1px solid rgba(100, 255, 218, 0.1);
    z-index: 5;
}

/* The main big image on the left */
.collage-item.main {
    grid-row: 1 / -1; /* Spans both rows */
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s;
    z-index: 5;
}

.collage-item:hover img {
    transform: scale(1.05);
    filter: sepia(0%) contrast(1.2);
}

/* Responsive fix for collage was here - moved to bottom */

/* Small phones extra tweak */
@media (max-width: 400px) {
     .gallery-grid {
        grid-template-columns: 1fr; /* 1 column for very small screens */
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

.divider {
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark), transparent);
}

.scroll-section {
    padding: 10px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -150px;
}

.row-layout.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    padding: 0 60px; /* Added padding */
    text-align: center; /* Centered text */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items (like the decorative line) */
    max-width: 45vw;
}

.text-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.linea-decorativa {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin-bottom: 30px; /* Margin will be handled by flex gap or existing margin */
}

.linea-decorativa.center {
    margin: 0 auto 30px auto;
}

.text-content p {
    color: var(--text-secondary);
    font-size: 1.4rem;
    line-height: 1.8;
}

.image-content {
    flex: 1;
    height: 90vh;
    overflow: hidden;
    border-radius: 4px;
    filter: grayscale(100%) contrast(1.2);
    transition: 3s;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.image-content:hover, 
.image-content-large:hover {
    filter: grayscale(0%);
    transform: translateY(-5px);
}

.image-content img, .image-content-large img {
    width: 100%;
    height: 100%;
}

/* Center Layout */
.center-layout {
    flex-direction: column;
    text-align: center;
}

.image-content-large {
    width: 100%;
    max-width: 800px;
    height: 600px; /* Taller for center images */
    margin: 0 auto;
    border-radius: 4px;
    filter: grayscale(80%);
    transition: 0.5s;
}

/* --- Gallery Grid --- */
.gallery-section {
    padding: 100px 5%;
    background-color: var(--bg-darker);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    display: inline-block;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

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

.gallery-item {
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

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

/* --- Contact Section --- */
.contact-section {
    padding: 100px 10%;
    text-align: center;
    background-color: var(--bg-dark);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-container p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, 
.contact-form textarea {
    padding: 15px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Raleway', sans-serif;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 15px;
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.contact-form button:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.socials {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socials a {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.socials a:hover {
    color: var(--accent);
}

footer {
    padding: 20px;
    background-color: var(--bg-darker);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

/* --- Animation Classes (Intersection Observer) --- */
.hidden-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1.5s ease-out;
}

.hidden-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1.5s ease-out;
}

.hidden-bottom {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1.5s ease-out;
}

.hidden-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1.5s ease-out;
}

.hidden-fade {
    opacity: 0;
    transition: all 2s ease;
}

.show {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* Mobile Responsive block moved to mid-file */

/* --- Responsive Design (Fixed & Moved to Bottom) --- */
@media (max-width: 768px) {
    /* Navigation */
    #header {
        padding: 15px 20px;
        background-color: var(--bg-darker);
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0; 
        padding-top: 80px; 
        height: 100vh;
        width: 70%; 
        max-width: 300px;
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 999; 
    }

    .nav-links.active {
        transform: translateX(0);
        display: flex;
    }

    .nav-links li {
        margin: 20px 0;
    }

    /* Hero Section */
    .hero-section {
        flex-direction: column-reverse; /* Text below image */
        padding-top: 100px;
        text-align: center;
        min-height: auto;
        padding-bottom: 50px;
    }

    .hero-content {
        min-width: 100% !important;
        margin-top: 20px;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        max-width: 100%;
        padding: 0;
    }

    .hero-collage {
        width: 100%;
        height: auto;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px;
        gap: 10px;
        padding: 0 10px;
    }

    .collage-item.main {
        grid-column: span 2;
    }

    /* Content Sections */
    .scroll-section {
        flex-direction: column !important; /* Force column */
        text-align: center;
        padding: 40px 15px;
        margin-top: 0;
        min-height: auto;
    }

    .text-content {
        max-width: 100% !important; /* Override 45vw */
        width: 100%;
        padding: 0 10px !important; /* Small padding */
        margin-bottom: 30px;
        display: block; /* Ensure block behavior */
    }

    .text-content h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .text-content p {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0;
    }

    /* Images */
    .image-content, .image-content-large {
        width: 100%;
        height: 300px;
    }

    /* Gallery */
    .gallery-section {
        padding: 50px 15px;
    }

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

    .gallery-item {
        height: 300px;
    }

    /* Contact */
    .contact-section {
        padding: 50px 15px;
    }
    
    .contact-container h2 {
        font-size: 2rem;
    }

    /* WhatsApp Button - Ensure inside */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 15px; /* Moved slightly inside */
        font-size: 24px;
        z-index: 2000;
        /* Ensure it doesn't get pushed out */
        left: auto; 
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ensure no horizontal scroll */
    .hero-content h1 {
        font-size: 2rem; 
    }
}

