@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background-color: #131313;
    scroll-behavior: smooth;
    text-align: center;
}

.signature {
    font-family: 'Allura', cursive;
    font-size: 3rem;
    font-weight: 400;
    font-style: normal;
}

.container {
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

section, header, footer {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 100dvh;
    scroll-snap-align: start;
}

header {
    background: linear-gradient(
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.1)
  ), url('../images/us.webp') no-repeat center center;
    background-size: cover;
    color: #ffffff;
}

.family {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: xx-large;
    width: auto;
}


.svg {
    filter: invert(1);
    width: 100px; 
    height: auto;
}

.hidden {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-100%);
    transition: all 1s;
}

section:nth-of-type(odd) {
    color: #131313;
    background-color: darkgrey; 
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.bear.hidden {
    transform: translateX(0);
    overflow: hidden;
    width: 20px;
    transition: 1s;
    transition-delay: 1s;
}
.bear.show {
    width: 100%;
}

.treeTitle {
    background-color: darkgrey;
    padding-bottom: 10px;
    z-index: 5;
    position: relative;
}

.logos {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.logo {
    width: 100px;
    height: 100px;
    font-size: xx-large;
    background-size: cover;
    background-position: center;
    border: 1px solid #ffffff;
    text-align: center;
    align-content: center;
}

.logo:nth-child(2) {
    transition-delay: 0.2s;
}

.logo:nth-child(3) {
    transition-delay: 0.4s;
}

.logo:nth-child(4) {
    transition-delay: 0.6s;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

@media(prefers-reduced-motion: reduce) {
    .hidden, .show {
        transition: none;
    }
}


.timeline {
      height: 80dvh;
    }

/* Línea vertical */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #0D2750;
    top: 5dvh;
    bottom: 5dvh;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 12rem;
}

.timeline-item.left {
    left: -47%;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-content {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-item.left .timeline-content::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.timeline-item.right .timeline-content::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

/* Punto en la línea */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 1rem;
    width: 16px;
    height: 16px;
    background-color: #0D2750;
    border: 3px solid white;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left::before {
    right: -8px;
}

.timeline-item.right::before {
    left: -8px;
}

@media screen and (max-height: 821px) {
    .timeline-item {
        width: auto;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .timeline-item.left {
        left: -48%;
    }
}

@media screen and (max-width: 768px) {
    .timeline-item {
    width: 80%;
    left: 0 !important;
    text-align: left !important;
    padding: 0.5rem;
    padding-left: 4rem;
    }

    .timeline-item::before {
    left: -8px;
    }

    .timeline::after {
        left: 0;
        bottom: 1dvh;
    }
}

