:root {
    --rojo-idonea: #e63946;
    --texto-oscuro: #333333;
}

body {
    font-family: 'Inter', sans-serif;
    padding-top: 80px;
}

.wt {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition-duration: 0.3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
    background-color: #00d757;
}

.sign {
    width: 100%;
    transition-duration: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign svg {
    width: 25px;
}

.sign svg path {
    fill: white;
}
.text {
    position: absolute;
    right: 0%;
    width: 0%;
    opacity: 0;
    color: white;
    font-size: 1em;
    font-weight: 600;
    transition-duration: 0.3s;
}

.wt:hover {
    width: 170px;
    border-radius: 40px;
    transition-duration: 0.3s;
}

.wt:hover .sign {
    width: 30%;
    transition-duration: 0.3s;
    padding-left: 10px;
}

.wt:hover .text {
    opacity: 1;
    width: 70%;
    transition-duration: 0.3s;
    padding-right: 10px;
}
.wt:active {
    transform: translate(2px, 2px);
}


.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #eeeeee;
}

.navbar-brand {
    font-weight: 700;
    color: var(--texto-oscuro) !important;
}

.navbar-brand span {
    color: var(--rojo-idonea);
}

.nav-link {
    color: var(--texto-oscuro) !important;
    font-weight: 500;
    margin: 0 5px;
    position: relative;
    padding-bottom: 5px !important;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--rojo-idonea);
    transition: width 0.3s ease;
    z-index: 1;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rojo-idonea) !important;
}

.dropdown-toggle::after {
    color: var(--rojo-idonea);
    margin-left: 0.5em;
    vertical-align: middle;
    border-top: 0.3em solid;
}

.btn-contacto {
    background-color: var(--rojo-idonea);
    color: white !important;
    border: 2px solid var(--rojo-idonea); 
    border-radius: 8px;
    padding: 8px 24px !important; 
    margin-left: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

.btn-contacto::before {
    display: none !important;
}

.btn-contacto:hover {
    background-color: #c1c1c1; 
    color: var(--rojo-idonea) !important; 
    border-color: #ffffff; 
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2); 
}

.btn-contacto:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.1s;
}

section {
    padding-top: 100px;
}
section:nth-child(even) {
    background: #f8f9fa;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
#inicio .carousel-item {
    height: calc(100vh - 80px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#inicio .carousel-item img {
    display: none;
}

.carousel-fade .carousel-item {
    transition-duration: 0.8s;
}
#nosotros {
    padding: 120px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    position: relative;
}

#nosotros::before {
    content: 'IDÓNEA';
    position: absolute;
    top: 50px;
    left: -50px;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(0,0,0,0.02);
    z-index: 0;
}

.intro-box {
    text-align: left;
    padding-right: 50px;
}

.line-red {
    width: 60px;
    height: 4px;
    background-color: var(--rojo-idonea);
    display: block;
    margin-bottom: 20px;
}

.comp-wrapper {
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.comp-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.1);
    border-color: rgba(230, 57, 70, 0.2);
}

.comp-icon-box {
    width: 100px;
    height: 100px;
    background: #fdfdfd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.comp-icon-box img {
    width: 80px;
    transition: transform 0.3s ease;
}

.comp-wrapper:hover .comp-icon-box img {
    transform: rotateY(180deg);
}

.comp-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: var(--rojo-idonea);
    width: 115%;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
    transform: rotate(-3deg);
}

.bg-number {
    position: absolute;
    right: 10px;
    top: -10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    z-index: 1;
}
#valor-idoneidad {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.benefit-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-persona {
    border-top: 6px solid var(--rojo-idonea);
}
.card-empresa {
    border-top: 6px solid #333333;
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.benefit-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.icon-red {
    background: rgba(230, 57, 70, 0.1);
    color: var(--rojo-idonea);
}
.icon-dark {
    background: rgba(51, 51, 51, 0.1);
    color: #333333;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    transition: transform 0.2s ease;
}

.benefit-item:hover {
    transform: translateX(8px);
}

.benefit-check {
    color: var(--rojo-idonea);
    font-size: 1.2rem;
    margin-top: 2px;
}

.benefit-item-content h6 {
    font-weight: 700;
    color: var(--texto-oscuro);
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.benefit-item-content p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.timeline-wrapper {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.timeline-container {
    max-width: 750px;
    width: 100%;
    position: relative;
    padding-left: 60px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: #e9ecef;
    z-index: 0;
}

.timeline-step {
    position: relative;
    margin-bottom: 15px;
    z-index: 1;
}

.timeline-icon {
    position: absolute;
    left: -51px;
    top: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 4px solid #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-content {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--texto-oscuro);
    transition: color 0.3s ease;
}

.timeline-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    transform: rotate(45deg);
    transition: transform 0.4s ease;
}

.timeline-body {
    display: grid;
    grid-template-rows: 0fr; 
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-body > div {
    overflow: hidden;
}

.timeline-description {
    padding-top: 15px;
    margin-bottom: 5px;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.timeline-step.active .timeline-body {
    grid-template-rows: 1fr; 
}

.timeline-step.active .timeline-content {
    background-color: #ffffff;
    border-color: var(--rojo-idonea);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.08);
}

.timeline-step.active .timeline-icon {
    background-color: var(--rojo-idonea);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
}

.timeline-step.active .timeline-title {
    color: var(--rojo-idonea);
}

.timeline-step.active .timeline-arrow {
    transform: rotate(-135deg); 
    border-color: var(--rojo-idonea);
}

@media (max-width: 576px) {
    .timeline-container {
        padding-left: 45px;
    }
    .timeline-container::before {
        left: 14px;
    }
    .timeline-icon {
        left: -46px;
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

#certificaciones {
    padding: 80px 0;
    background-color: #f4f4f4;
}

.cert-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.5s ease
}

.badge-tipo {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    pointer-events: none;
}

.badge-estado {
    position: absolute;
    bottom: 10px;
    left: 12px;
    z-index: 10;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.estado-acreditado {
    background-color: #d1e7dd;
    color: #0a3622;
}

.estado-no-acreditado {
    background-color: #e2e3e5;
    color: #41464b;
}


.bg-white {
    background-color: #ffffff !important;
    color: #333 !important;
}
.bg-dark {
    background-color: #333333 !important;
    color: #ffffff !important;
}

.btn-red-full {
    background-color: #c12026;
    color: white;
    border: none;
    padding: 18px;
    font-weight: bold;
    width: 100%;
    margin-top: auto; 
    transition: 0.3s;
}

.btn-red-full:hover {
    background-color: #a11a1f;
    letter-spacing: 0.5px;
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-btn {
    background-color: #c12026; 
    color: white;
    border: none;
    padding: 15px;
    font-weight: bold;
    width: 100%;
    height: 28%;
    text-align: center;
    transition: background 0.3s;
}

.cert-btn:hover {
    background-color: #a11a1f;
}

.modal-content {
    border-radius: 12px;
    border: none;
}
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #eee;
}
.info-label {
    color: #c12026;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 5px;
}
.info-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    height: 100%;
    border: 1px solid #eee;
}
.list-custom {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}
.list-custom li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}
.list-custom li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c12026;
    font-weight: bold;
}

.exp-main-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 12px;
}


.similares-box {
    background-color: #f1f1f1;
    border-left: 3px solid #666;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
}

.similares-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.similares-content {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}


.nota-legal {
    font-size: 0.75rem;
    color: #999;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
    margin-top: 15px;
    display: block;
}
.filter-menu {
    background: #eeeeee;
    border-radius: 50px;
    display: inline-flex;
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--rojo-idonea);
    color: white;
    box-shadow: 0 4px 10px rgba(193, 32, 38, 0.3);
}


.cert-item {
    transition: all 0.4s ease;
}

.cert-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

.archivo-publico-container {
    background-color: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    padding: 30px;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.archivo-publico-container:hover {
    border-color: var(--rojo-idonea);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.archivo-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.archivo-icono {
    font-size: 2.5rem;
    color: var(--rojo-idonea);
    background: white;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.archivo-texto h4 {
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--texto-oscuro);
}

.archivo-texto p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}


.btn-pdf {
    background-color: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-pdf:hover {
    background-color: var(--rojo-idonea);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .archivo-publico-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .archivo-info {
        flex-direction: column;
    }
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
    /* Efecto de desvanecimiento a los lados (Fade) */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    align-items: center;
    animation: marquee 35s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.ally-item {
    flex: 0 0 auto;
    width: 200px;
    height: 100px;
    margin: 0 25px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.ally-item img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    display: block;
    object-fit: contain;
}

.ally-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .ally-item {
        width: 150px;
        margin: 0 15px;
    }
    .ally-item img {
        max-height: 55px;
    }
}
.section-legal {
    padding: 100px 0;
    background-color: #ffffff;
}

.legal-card {
    cursor: pointer; 
    position: relative;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.legal-card:hover {
    background-color: #fdfdfd;
    border-color: #c12026;
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #fff5f5; 
    color: #c12026;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.legal-card:hover .icon-wrapper {
    background-color: #c12026;
    color: #ffffff;
}

.legal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.legal-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-legal {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    background-color: #c12026;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    display: block;
}

.btn-legal:hover {
    background-color: #333;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.footer-light {
    background-color: #ffffff; 
    color: #333;
    padding: 80px 0 20px;
    border-top: 1px solid #eee;
}

.footer-logo-img {
    max-width: 200px;
    margin-bottom: 25px;
}

.footer-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

.footer-slogan-red {
    color: #c12026;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-title-dark {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #555;
    text-decoration: none;
    transition: 0.3s;
}

.contact-link:hover {
    color: #c12026;
}

.contact-link i {
    color: #c12026;
    font-size: 1.2rem;
}

.social-circle {
    width: 38px;
    height: 38px;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #333;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-circle:hover {
    background: #c12026;
    color: white;
    transform: translateY(-3px);
}

.form-footer-light .form-control {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.form-footer-light .form-control:focus {
    border-color: #c12026;
    box-shadow: 0 0 0 3px rgba(193, 32, 38, 0.1);
}

.btn-send-red {
    background-color: #c12026;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-send-red:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
}

.copyright-bar {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #999;
}