/* ESTILO: Tipi Royes - Modern Editorial Caribbean
   PALETA: Bone White, Carbon Black, Gold Bronze
*/

:root {
    --bg: #f8f7f3;
    --text: #1a1a1a;
    --accent: #b08d57; /* Dorado Bronce */
    --accent-glow: rgba(176, 141, 87, 0.4);
    --white: #ffffff;
    --black-deep: #0c0c0c;
    --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 2. HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
                url('img/tipihero.jpg') no-repeat center center/cover;
    text-align: center;
    color: white;
    position: relative;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.hero-tag {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--bg);
    opacity: 0.9;
}

.hero-line {
    width: 1px;
    height: 100px;
    background: var(--accent);
    margin: 40px auto 0;
}

/* 3. LAYOUT & TYPOGRAPHY */
section {
    padding: 180px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--accent);
    margin-bottom: 2.5rem;
    display: block;
}

/* 4. ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2.5rem;
}

.about-text i {
    font-style: italic;
    font-weight: 400;
}

.about-text p {
    font-weight: 300;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.8rem;
    text-align: justify;
}

.quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-style: italic;
    border-left: 1px solid var(--accent);
    padding-left: 30px;
    margin-top: 4rem;
    color: var(--text);
}

.img-frame {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(176, 141, 87, 0.2);
}

.img-frame img {
    width: 100%;
    height: 125%; /* Para el efecto parallax */
    object-fit: cover;
    display: block;
    transform: scale(1.2);
}

/* 5. MEMORIAS (GALLERY) */
.history {
    background-color: var(--black-deep);
    color: white;
}

.history-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-style: italic;
    font-weight: 400;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 350px;
    gap: 40px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    background: #000;
    transition: box-shadow 0.8s ease;
}

/* Efecto Soft Glow */
.gallery-item:hover {
    box-shadow: 0 0 50px var(--accent-glow);
    z-index: 5;
}

.gallery-item img {
    width: 100%;
    height: 130%; /* Espacio para parallax */
    object-fit: cover;
    display: block;
    filter: grayscale(100%) brightness(0.6);
    transform: scale(1.25);
    transition: filter 1s ease, transform 0.1s linear;
}

.gallery-item:hover img {
    filter: grayscale(0%) brightness(1);
}

/* Clases Masonry */
.item-tall { grid-row: span 2; }

/* Ajuste específico para tipi4.jpeg (Ver completa) */
.item-contain {
    background-color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-contain img {
    object-fit: contain !important; /* Muestra la imagen entera */
    height: 100% !important;
    width: 100% !important;
    transform: scale(1) !important; /* Desactiva zoom para no cortar */
}

/* 6. CONTACT SECTION */
.contact {
    text-align: center;
    background: var(--white);
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.contact-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

.btn-contact {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 8px;
    transition: var(--transition);
}

.btn-contact:hover {
    color: var(--accent);
    letter-spacing: 2px;
}

.social-links {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.social-icon {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #999;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon:hover {
    color: var(--text);
}

.handle {
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
}

/* 7. FOOTER */
footer {
    padding: 100px 0;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.3;
}

/* 8. RESPONSIVE */
@media (max-width: 992px) {
    section { padding: 120px 0; }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .gallery-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 450px;
    }

    .item-tall { grid-row: span 1; }

    .about-text h2, .section-title, .contact-card h2 {
        font-size: 3rem;
    }
}