﻿/* NOSOTROS - Timeline de historia de Marketing 70 */

@font-face {
    font-family: 'Regular';
    src: url(../../recursos/fonts/Regular.woff2), url(../../recursos/fonts/Regular.woff);
}

@font-face {
    font-family: 'Negrita';
    src: url(../../recursos/fonts/Negrita.woff2), url(../../recursos/fonts/Negrita.woff);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 1. Large Screens (>= 1367px) */
@media (min-width: 1367px) {
    body {
        background-color: #f7f8f8;
    }

    main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .intro {
        display: flex;
        flex-direction: column;
        width: 900px;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 150px;
    }

    h1 {
        font-family: 'Negrita';
        color: #213242;
        font-size: 30px;
        text-align: center;
    }

    .texto_scroll {
        font-family: 'Regular';
        color: #49535C;
        font-size: 20px;
    }

    .scroll-hint {
        margin-top: 40px;
        animation: bounce 2.5s infinite;
    }

    .arrow-down {
        width: 30px;
        height: 30px;
        fill: #E1B783;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-10px);
        }

        60% {
            transform: translateY(-5px);
        }
    }

    .timeline-container {
        display: flex;
        width: 800px;
        padding: 0 20px 40px 20px;
    }

    .timeline {
        position: relative;
        padding: 3rem 0;
    }

    .timeline-line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 2px;
        background-color: #49535C;
        transform: translateX(-50%);
    }

    .timeline-event {
        position: relative;
        margin-bottom: 5rem;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.4s, transform 0.4s;
    }

    .timeline-event.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .timeline-event:nth-child(odd) .event-content {
        margin-left: auto;
        text-align: left;
    }

    .timeline-event:nth-child(even) .event-content {
        margin-right: auto;
        text-align: right;
    }

    .event-marker {
        position: absolute;
        top: 0;
        left: 50%;
        width: 20px;
        height: 20px;
        background-color: #49535C;
        border-radius: 3px;
        transform: translateX(-50%);
        z-index: 2;
        transition: background-color 0.4s, transform 0.4s;
    }

    .timeline-event.active .event-marker {
        background-color: #213242;
        transform: translateX(-50%) scale(1.3);
    }

    .event-content {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 45%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        border: 1px solid #e1b783;
        gap: 10px;
        padding: 1.5rem;
    }

    .event-date {
        display: inline-block;
        font-family: 'Negrita';
        color: #213242;
        font-size: 25px;
    }

    .event-content h3 {
        font-family: 'Regular';
        color: #49535C;
        font-size: 18px;
    }

    .event-content p {
        font-family: 'Regular';
        color: #213242;
        font-size: 15px;
        text-align: justify;
    }

    .event-details {
        height: 0;
        overflow: hidden;
        opacity: 0;
        transition: height 0.4s, opacity 0.4s;
        margin-top: 0.5rem;
    }

    .timeline-event.active .event-details {
        height: auto;
        opacity: 1;
    }
}

/* 2. Desktop (1281px - 1366px) */
@media (min-width: 1281px) and (max-width: 1366px) {
    body {
        background-color: #f7f8f8;
    }

    main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .intro {
        display: flex;
        flex-direction: column;
        width: 900px;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 150px;
    }

    h1 {
        font-family: 'Negrita';
        color: #213242;
        font-size: 30px;
        text-align: center;
    }

    .texto_scroll {
        font-family: 'Regular';
        color: #49535C;
        font-size: 20px;
    }

    .scroll-hint {
        margin-top: 40px;
        animation: bounce 2.5s infinite;
    }

    .arrow-down {
        width: 30px;
        height: 30px;
        fill: #E1B783;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-10px);
        }

        60% {
            transform: translateY(-5px);
        }
    }

    .timeline-container {
        display: flex;
        width: 800px;
        padding: 0 20px 40px 20px;
    }

    .timeline {
        position: relative;
        padding: 3rem 0;
    }

    .timeline-line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 2px;
        background-color: #49535C;
        transform: translateX(-50%);
    }

    .timeline-event {
        position: relative;
        margin-bottom: 5rem;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.4s, transform 0.4s;
    }

    .timeline-event.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .timeline-event:nth-child(odd) .event-content {
        margin-left: auto;
        text-align: left;
    }

    .timeline-event:nth-child(even) .event-content {
        margin-right: auto;
        text-align: right;
    }

    .event-marker {
        position: absolute;
        top: 0;
        left: 50%;
        width: 20px;
        height: 20px;
        background-color: #49535C;
        border-radius: 3px;
        transform: translateX(-50%);
        z-index: 2;
        transition: background-color 0.4s, transform 0.4s;
    }

    .timeline-event.active .event-marker {
        background-color: #213242;
        transform: translateX(-50%) scale(1.3);
    }

    .event-content {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 45%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        border: 1px solid #e1b783;
        gap: 10px;
        padding: 1.5rem;
    }

    .event-date {
        display: inline-block;
        font-family: 'Negrita';
        color: #213242;
        font-size: 25px;
    }

    .event-content h3 {
        font-family: 'Regular';
        color: #49535C;
        font-size: 18px;
    }

    .event-content p {
        font-family: 'Regular';
        color: #213242;
        font-size: 15px;
        text-align: justify;
    }

    .event-details {
        height: 0;
        overflow: hidden;
        opacity: 0;
        transition: height 0.4s, opacity 0.4s;
        margin-top: 0.5rem;
    }

    .timeline-event.active .event-details {
        height: auto;
        opacity: 1;
    }
}

/* 3. Laptop (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    body {
        background-color: #f7f8f8;
    }

    main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .intro {
        display: flex;
        flex-direction: column;
        width: 800px;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 130px;
    }

    h1 {
        font-family: 'Negrita';
        color: #213242;
        font-size: 25px;
        text-align: center;
    }

    .texto_scroll {
        font-family: 'Regular';
        color: #49535C;
        font-size: 16px;
    }

    .scroll-hint {
        margin-top: 40px;
        animation: bounce 2.5s infinite;
    }

    .arrow-down {
        width: 30px;
        height: 30px;
        fill: #E1B783;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-10px);
        }

        60% {
            transform: translateY(-5px);
        }
    }

    .timeline-container {
        display: flex;
        width: 700px;
        padding: 0 20px 40px 20px;
    }

    .timeline {
        position: relative;
        padding: 3rem 0;
    }

    .timeline-line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 2px;
        background-color: #49535C;
        transform: translateX(-50%);
    }

    .timeline-event {
        position: relative;
        margin-bottom: 5rem;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.4s, transform 0.4s;
    }

    .timeline-event.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .timeline-event:nth-child(odd) .event-content {
        margin-left: auto;
        text-align: left;
    }

    .timeline-event:nth-child(even) .event-content {
        margin-right: auto;
        text-align: right;
    }

    .event-marker {
        position: absolute;
        top: 0;
        left: 50%;
        width: 15px;
        height: 15px;
        background-color: #49535C;
        border-radius: 3px;
        transform: translateX(-50%);
        z-index: 2;
        transition: background-color 0.4s, transform 0.4s;
    }

    .timeline-event.active .event-marker {
        background-color: #213242;
        transform: translateX(-50%) scale(1.3);
    }

    .event-content {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 45%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        border: 1px solid #e1b783;
        gap: 5px;
        padding: 1.5rem;
    }

    .event-date {
        display: inline-block;
        font-family: 'Negrita';
        color: #213242;
        font-size: 20px;
    }

    .event-content h3 {
        font-family: 'Regular';
        color: #49535C;
        font-size: 12px;
    }

    .event-content p {
        font-family: 'Regular';
        color: #213242;
        font-size: 12px;
        text-align: justify;
    }

    .event-details {
        height: 0;
        overflow: hidden;
        opacity: 0;
        transition: height 0.4s, opacity 0.4s;
        margin-top: 0.5rem;
    }

    .timeline-event.active .event-details {
        height: auto;
        opacity: 1;
    }
}

/* 4. Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    body {
        background-color: #f7f8f8;
    }

    main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .intro {
        display: flex;
        flex-direction: column;
        width: 600px;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 120px;
    }

    h1 {
        font-family: 'Negrita';
        color: #213242;
        font-size: 20px;
        text-align: center;
    }

    .texto_scroll {
        font-family: 'Regular';
        color: #49535C;
        font-size: 15px;
    }

    .scroll-hint {
        margin-top: 40px;
        animation: bounce 2.5s infinite;
    }

    .arrow-down {
        width: 20px;
        height: 20px;
        fill: #E1B783;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-10px);
        }

        60% {
            transform: translateY(-5px);
        }
    }

    .timeline-container {
        display: flex;
        width: 600px;
        padding: 0 10px 40px 10px;
    }

    .timeline {
        position: relative;
        padding: 3rem 0;
    }

    .timeline-line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 40px;
        width: 2px;
        background-color: #49535C;
        transform: translateX(-50%);
    }

    .timeline-event {
        position: relative;
        margin-bottom: 5rem;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.4s, transform 0.4s;
    }

    .timeline-event.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .timeline-event:nth-child(odd) .event-content {
        margin-left: auto;
        text-align: left;
    }

    .timeline-event:nth-child(even) .event-content {
        margin-right: auto;
        text-align: right;
    }

    .event-marker {
        position: absolute;
        top: 0;
        left: 40px;
        width: 15px;
        height: 15px;
        background-color: #49535C;
        border-radius: 3px;
        transform: translateX(-50%);
        z-index: 2;
        transition: background-color 0.4s, transform 0.4s;
    }

    .timeline-event.active .event-marker {
        background-color: #213242;
        transform: translateX(-50%) scale(1.3);
    }

    .event-content {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 80%;
        margin-left: 60px !important;
        text-align: left !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        border: 1px solid #e1b783;
        gap: 5px;
        padding: 1rem;
    }

    .event-date {
        display: inline-block;
        font-family: 'Negrita';
        color: #213242;
        font-size: 20px;
    }

    .event-content h3 {
        font-family: 'Regular';
        color: #49535C;
        font-size: 15px;
    }

    .event-content p {
        font-family: 'Regular';
        color: #213242;
        font-size: 12px;
        text-align: justify;
    }

    .event-details {
        height: 0;
        overflow: hidden;
        opacity: 0;
        transition: height 0.4s, opacity 0.4s;
        margin-top: 0.5rem;
    }

    .timeline-event.active .event-details {
        height: auto;
        opacity: 1;
    }
}

/* 5. Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    body {
        background-color: #f7f8f8;
    }

    main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .intro {
        display: flex;
        flex-direction: column;
        width: 420px;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 100px;
    }

    h1 {
        font-family: 'Negrita';
        color: #213242;
        font-size: 18px;
        text-align: center;
    }

    .texto_scroll {
        font-family: 'Regular';
        color: #49535C;
        font-size: 15px;
    }

    .scroll-hint {
        margin-top: 40px;
        animation: bounce 2.5s infinite;
    }

    .arrow-down {
        width: 30px;
        height: 30px;
        fill: #E1B783;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-10px);
        }

        60% {
            transform: translateY(-5px);
        }
    }

    .timeline-container {
        display: flex;
        width: 400px;
        padding: 0 10px 100px 10px;
    }

    .timeline {
        position: relative;
        padding: 3rem 0;
    }

    .timeline-line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 40px;
        width: 2px;
        background-color: #49535C;
        transform: translateX(-50%);
    }

    .timeline-event {
        position: relative;
        margin-bottom: 5rem;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.4s, transform 0.4s;
    }

    .timeline-event.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .timeline-event:nth-child(odd) .event-content {
        margin-left: auto;
        text-align: left;
    }

    .timeline-event:nth-child(even) .event-content {
        margin-right: auto;
        text-align: right;
    }

    .event-marker {
        position: absolute;
        top: 0;
        left: 40px;
        width: 15px;
        height: 15px;
        background-color: #49535C;
        border-radius: 3px;
        transform: translateX(-50%);
        z-index: 2;
        transition: background-color 0.4s, transform 0.4s;
    }

    .timeline-event.active .event-marker {
        background-color: #213242;
        transform: translateX(-50%) scale(1.3);
    }

    .event-content {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 80%;
        margin-left: 70px !important;
        text-align: left !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        border: 1px solid #e1b783;
        gap: 5px;
        padding: 1rem;
    }

    .event-date {
        display: inline-block;
        font-family: 'Negrita';
        color: #213242;
        font-size: 20px;
    }

    .event-content h3 {
        font-family: 'Regular';
        color: #49535C;
        font-size: 15px;
    }

    .event-content p {
        font-family: 'Regular';
        color: #213242;
        font-size: 12px;
        text-align: justify;
    }

    .event-details {
        height: 0;
        overflow: hidden;
        opacity: 0;
        transition: height 0.4s, opacity 0.4s;
        margin-top: 0.5rem;
    }

    .timeline-event.active .event-details {
        height: auto;
        opacity: 1;
    }
}

/* 6. Mobile Small (320px - 480px) */
@media (min-width: 320px) and (max-width: 480px) {
    body {
        background-color: #f7f8f8;
    }

    main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .intro {
        display: flex;
        flex-direction: column;
        width: 310px;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 100px;
    }

    h1 {
        font-family: 'Negrita';
        color: #213242;
        font-size: 14px;
        text-align: center;
    }

    .texto_scroll {
        font-family: 'Regular';
        color: #49535C;
        font-size: 15px;
    }

    .scroll-hint {
        margin-top: 40px;
        animation: bounce 2.5s infinite;
    }

    .arrow-down {
        width: 30px;
        height: 30px;
        fill: #E1B783;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-10px);
        }

        60% {
            transform: translateY(-5px);
        }
    }

    .timeline-container {
        display: flex;
        width: 310px;
        padding: 0 10px 100px 10px;
    }

    .timeline {
        position: relative;
        padding: 3rem 0;
    }

    .timeline-line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 40px;
        width: 2px;
        background-color: #49535C;
        transform: translateX(-50%);
    }

    .timeline-event {
        position: relative;
        margin-bottom: 5rem;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.4s, transform 0.4s;
    }

    .timeline-event.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .timeline-event:nth-child(odd) .event-content {
        margin-left: auto;
        text-align: left;
    }

    .timeline-event:nth-child(even) .event-content {
        margin-right: auto;
        text-align: right;
    }

    .event-marker {
        position: absolute;
        top: 0;
        left: 40px;
        width: 15px;
        height: 15px;
        background-color: #49535C;
        border-radius: 3px;
        transform: translateX(-50%);
        z-index: 2;
        transition: background-color 0.4s, transform 0.4s;
    }

    .timeline-event.active .event-marker {
        background-color: #213242;
        transform: translateX(-50%) scale(1.3);
    }

    .event-content {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 80%;
        margin-left: 70px !important;
        text-align: left !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        border: 1px solid #e1b783;
        gap: 5px;
        padding: 1rem;
    }

    .event-date {
        display: inline-block;
        font-family: 'Negrita';
        color: #213242;
        font-size: 20px;
    }

    .event-content h3 {
        font-family: 'Regular';
        color: #49535C;
        font-size: 15px;
    }

    .event-content p {
        font-family: 'Regular';
        color: #213242;
        font-size: 12px;
        text-align: justify;
    }

    .event-details {
        height: 0;
        overflow: hidden;
        opacity: 0;
        transition: height 0.4s, opacity 0.4s;
        margin-top: 0.5rem;
    }

    .timeline-event.active .event-details {
        height: auto;
        opacity: 1;
    }
}