/* =========================================
   1. RESET Y CONFIGURACIÓN BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
}

body {
    background-color: #111;
    color: white;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 18px;
    line-height: 1.6;
}

/* =========================================
   2. SECCIÓN HOME (MENÚ DE 4 COLUMNAS)
   ========================================= */
.hero-grid {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.project-col {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.project-col:hover {
    flex: 1.6;
}

.project-col::before {
    content: "";
    position: absolute;
    inset: -15px;
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(0.4);
    z-index: 1;
}

.lara-col::before { background-image: url('img/Lara\ fondo.png'); }
.podcast-col::before { background-image: url('img/Atras\ del\ popcast.jpg'); }
.aura-col::before { background-image: url('img/Aurafondo.jpg'); }
.arte-col::before { background-image: url('img/Artefondo.jpg'); }

.col-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cover-img {
    width: 200px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.main-btn {
    display: inline-block;
    width: 160px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-btn:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
}

/* =========================================
   3. SECCIONES DE DETALLE (SISTEMA DE COLUMNAS)
   ========================================= */
.section {
    min-height: 100vh;
    padding: 80px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Alinea texto a izq y video a der */
    background-size: cover;
    background-position: center;
    gap: 50px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 10;
    width: 45%; /* Espacio para el texto */
}

.lara-detail { background-image: url('img/Larafinales.jpg'); }
.podcast-detail { background-image: url('img/PopcastFinal.jpg'); }
.aura-detail { background-image: url('img/AuraFinal.png'); }

.floating-text h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}

.floating-text p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
}

.lara-style { font-family: 'Fredoka', sans-serif; }
.podcast-style { font-family: 'Patrick Hand', cursive; }
.aura-style h1 { font-family: 'Playfair Display', serif; font-style: italic; }

/* RECUADROS ESTILO REVISTA */
.magazine-previews {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 18px;
    text-decoration: none;
    color: white;
    border-radius: 12px;
    transition: 0.3s ease;
    backdrop-filter: blur(5px);
}

.note-card:hover {
    background: white;
    transform: translateX(10px);
}

.note-card:hover h3, .note-card:hover span { color: black; }

/* CONTENEDORES DE VIDEO (REELS Y CUADRADO) */
.reel-container {
    position: relative;
    width: 320px;
    height: 570px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    flex-shrink: 0;
}

.video-square-container {
    position: relative;
    width: 450px; 
    height: 450px; 
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.video-reel, .video-square {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   4. GALERÍA DE ARTE
   ========================================= */
/* Contenedor principal de la galería */
.galeria-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.title-arte {
    text-align: left;
    font-family: 'Playfair Display', serif; /* Manteniendo tu estilo */
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Efecto Pinterest (Masonry) */
.art-grid {
    column-count: 3; /* Número de columnas en escritorio */
    column-gap: 20px; /* Espacio entre columnas */
    width: 100%;
}

.art-item {
    display: inline-block; /* Evita que la imagen se rompa entre columnas */
    width: 100%;
    margin-bottom: 20px; /* Espacio vertical entre imágenes */
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    break-inside: avoid; /* Refuerzo para que no se corte la imagen */
    transition: transform 0.3s ease;
}

.art-item:hover {
    transform: scale(1.02);
}

.art-item img {
    width: 100%;
    height: auto; /* Esto mantiene la proporción original (rectangular, cuadrada, etc.) */
    display: block;
    object-fit: contain; 
}

/* Overlay (Texto al pasar el mouse) */
.art-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.art-item:hover .art-overlay {
    opacity: 1;
}

/* Responsividad para móviles y tablets */
@media (max-width: 900px) {
    .art-grid {
        column-count: 2; /* 2 columnas en tablets */
    }
}

@media (max-width: 600px) {
    .art-grid {
        column-count: 1; /* 1 columna en celulares */
    }
}
/* =========================================
   5. BIO & CARRUSEL (CORRECCIÓN DE CAPAS)
   ========================================= */
.bio-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: #111;
    position: relative;
    padding: 120px 10%;
    min-height: 100vh;
    overflow: hidden; /* Evita que el carrusel se salga de la sección */
}

.bio-content-centered {
    position: relative;
    z-index: 10; /* Eleva el texto y la foto por encima del carrusel */
    max-width: 800px;
    margin: 0 auto;
    /* Agregamos un ligero fondo oscuro difuminado para mejorar la legibilidad */
    background: rgba(17, 17, 17, 0.6);
    padding: 40px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.my-photo-container {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    background: #222; /* Fondo por si la imagen tarda en cargar */
}

.my-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.infinite-carousel {
    position: absolute;
    top: 35%; 
    left: 0;
    width: 100%;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.carousel-track {
    display: inline-flex;
    animation: scroll-loop 40s linear infinite;
}

.carousel-track img { width: 280px; padding: 0 50px; }

@keyframes scroll-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   6. RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 1000px) {
    .hero-grid { flex-direction: column; }
    .project-col { height: 50vh; }
    
    .section {
        flex-direction: column;
        text-align: center;
        padding: 60px 5%;
    }

    .content-wrapper { width: 100%; align-items: center; }

    .reel-container, .video-square-container {
        width: 300px;
        height: 530px;
        margin-top: 30px;
    }
    
    .video-square-container { height: 300px; }
    .art-grid { grid-template-columns: repeat(2, 1fr); }
}