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

.hero, .feature{
    margin-top: 30px;
}
.feature{
    border: 10px;
    background: rgba(211, 205, 205, 0.15);

}

.wrapper-inner-main{
    display: flex;
    flex-direction: row;
    max-width: 1320px;
    gap: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    top: 0;
    padding-right: 5px;
    background-color: transparent !important;
    margin-bottom: 30px;
}

.main-h2{
    text-align: center;
    line-height: 2.8rem;
    font-size: 2.4rem;
    font-weight: 300;
    margin: 0 auto;
    max-width: 680px; 
}

/* CTA Section */
.cta-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.cta-intro {
    font-size: 1.25rem;
    font-weight: 600;
    color: #565656;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #31A6DF;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background: #24397B;
    transform: translateY(-2px);
}

.cta-icon {
    width: 40px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    filter: brightness(0) invert(1);
}

.cta-icon-auto {
    background-image: url('/static/frontend/images/icos/ico-auto.svg');
}

.cta-icon-moto {
    background-image: url('/static/frontend/images/icos/ico-moto.svg');
}

/* Hero description */
.hero-description {
    line-height: 1.6;
}

h1 {
    font-size: 2.5rem;
    color: #24397B;
    margin-bottom: 10px;
    text-align: left;
}

.wrapper-inner-main h1 {
    text-align: left;
}

.companias-container{
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.companias-img-container{
    display: flex;
    justify-content: center;
    flex-direction: row;
    width: 100%;
    gap: 15px;
}

.companias-img-container img{
    height: 50px;
}

@media only screen and (max-width: 768px) {
    .companias-img-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 15px;
        justify-items: center;
        align-items: center;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .companias-img-container img {
        height: 45px;
        display: block;
        margin: 0 auto;
    }
}

.wrapper{
    max-width: 1320px;
}

.border-box{
    box-sizing: border-box;
}
.w-30{
    width: 30%;
}
.w-50{
    width: 50%;
}
.w-100{
    width: 100%;
}
.h-100{
    height: 100%;
}
.p-5{
    padding: 5px;
}
.p-10{
    padding: 10px;
}
.p-20{
    padding: 20px;
}
.pt-20{
    padding-top: 20px;
}
.pb-20{
    padding-bottom: 20px;
}
.px-10{
    padding-top: 10px;
    padding-bottom: 10px;
}
.px-20{
    padding-top: 20px;
    padding-bottom: 20px;
}
.px-30{
    padding-top: 30px;
    padding-bottom: 30px;
}
.px-4{
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}
.me-md-2 {
    margin-right: .5rem !important;
}
.m-0{
    margin: 0;
}
.p-0{
    padding: 0;
}
.text-left{
    text-align: left;
}
.btn-lg {
    padding: .5rem 1rem;
    font-size: 1.25rem;
    border-radius: .3rem;
}
.gap-2 {
    gap: .5rem !important;
}
.flex-center-center{
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-top-center{
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.flex-top-space{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.d-flex{
    display: flex;
}
.flex-start{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.flex-start-row{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}
.row{
    flex-direction: row;
}
.column{
    flex-direction: column;
}
.max-w-100{
    max-width: 100px;
}
.radius-10{
    border-radius: 10px;
}

/* ============================================
   FEATURES GRID - DESKTOP
   ============================================ */

.feature {
    max-width: 1320px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.features-desktop {
    display: block;
    padding: 20px 0;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 20px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-column {
    padding: 25px 30px;
    border-right: 1px solid rgba(36, 57, 123, 0.1);
    position: relative;
}

.feature-column:first-child {
    padding-left: 10px;
}

.feature-column:last-child {
    padding-right: 10px;
}

.feature-row h2 {
    color: #24397B;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #31A6DF;
    display: inline-block;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding: 8px 0 8px 24px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: #31A6DF;
    border-radius: 50%;
}

/* Hover effect sutil en columnas */
.feature-column:hover {
    background: rgba(49, 166, 223, 0.03);
}

.features-accordion {
    display: none;
}

/* Accordion styles */
.accordion-item {
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #24397B;
    cursor: pointer;
    list-style: none;
    background: transparent;
    transition: background-color 0.2s ease;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: #24397B;
    transition: transform 0.2s ease;
}

.accordion-item[open] .accordion-header::after {
    content: '-';
}

.accordion-header:hover {
    background-color: rgba(36, 57, 123, 0.05);
}

.accordion-content {
    padding: 0 20px 16px 20px;
    animation: slideDown 0.2s ease-out;
}

.accordion-content .feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.accordion-content .feature-list li {
    position: relative;
    padding: 8px 0 8px 24px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-content .feature-list li:last-child {
    border-bottom: none;
}

.accordion-content .feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: #31A6DF;
    border-radius: 50%;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.main-img-flex{
    max-width: 100%;
    min-width: 500px;
}
.grayscale{
    filter: grayscale(85%);
}
.grayscale:hover{
    filter: grayscale(0%);
}

@media only screen and (max-width: 1380px) {
    .wrapper{
        max-width: 100%;
        padding: 10px;
    }
}

@media only screen and (max-width: 1000px) {
    .main-img-flex{
        max-width: 100%;
        min-width: 400px !important;
    }
}

@media only screen and (max-width: 768px) {
    .main{
        padding: 20px;
        height: fit-content;
    }

    .wrapper-inner-main{
        flex-direction: column;
        margin-bottom: 5px;
        max-width: 100%;
    }

    /* Orden en mobile: imagen primero, contenido después */
    .wrapper-inner-main > div:first-child {
        order: 2;
    }

    .wrapper-inner-main > div:last-child {
        order: 1;
    }

    /* Reorganizar contenido interno: título, CTA, texto */
    .wrapper-inner-main .flex-start {
        display: flex;
        flex-direction: column;
    }

    .wrapper-inner-main .flex-start h1 {
        order: 1;
    }

    .wrapper-inner-main .flex-start .cta-section {
        order: 2;
        margin: 25px 0;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .wrapper-inner-main .flex-start p {
        order: 3;
    }

    .cta-intro {
        font-size: 1.2rem;
        font-weight: 600;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .cta-btn {
        padding: 14px 24px;
    }

    .cta-icon {
        width: 48px;
        height: 28px;
    }

    .wrapper{
        display: flex;
        flex-direction: column;
    }

    .r-col{
        flex-direction: column;
    }

    .r-w-100{
        width: 100%;
    }

    h1,
    .wrapper-inner-main h1 {
        font-size: 1.5rem;
        line-height: 1.8rem;
        text-align: center;
    }

    .wrapper-inner-main p {
        margin: 0px;
        text-align: center;
    }

    /* Ocultar texto extra en mobile */
    .hero-description-more {
        display: none;
    }

    /* Features: Mostrar acordeón, ocultar grid */
    .features-desktop {
        display: none;
    }

    .features-accordion {
        display: block;
        padding: 10px 0;
    }

    .companias-container{
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-bottom: 10px;
    }

    .main-h2{
        font-size: 1.5rem;
        line-height: 1.8rem;
    }

    .main-img-flex{
        max-width: 100%;
        padding: 0 25%!important;
        width: 350px !important;
        min-width: 100% !important;
        box-sizing: border-box;
    }
}

@media only screen and (max-width: 480px) {
    .main-img-flex{
        max-width: 100%;
        padding: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .feature-list li{
        word-break: break-word;
    }

    h2{
        word-break: break-word;
    }

    /* CTA Section para pantallas muy pequeñas */
    .cta-section {
        margin: 20px 0;
        gap: 10px;
    }

    .cta-intro {
        font-size: 1.1rem;
    }

    .cta-buttons {
        gap: 10px;
    }

    .cta-btn {
        padding: 12px 20px;
    }

    .cta-icon {
        width: 44px;
        height: 26px;
    }
}