﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,700&display=swap');

.trazosSection {
    background-color: #f0f7ff !important;
    padding: 80px 0px;
}

.main-title-part1 {
    width: 129px;
    height: 59px;
    color: #022169;
    text-align: left;
    font: normal normal normal 45px/50px Roboto;
    letter-spacing: 0px;
    text-transform: uppercase;
}

/* --- DESKTOP STYLES --- */
#contenedorCards .options {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    height: 700px;
    margin-bottom: 50px;
}

#contenedorCards .option {
    position: relative;
    border-radius: 65px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 130px;
    flex-grow: 0;
}

#contenedorCards .option.active {
    flex-grow: 1;
    width: auto;
    cursor: default;
}

#contenedorCards .option .shadow-pill {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(2,33,105,0.85) 0%, rgba(0,180,216,0.2) 100%);
    z-index: 1;
    border-radius: 65px;
    transition: all 0.5s ease;
}

#contenedorCards .option .label-pill {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    align-items: flex-end;
    padding: 35px 50px;
    justify-content: space-between;
}

.bottom-left-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bottom-left-info.inactive-center {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.numero-pill {
    width: 56px;
    height: 128px;
    color: #FFFFFF;
    text-align: left;
    font: normal normal bold 97px/128px Roboto;
    letter-spacing: 0px;
    opacity: 1;
}

.sub-pill {
    width: 194px;
    height: 24px;
    color: #FFFFFF;
    text-align: left;
    font: normal normal medium 18px/24px Roboto;
    letter-spacing: 0px;
    opacity: 1;
    display: block;
}

.main-pill {
    color: #FFFFFF;
    text-align: left;
    font: normal normal bold 35px/46px Roboto;
    letter-spacing: 0px;
    opacity: 1;
    white-space: nowrap;
}

#contenedorCards .option .info-pill.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contenedorCards .option .info-pill.vertical-text .main-pill {
    margin-right: 25px;
}

.texto-box-container {
    position: absolute;
    bottom: 180px;
    left: 40px;
    margin: 0;
    z-index: 5;
}

.svg-line-decor {
    position: absolute;
    width: 670px;
    height: 436px;
    top: -300px;
    left: -60px;
    pointer-events: none;
    z-index: 2;
}

.textoDentro-pill {
    width: 500px;
    height: 228px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 30px 40px;
    position: relative;
    display: flex;
    top: -182px;
    flex-direction: column;
    justify-content: center;
    border-radius: 4px;
    background: rgba(2, 33, 105, 0.75);
    opacity: 0.9;
}

.textoDentro-pill.outline-border {
    border: 2px solid #FFFFFF;
}

.textoDentro-pill p {
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 25px;
}

.link-pill {
    color: #00B4D8 !important;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
}

/* --- MOBILE STYLES V3 --- */
@media (max-width: 991px) {
    .trazosSection {
        padding: 40px 0px;
    }

    .enfoquesMobile {
        display: flex;
        flex-direction: column;
        row-gap: 20px; /* Controla el espacio entre cápsulas */
        padding: 0 15px;
    }

    .option-mobile {
        position: relative;
        width: 100%;
        height: 120px; /* Altura cerrada */
        border-radius: 40px;
        overflow: hidden;
        background-size: cover;
        background-position: center;
        cursor: pointer;
        transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 40px;
    }

    .option-mobile.active {
        height: 590px; /* Altura abierta */
        justify-content: flex-start;
        padding-top: 40px;
    }

    .mobile-pill-shadow {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(0deg, rgba(2,33,105,0.9) 0%, rgba(2,33,105,0.4) 100%);
        z-index: 1;
        transition: background 0.5s ease;
    }

    .option-mobile.active .mobile-pill-shadow {
        background: rgba(2, 33, 105, 0.85);
    }

    .mobile-pill-content {
        position: relative;
        z-index: 2;
        width: 100%;
        /* Reset de posibles herencias de desktop */
        top: 0 !important;
        left: 0 !important;
    }

    .mobile-main-pill {
        color: #FFFFFF;
        font: normal normal bold 30px/40px Roboto;
        transition: all 0.5s ease;
    }

    .mobile-main-pill.title-up {
        font-size: 24px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        padding-bottom: 10px;
    }

    .mobile-extra-info {
        opacity: 0;
        animation: fadeIn 0.6s forwards 0.3s;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .mobile-extra-info p {
        color: #FFFFFF;
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 20px;
    }

    .mobile-numero-pill {
        height: auto;
        font: normal normal bold 60px/60px Roboto;
        width: auto;
        color: #FFFFFF;
    }
}