* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Museo900';
    src: url('/fonts/Museo900-Regular.woff2') format('woff2'),
        url('/fonts/Museo900-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Museo100';
    src: url('/fonts/Museo100-Regular.woff2') format('woff2'),
        url('/fonts/Museo100-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Museo900', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgb(0 0 0 / 0%), rgb(0 0 0 / 21%)), url(/Img/IMAGENES/webp/HeaderNos.webp);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: white;
    margin-top: 70px;
    position: relative;
    padding-bottom: 5dvh;
}

span.resalte {
    font-weight: bold;
}

.hero-content {
    text-align: center;
    max-width: 150dvh;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: clamp(1.2rem, 3vw, 1.9rem);
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Mission Vision Section */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 70vh;
}

.mission-card,
.vision-card,
.fyttsa-id-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
}

.mission-card::before,
.fyttsa-id-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: -2;
}

.mission-card::before {
    background-image: url('/Img/IMAGENES/webp/NosIzq.webp');
}

.fyttsa-id-card::before {
    background-image: url('/Img/IMAGENES/webp/NosDer.webp');
}

.mission-card::after,
.fyttsa-id-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(9 50 165 / 80%);
    transition: background-color 0.5s ease;
    z-index: -1;
}

.mission-card:hover::before,
.fyttsa-id-card:hover::before {
    transform: scale(1.1);
}

.mission-card:hover::after,
.fyttsa-id-card:hover::after {
    background: rgba(30, 58, 138, 0.9);
}

.vision-card {
    background: #dad7d7;
    position: relative;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: all 0.5s ease;
    z-index: -1;
}

.vision-card:hover::before {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.mission-card h2,
.fyttsa-id-card h2 {
    color: white;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: bold;
    transform: translateY(0);
    transition: all 0.5s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.vision-card h2 {
    color: #1e40af;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 2rem;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.mission-card:hover h2,
.fyttsa-id-card:hover h2,
.vision-card:hover h2 {
    transform: translateY(-10px) scale(1.05);
}

.vision-icon {
    font-size: clamp(3rem, 6vw, 4rem);
    color: #64748b;
    margin-bottom: 2rem;
    transition: all 0.5s ease;
}

.vision-card:hover .vision-icon {
    transform: scale(1.2) rotate(5deg);
    color: #1e40af;
}

.vision-text {
    color: #475569;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.vision-card:hover .vision-text {
    transform: translateY(-5px);
    color: #334155;
}

/* Timeline Section */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

.timeline-section {
    padding: 0 0 4rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

/* Ondas estáticas superiores */
.top-waves {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: 1;
    overflow: hidden;
}

.wave-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-1 {
    opacity: 1;
}

.wave-2 {
    opacity: 0.8;
}

.wave-3 {
    opacity: 0.6;
}

.wave-4 {
    opacity: 0.4;
}

/* SVG Background Elements */
.bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.tools-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
}

.tool-element {
    position: absolute;
    animation: float 25s infinite linear;
}

.tool-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.tool-2 {
    top: 25%;
    right: 8%;
    animation-delay: -8s;
}

.tool-3 {
    bottom: 30%;
    left: 12%;
    animation-delay: -15s;
}

.tool-4 {
    bottom: 15%;
    right: 15%;
    animation-delay: -20s;
}

.tool-5 {
    top: 65%;
    left: 3%;
    animation-delay: -5s;
}

.tool-6 {
    top: 45%;
    right: 3%;
    animation-delay: -12s;
}

.gear-element {
    position: absolute;
    animation: rotate 30s infinite linear;
}

.gear-1 {
    top: 20%;
    left: 85%;
    animation-delay: 0s;
}

.gear-2 {
    bottom: 25%;
    left: 8%;
    animation-delay: -10s;
}

.gear-3 {
    top: 70%;
    right: 20%;
    animation-delay: -20s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) rotate(90deg);
    }

    50% {
        transform: translateY(-60px) rotate(180deg);
    }

    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pattern-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    opacity: 0.02;
    z-index: 1;
}

.timeline-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-top: 10rem;
}

.company-logo {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: #1a365d;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    line-height: 0.9;
    position: relative;
}

.company-logo::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #1e3a8a, #1e40af, transparent);
    border-radius: 2px;
}

.timeline-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #64748b;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.timeline-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: transparent;
}

.timeline-controls {
    position: absolute;
    top: 50%;
    left: -3rem;
    right: -3rem;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
    pointer-events: none;
}

.nav-button {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-button::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent, rgba(30, 58, 138, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-button:hover:not(:disabled) {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.2), 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #1e3a8a;
}

.nav-button:hover:not(:disabled)::before,
.nav-button:hover:not(:disabled)::after {
    opacity: 1;
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.timeline-track {
    overflow: hidden;
    position: relative;
}

.timeline-items {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item {
    flex: 0 0 100%;
    padding: 2rem;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-card {
    width: 100%;
    max-width: 1400px;
    background: transparent;
    padding: 0;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.timeline-year-section {
    text-align: center;
    position: relative;
    padding: 2.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.02), rgba(30, 64, 175, 0.01));
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.timeline-year-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.4));
    border-radius: 24px;
    z-index: -1;
}

.timeline-year {
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 900;
    color: #1e293b;
    line-height: 0.8;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
    position: relative;
    z-index: 2;
}

.timeline-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.timeline-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a, #1e40af);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.timeline-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.timeline-card:hover .timeline-icon {
    transform: translateY(-10px) rotate(12deg) scale(1.1);
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.4);
}

.timeline-card:hover .timeline-icon::before {
    opacity: 1;
}

.timeline-card:hover .timeline-icon::after {
    transform: rotate(45deg) translate(50%, 50%);
}

.timeline-icon i.material-icons {
    font-size: 2.5rem;
    color: #ffffff;
    z-index: 3;
    position: relative;
}

.timeline-content {
    padding: 2rem 0;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, rgba(30, 58, 138, 0.2), transparent);
    border-radius: 2px;
}

.timeline-card-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    position: relative;
}

.timeline-card-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #1e40af);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.timeline-card:hover .timeline-card-title::after {
    width: 80px;
}

.timeline-description {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    color: #475569;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.timeline-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    background: rgba(248, 250, 252, 0.8);
    padding: 1.8rem;
    transition: all 0.4s ease;
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(30, 58, 138, 0.08);
    backdrop-filter: blur(10px);
}

.detail-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.02), rgba(30, 64, 175, 0.01));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.detail-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.detail-item:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 58, 138, 0.15);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.detail-item:hover::before {
    opacity: 1;
}

.detail-item:hover::after {
    transform: scaleX(1);
}

.detail-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.detail-value {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.3;
}

.timeline-info {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    z-index: 15;
}

.current-slide {
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.timeline-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #94a3b8;
    transform: scale(1.3);
}

.dot.active {
    background: #1e3a8a;
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.2);
}

.dot.active::before {
    border-color: rgba(30, 58, 138, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .timeline-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .timeline-content::before {
        display: none;
    }

    .timeline-controls {
        left: -2rem;
        right: -2rem;
    }
}

@media (max-width: 768px) {
    .timeline-section {
        padding: 0 0 3rem 0;
    }

    .timeline-header {
        padding-top: 8rem;
    }

    .timeline-item {
        padding: 1.5rem 1rem;
        min-height: 400px;
    }

    .nav-button {
        width: 56px;
        height: 56px;
    }

    .timeline-controls {
        left: -1rem;
        right: -1rem;
    }

    .timeline-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-info {
        flex-direction: column;
        gap: 1.5rem;
        bottom: 1rem;
    }

    .timeline-year {
        font-size: clamp(3rem, 12vw, 4rem);
    }

    .top-waves {
        height: 180px;
    }

    .top-waves {
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 250px;
        z-index: 1;
        overflow: hidden;
    }
}

@media (max-width: 480px) {

    .top-waves {
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 250px;
        z-index: 1;
        overflow: hidden;
    }

    .timeline-header {
        margin-bottom: 3rem;
        padding-top: 6rem;
    }

    .timeline-year-section {
        padding: 2rem;
    }

    .timeline-icon {
        width: 70px;
        height: 70px;
    }

    .timeline-icon i.material-icons {
        font-size: 2rem;
    }

    .top-waves {
        height: 150px;
    }
}








/* Wave Separators */
.wave-separator {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    margin-top: -7.75dvh;
    position: relative;
    z-index: 1;
}

.wave-separator.gray-wave {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    margin-top: -0.6dvh;
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: clamp(50px, 8vw, 70px);
}

.wave-separator .shape-fill {
    fill: #FFFFFF;
}

/* Color variations for different sections */
.wave-separator .shape-fill {
    fill: #3a86ff;
    /* Color azul - puedes cambiarlo */
}

.three-waves .shape-fill:nth-child(1) {
    fill: #3a86ff;
    opacity: 0.5;
}

.three-waves .shape-fill:nth-child(2) {
    fill: #3a86ff;
    opacity: 0.75;
}

.three-waves .shape-fill:nth-child(3) {
    fill: #3a86ff;
}

.wave-container {
    display: flex;
    flex-direction: column;
}

.wave-separator {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
    /* Ajusta esta altura según necesites */
}

.mirrored svg {
    transform: rotate(180deg);
    /* Esto voltea las olas */
    margin-top: -1px;
    /* Elimina cualquier espacio entre las olas */
}

.shape-fill {
    fill: #FFFFFF;
    /* Color de las olas, cámbialo según necesites */
}

.wave-separator.three-waves.mirrored {
    transform: none;
    margin-top: 0dvh;
    position: absolute;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mission-vision {
        grid-template-columns: 1fr;
    }

    .mission-card,
    .vision-card,
    .fyttsa-id-card {
        min-height: 400px;
    }

    .timeline-details {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .timeline-item {
        padding: 1rem;
        min-height: auto;
    }

    .timeline-card {
        padding: 1.5rem;
    }

    .nav-button {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .wave-separator {
        margin-top: -6dvh;
    }

    .wave-separator.gray-wave {
        margin-top: -0.5dvh;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 40vh;
        min-height: 300px;
    }

    .hero-content p {
        line-height: 1.4;
    }

    .timeline-year-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .timeline-details {
        grid-template-columns: 1fr;
    }

    .wave-separator svg {
        height: 5dvh;
    }

    .wave-separator {
        margin-top: -5dvh;
    }

    .wave-separator.gray-wave {
        margin-top: -0.4dvh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        margin-top: 15dvh;
    }

    .mission-card,
    .vision-card,
    .fyttsa-id-card {
        padding: 2rem 1rem;
    }

    .vision-text {
        max-width: 250px;
    }

    .timeline-section {
        padding: 3rem 0;
    }

    .timeline-card {
        padding: 1rem;
    }

    .timeline-description {
        margin-bottom: 1.5rem;
    }
}