:root {
    --bg-color: #FFC6D4; 
    --text-dark: #634b58; 
    --text-pink: #E1566E;
    --box-bg: #ffffff;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #11111100; }
::-webkit-scrollbar-thumb { background: var(--text-pink); border-radius: 0px; }
::-webkit-scrollbar-thumb:hover { background: #c94056; }

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color); 
    background-image: url('../icons/about/fondo.png'); 
    background-size: cover; 
    background-position: center; 
    color: var(--text-dark);
    margin: 0;
}

.principal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 97%; 
    margin: 0 auto;
}

.header-container {
    max-width: 97%; 
    width: 100%;
    background: rgba(255, 255, 255, 0);
    padding-top: 20px;
}

.container {
    max-width: 1350px; 
    width: 100%;
    background: rgba(255, 255, 255, 0);
    padding: 20px;
    min-height: 100vh;
}

/* --- HEADER Y MENÚ --- */
.window-header {
    background: rgba(255, 255, 255, 0.123);
    border-radius: 15px; 
    border: 2px solid var(--text-pink); 
    position: relative; 
}

.tabs-container {
    display: flex;
    background-color: white; 
    border-bottom: 2px solid var(--text-pink);
    padding: 5px 10px 0 10px; 
    align-items: flex-end; 
    border-radius: 15px 15px 0 0;
}

.tab {
    color: var(--text-dark);
    border: 2px solid var(--text-pink);
    border-bottom: none; 
    border-radius: 10px 10px 0 0; 
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.casa-tab {
    padding: 10px 20px;
    font-size: 0.95em;
    background-color: white; 
    z-index: 1;
    color: var(--text-pink);
    margin-bottom: -2px; 
}

.enlace-casa {
    text-decoration: none;
    color: var(--text-dark);
}

.about-tab {
    padding: 5px 15px; 
    font-size: 0.85em; 
    background-color: white; 
    color: var(--text-pink);
    margin-bottom: -2px; 
    padding-bottom: 7px; 
    margin-left: -5px; 
    z-index: 2;
}

.header-main {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    position: relative; 
    min-height: 50px;
    border-radius: 0 0 15px 15px;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
    z-index: 2;
}

.logo-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); 
    font-size: 2em;
    font-weight: normal;
    color: var(--text-pink);
    letter-spacing: 2px;
    white-space: nowrap;
    z-index: 1; 
    font-family: 'Pacifico', cursive;
}

.heart-menu-btn {
    background: none;
    border: none;
    color: var(--text-pink);
    font-size: 2.2em;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; 
}

.heart-menu-btn:hover {
    transform: scale(1.1);
    color: #ff4785;
}

.dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%; 
    right: 0;
    background-color: white;
    border: 2px solid var(--text-pink);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(216, 92, 138, 0.2);
    z-index: 1000;
    min-width: 150px;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px; 
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-menu a {
    font-family: 'Delius', cursive; 
    color: var(--text-pink); 
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--text-pink);
    color: white;
}

.box {
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

a.box:hover {
    transform: translateY(-3px);
}

.home-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 30px; 
    width: 100%; 
    align-items: start; 
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
}

.left-column {
    gap: 25px;
}

.left-column .box-gif {
    width: 100%; 
}

.box-gif img {
    width: 100%;
    height: auto; 
    display: block;
    border-radius: 15px;
}

.box-carousel {
    width: 100%;
    height: 450px; 
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background-color: white; 
}

.carousel-label {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.541);
    color: white;
    padding: 6px 15px;
    border-radius: 70px;
    font-weight: 800;
    font-size: 1em;
    z-index: 10;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%; 
    transition: transform 0.8s ease-in-out;
}

.carousel-track img {
    width: 100%;
    height: 100%; 
    object-fit: contain; 
    flex-shrink: 0;
    display: block;
}

.right-column {
    justify-content: space-between; 
}

.mini-icons-group {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.box-mini {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    background-color: transparent; 
}

.box-mini img {
    width: 150px; 
    height: 150px;
    object-fit: contain; 
    border-radius: 20px; 
    transition: transform 0.2s ease;
}

.box-mini span {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.1em;
    text-align: center;
}

a.box-mini:hover img {
    transform: scale(1.1); 
}

.right-column .box-banner {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 12px; 
    margin-top: 70px;
    margin-bottom: 70px;
    border-radius: 15px;
}

.box-banner img {
    width: 100%;
    height: auto; 
    display: block;
    border-radius: 15px;
    transition: transform 0.2s ease; 
}

.box-banner:hover img {
    transform: scale(1.05); 
}

.box-banner span {
    position: relative; 
    font-weight: 800; 
    font-size: 1.1em; 
    color: var(--text-dark); 
    text-align: center;
    background: transparent; 
    border: none;
    text-shadow: none;
    padding: 0;
}

@media (max-width: 850px) {
    .home-grid {
        grid-template-columns: 1fr 1fr; 
        grid-template-rows: auto auto auto; 
        grid-template-areas: 
            "gif gif"
            "carrusel grouptop"
            "groupbottom banner";
        gap: 20px; 
        align-content: start; 
        align-items: center; 
    }
    
    .left-column, .right-column {
        display: contents; 
    }

    .box-gif { 
        grid-area: gif; 
    }
    
    .box-carousel { 
        grid-area: carrusel; 
        height: auto; 
        min-height: 200px; 
    }
    
    .group-top { 
        grid-area: grouptop; 
        gap: 15px; 
        flex-direction: column; 
        align-items: center;
    }
    
    .group-bottom { 
        grid-area: groupbottom; 
        gap: 15px; 
        align-self: start; 
    }
    
    .right-column .box-banner { 
        grid-area: banner; 
        margin: 0 !important; 
        padding: 10px 0; 
        height: auto;
        align-self: start; 
    }

    .right-column .box-banner img {
        height: 70px; 
        width: auto;
        object-fit: contain;
    }

    .header-main { padding: 10px; }
    .logo-text { font-size: 1.8em; }
    
    .box-mini img { width: 70px; height: 70px; } 
    
    .box-mini span, .box-banner span { 
        font-size: 0.85em; 
    }
}

@media (max-width: 500px) {
    .box-mini img { width: 85px; height: 85px; } 
    
    .right-column .box-banner img {
        height: 85px; 
    }

    .group-bottom { 
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: center;
    }
}