/* =========================================
   1. IMPORTACIÓN DE FUENTES & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;700&family=Eagle+Lake&display=swap');

:root {
    /* Colores */
    --color-bg-top: #EADED0;
    --color-bg-mid: #D45039;
    --color-bg-bot: #303231;
    --color-text-white: #FFFAF5;
    --color-accent-red: #D45039;
    --color-accent-gold: #D1B58E;
    --color-text-dark: #303231;

    /* Tipografías */
    --font-heading: 'Eagle Lake', cursive;
    --font-body: 'Instrument Sans', sans-serif;
}

/* =========================================
   2. RESET & ESTILOS GLOBALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    width: 100%;
    overflow-x: hidden; /* Evita scroll horizontal indeseado por los trucos de ancho completo */
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* Clases de Tipografía */
h1 {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 42px;
    font-weight: 400;
}

h2 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 20px;
    line-height: normal;
}

h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 20px;
    line-height: 20px;
    letter-spacing: -0.01em;
}

h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.01em;
}

.p1 {
    font-family: var(--font-body);
    font-weight: 500; /* Medium */
    font-size: 18px;
    line-height: 20px;
    letter-spacing: -0.01em;
}

/* =========================================
   3. PÁGINA HOME (index.html)
   ========================================= */
.home-page {
    overflow: hidden; /* Sin scroll */
    height: 100vh;
    position: relative;
    background-color: black;
}

#home {
    width: 100%;
    height: 100vh;
    position: relative;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.home-content {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.enter-img {
    width: 620px; /* Desktop default */
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Transición JS Classes */
.page-transition {
    filter: brightness(100) grayscale(100%);
    transform: scale(1.5) !important;
    transition: all 0.8s ease-in-out;
}

/* =========================================
   4. PÁGINA CONTENIDO (caroline.html)
   ========================================= */
.content-page {
    background: linear-gradient(to bottom, var(--color-bg-top) 0%, var(--color-bg-mid) 50%, var(--color-bg-bot) 100%);
    min-height: 100vh;
}

.main-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: block; 
}

/* Regla general para secciones */
section {
    width: 100vw; /* Ancho completo viewport */
    margin-left: calc(-50vw + 50%); /* Truco para centrar dentro del wrapper limitado */
    margin-bottom: 30px; /* Espacio entre secciones */
}

/* --- SECCIÓN 1: HERO --- */
#hero {
    min-height: 100vh;
    background-image: url('../fotos/h3.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 100px 50px;
}

.bio {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 618px;
    padding: 30px 20px;
    height: fit-content;
}

.bio h1 { color: var(--color-accent-red); }
.bio .p1 { color: var(--color-text-white); }

.socials {
    display: flex;
    gap: 15px;
}

.socials img {
    width: 50px;
    height: 50px;
    transition: opacity 0.3s ease-in-out;
}

.socials img:hover { opacity: 0.5; }

/* --- SECCIÓN 2 & 3: PANG y DESIRE --- */
#pang, #desire {
    min-height: 100vh;
    background-color: var(--color-bg-bot);
    padding: 40px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
    /* Animación Scroll Base */
    opacity: 0.7;
    transform: translateY(50px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.album-container {
    display: flex;
    flex-direction: row;
    gap: 60px;
    padding: 0 20px 30px 30px;
    width: 100%;
    max-width: 1280px;
}

.album-cover {
    flex: 1;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    object-fit: cover;
    transform: scale(0.5);
    transition: transform 0.8s ease-in-out;
}

.scale-trigger.scaled-in { transform: scale(1); }

.description {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 30px 30px 0;
}

.description h1, .description .p1 { color: var(--color-text-white); }
.description h4 { color: var(--color-accent-red); }

.stream-button {
    background-color: var(--color-accent-gold);
    padding: 15px 25px;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: inset 0 0 0 0 transparent;
    transition: all 0.3s ease;
    border-radius: 25px;
}
.stream-button h4 { color: var(--color-text-dark); transition: color 0.3s ease; }

.stream-button:hover {
    background-color: transparent;
    box-shadow: inset 0 0 0 3px var(--color-accent-gold);
}
.stream-button:hover h4 { color: var(--color-accent-gold); }

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin-top: auto;
}
.marquee-content { display: inline-block; white-space: nowrap; }

/* --- CAMBIO DE COLOR MARQUEE --- */
.marquee-content h2 {
    color: var(--color-accent-red); /* Cambiado de blanco a rojo */
    display: inline-block;
}

.left { animation: scrollLeft 30s linear infinite; }
.right { animation: scrollRight 30s linear infinite; }

@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* --- SECCIÓN 4: MERCH --- */
#merch {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    justify-content: flex-start;
    align-items: flex-start;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#merch::-webkit-scrollbar { display: none; }

.item {
    flex: 0 0 300px;
    height: fit-content;
    background-color: var(--color-bg-bot);
    border-radius: 33px;
    padding: 20px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
.item:first-child { margin-left: 0; }

.item-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
}
.item-content img { border-radius: 20px; width: 100%; }

.price {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    align-items: flex-start;
}
.price h3 { color: var(--color-text-white); font-size: 16px; }
.price .price-tag { color: var(--color-accent-red); text-align: right; min-width: 60px; }

.shop-button {
    background-color: var(--color-accent-red);
    width: 100%;
    padding: 15px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.shop-button h4 { color: var(--color-text-white); transition: color 0.3s ease; }
.shop-button:hover {
    background-color: transparent;
    box-shadow: inset 0 0 0 3px var(--color-accent-red);
}
.shop-button:hover h4 { color: var(--color-accent-red); }

/* --- SECCIÓN 5: MAIL (CORREGIDA) --- */
#mail {
    display: flex; /* Necesario para centrar el .mail-container */
    justify-content: center;
    align-items: center;
    /* Aseguramos que el section ocupe espacio aunque esté vacío */
    padding: 40px 0; 
    
    /* Animación scroll */
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

/* Estilos específicos del contenedor interno */
.mail-container {
    background-color: #FFFAF5; /* Fill explícito */
    border: 5px solid #D45039; /* Stroke explícito */
    border-radius: 35px;
    padding: 40px;
    
    /* Layout interno horizontal */
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    justify-content: center;
    
    width: fit-content; /* Hug contents */
    max-width: 100%;
}

.mail-container h1 {
    color: var(--color-text-dark);
    font-size: 30px;
}

form {
    display: flex;
    gap: 20px;
    align-items: center;
}

input {
    background-color: var(--color-accent-gold);
    border: none;
    padding: 15px 20px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
}
input::placeholder { color: rgba(255, 255, 255, 0.7); }

.form-button {
    width: 150px;
    height: 60px;
    background-color: var(--color-accent-gold);
    border-radius: 50px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.form-button h3 { color: var(--color-text-white); }
.form-button:hover { background-color: var(--color-accent-red); transition: none; }


/* --- SECCIÓN 6: FOOTER (CORREGIDA) --- */
#footer {
    background-color: #D1B58E; /* Fondo explícito */
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Truco full width */
    padding: 30px 80px;
    margin-bottom: 0; /* Última sección sin margen abajo */
    
    /* Layout Flexbox Horizontal */
    display: flex; 
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
}

/* Corrección de la imagen "enorme" */
#footer img {
    height: 100px !important; /* Forzamos la altura */
    width: auto;
    max-width: none; /* Quitamos la restricción global */
}

#footer h3 { color: var(--color-text-dark); }

/* =========================================
   5. MEDIA QUERIES
   ========================================= */

/* --- TABLET (768px - 1024px) --- */
@media (max-width: 1024px) {
    .enter-img { width: 560px; }
    .bio { width: 570px; }

    .album-container {
        flex-direction: column;
        align-items: center;
        padding: 0 20px 30px 20px;
    }
    .description { padding: 30px 0; text-align: center; align-items: center; }
    
    /* Inversión orden en móvil/tablet si se desea imagen arriba */
    #desire .album-container { flex-direction: column-reverse; }
    #pang .album-container { flex-direction: column-reverse; }

    /* Mail: Vertical en tablet */
    .mail-container {
        flex-direction: column;
        text-align: center;
    }
    form { flex-direction: column; width: 100%; }
    input { width: 100%; }

    /* Footer: Vertical en tablet */
    #footer {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
        text-align: center;
    }
}

/* --- MOBILE (Hasta 475px) --- */
@media (max-width: 475px) {
    .enter-img { width: 290px; }
    .bio { width: 320px; padding: 30px 10px; }
    #hero { padding: 100px 20px; }
    #pang, #desire { padding-top: 10px; padding-bottom: 10px; }
    
    #merch {
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
        gap: 30px;
    }
    .item { margin-left: 0; }
    
    .mail-container { padding: 30px 20px; }
    
    h1 { font-size: 32px; }
}