/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1A1A1A;
    line-height: 1.5;
}

/* Sección principal */
.electric-cars-section {
    padding: 40px 0;
    background-color: #FFF;
    padding-bottom: 0;
}

.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
}

/* Header de la sección */
.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    color: #1A1A1A;
    margin-bottom: 16px;
    padding: 0 10px;
}

.section-description {
    color: #4A4A4A;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Wrapper de tarjetas */
.cars-wrapper {
    position: relative;
    margin-bottom: 32px;
}

/* Swiper específico para coches eléctricos */
.electric-cars-swiper {
    display: block;
    padding-bottom: 0;
    position: relative;
}

/* Controles específicos para este carrusel */
.electric-cars-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding: 0 20px;
}

/* Paginación específica */
.electric-cars-pagination {
    position: static !important;
    width: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #FFFFFF;
    border-radius: 100px;
    border: 1px solid #D9D9D9;
}

/* Bullets específicos */
.electric-cars-pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: #FFFFFF !important;
    border: 2px solid #D9D9D9 !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    margin: 0 4px !important;
    display: inline-block !important;
}

.electric-cars-pagination .swiper-pagination-bullet-active {
    background: #007F33 !important;
    border-color: #007F33 !important;
}

/* Grid (desktop) */
.cars-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Tarjeta de coche */
.car-card {
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-l, 16px);
    border: var(--border-width-l, 2px) solid var(--Color-Border-General-1, #C8D9D0);
    background: var(--Color-Surface-General-1, #FFF);
}

.car-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Imagen del coche */
.car-image-container {
    background: #F5F5F5;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Contenido de la tarjeta */
.car-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.car-name {
    color: #1A1A1A;
    margin-bottom: 4px;
    padding-bottom: 0.5rem;
}

.car-model {
    color: #4A4A4A;
    margin-bottom: 20px;
}

/* Precio */
.car-price {
    display: flex;
    flex-direction: column;
    margin: 0px 20px 20px;
    padding: 12px;
    border-radius: var(--border-radius-l, 16px);
    background: var(--Color-Surface-General-3, #F9F9F9);
}

.price-label {
    color: #2C2C2C;
    display: block;
    margin-bottom: 4px;
    text-align: left;
}

.price-amount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-number {
    color: #1A1A1A;
    line-height: 1;
}

.price-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    align-items: flex-start;
}

.price-period {
    color: #1A1A1A;
}

.price-tax {
    color: #2C2C2C;
}

/* Características */
.car-features {
    margin-bottom: 24px;
    flex-grow: 1;
    text-align: left;
}

.features-title {
    color: #2C2C2C;
    margin-bottom: 12px;
    text-align: center;
}

.car-features .features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0rem;
}

.car-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #1A1A1A;
}

.check-icon {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

/* Botón CTC (Call to Contact) - Siempre visible */
.section-footer .btn-ctc{
    display: block;
    max-width: 412px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    align-self: stretch;
    border-radius: var(--border-radius-xxl, 100px);
    border: var(--border-width-l, 2px) solid var(--Color-Button-Border-Active, #2F6852);
    background: var(--Color-Button-Background-Active-2, rgba(255, 255, 255, 0.00));
    min-width: 200px;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    color: #2F6852;
    padding: 14px 24px;
    width: 75%;
    margin: auto;
} 

.section-footer .btn-ctc a{
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    color: #2F6852;
} 

.car-content .btn-ctc {
    padding: 14px 24px;
    border: 1px solid rgb(47, 104, 82);
    background-color: rgb(47, 104, 82);
    color: rgb(255, 255, 255);
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    width: 97%;
    margin: 0 auto 10px;
    font-family: 'IberPangeaText-SmBold' !important;
}

.car-content .btn-ctc:hover {
    background-color: rgb(37, 84, 62);
    border-color: rgb(37, 84, 62);
    transform: scale(1.02);
}

.car-content .btn-ctc:active {
    transform: scale(0.98);
}

/* Estilos para los elementos internos del botón CTC */
.car-content .btn-ctc .mbl,
.car-content .btn-ctc .dsk {
    color: rgb(255, 255, 255);
}

.car-content .btn-ctc a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: 600;
}

.car-content .btn-ctc a:hover {
    text-decoration: underline;
}

/* Botón ver todos */
.section-footer {
    text-align: center;
}

.btn-view-all {
    padding: 14px 32px;
    background: #FFFFFF;
    color: #00A859;
    border: 2px solid #00A859;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #00A859;
    color: #FFFFFF;
}

/* Botones de navegación específicos */
.electric-cars-button-prev,
.electric-cars-button-next {
    position: static;
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border-radius: 50%;
    border: 1px solid #BFBFBF;
    margin: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.electric-cars-button-prev:after,
.electric-cars-button-next:after {
    content: '';
    width: 12px;
    height: 12px;
    border-left: 2px solid #2F6852;
    border-bottom: 2px solid #2F6852;
}

.electric-cars-button-prev:after {
    transform: rotate(45deg);
    margin-left: 4px;
}

.electric-cars-button-next:after {
    transform: rotate(-135deg);
    margin-right: 4px;
}

.electric-cars-button-prev:hover,
.electric-cars-button-next:hover {

    border-color: #2F6852;
}

.electric-cars-button-prev:focus,
.electric-cars-button-next:focus {
    outline: none;
    border-color: #2F6852;
}

.electric-cars-button-prev:hover:after,
.electric-cars-button-next:hover:after {
    /* border-color: #FFFFFF; */
}

/* Asegurar que los botones no estén deshabilitados visualmente */
.electric-cars-button-prev.swiper-button-disabled,
.electric-cars-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Media Queries */

/* 360px - 575px */
@media (min-width: 360px) and (max-width: 575px) {
    .car-content {
        padding: 10px;
    }

    .electric-cars-section .section-title{
        margin: 0 0px 16px 0px;
    }

    .electric-cars-section{
        padding-bottom: 0px;
        padding-top: 0px;
    }
}

/* 576px - 767px */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        padding: 0 24px;
    }
    
    .car-features .features-list{
        margin: 0px;
    }
    
    .car-image {
        max-height: 100%;
    }

    .car-content {
        padding: 12px;
    }

    .section-footer .btn-ctc {
        width: 55%;
    }
    
    .electric-cars-section .section-title{
        padding: 0;
    }

    .electric-cars-section{
        padding-bottom: 0px;
    }
}

/* 768px - 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding: 0 32px;
    }
    
    .section-description {
        max-width: 759px;
        padding: 0;
    }
    

    .electric-cars-section .section-title{
        font-size: 24px !important;
        margin: 0;
        padding: 0;
        margin-bottom: 10px;
    }

    .car-content {
        padding: 9px;
        padding-top: 13px;
    }

    .car-content .btn-ctc{
        width: 91%;
        margin-bottom: 15px;
    }

    .section-footer .btn-ctc {
        width: 39%;
    }
}

/* 992px - 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        padding: 0 40px;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-description {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    
    .car-image {
        max-height: 220px;
    }

    .electric-cars-section .section-title{
        font-size: 2rem !important;
        margin: 0;
        padding: 0;
        margin-bottom: 10px;
    }

    .car-content {
        padding: 9px;
        padding-top: 25px;
    }

    .section-footer .btn-ctc {
        width: 33%;
    }
}

/* 1200px en adelante - Grid sin carrusel */
@media (min-width: 1200px) {
    .electric-cars-section {
        padding: 60px 0;
        padding-bottom: 0;
    }
    
    .container {
        padding: 0 60px;
    }
    
    .section-header {
        margin-bottom: 25px;
    }
    
    .section-description {
        max-width: 900px;
    }
    
    /* CRÍTICO: Ocultar Swiper y controles, mostrar Grid */
    .electric-cars-swiper {
        display: none !important;
    }
    
    .electric-cars-controls {
        display: none !important;
    }
    
    .cars-grid {
        display: grid;
    }
    
    .car-image-container {
        min-height: 200px;
    }
    
    .car-image {
        height: 100%;
        object-fit: cover;
    }
    
    .car-content {
        padding: 20px;
    }
    
    .section-footer {
        margin-top: 48px;
    }

    .section-footer .btn-ctc {
        width: 26%;
    }
}

/* 1920px en adelante */
@media (min-width: 1920px) {
    .container {
        padding: 0 80px;
    }
    
    .cars-grid {
        gap: 32px;
    }
    
    
    .car-image {
        max-height: 260px;
    }

    .section-footer .btn-ctc {
        width: 21%;
    }

    .car-price {
        margin: 0px 60px 20px;
        padding: 12px;
        border-radius: var(--border-radius-l, 16px);
        background: var(--Color-Surface-General-3, #F9F9F9);
    }
}
