:root {
    color-scheme: light;
    --rc-bg: #F7F3EB;
    --rc-surface: #E9E2D3;
    --rc-surface-soft: #F0E8DC;
    --rc-border: rgba(51, 51, 51, 0.12);
    --rc-text: #333333;
    --rc-muted: #666666;
    --rc-accent: #D97706;
    --rc-accent-soft: #F59E0B;
    --rc-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Hero Section */
.hero-rentacars {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    color: var(--rc-accent);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.rentacars-hero {
    background: var(--rc-bg);
    color: var(--rc-text);
}

.rentacars-swiper .swiper-button-next,
.rentacars-swiper .swiper-button-prev {
    color: var(--rc-accent);
}

.rentacars-swiper .swiper-pagination-bullet-active {
    background-color: var(--rc-accent);
}

.rentacars-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.rentacars-header .subtitle {
    color: var(--rc-accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.rentacars-header .title {
    font-size: clamp(2.5rem, 3vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.05;
    color: #333333;
}

.rentacars-header .description {
    color: var(--rc-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.rentacars-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.rentacars-card {
    display: flex;
    flex-direction: column;
    background: var(--rc-surface);
    border: 1px solid var(--rc-border);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--rc-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rentacars-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.rentacars-card .card-media {
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

.rentacars-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.rentacars-card:hover .card-media img {
    transform: scale(1.04);
}

.rentacars-card .card-body {
    padding: 1.4rem;
    flex-grow: 1;
}

.rentacars-card h2 {
    margin: 0 0 0.7rem;
    font-size: 1.4rem;
    color: #333333;
}

.rentacars-card .capacity {
    color: var(--rc-muted);
    font-size: 0.98rem;
    margin: 0;
}

.rentacars-card .card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.15rem;
    background: var(--rc-accent);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 0 0 1.5rem 1.5rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.rentacars-card .card-button:hover,
.rentacars-card .card-button:focus {
    background: var(--rc-accent-soft);
}

.rentacars-swiper .swiper-button-next,
.rentacars-swiper .swiper-button-prev {
    color: var(--rc-accent);
}

.rentacars-swiper .swiper-pagination-bullet-active {
    background-color: var(--rc-accent);
}

/* Estilos para la sección de detalle */
.rentacars-detail {
    background: var(--rc-bg);
    color: var(--rc-text);
}

.detail-header {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.detail-badge {
    display: inline-block;
    background: rgba(217, 119, 6, 0.1);
    color: var(--rc-accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.detail-header h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 0.8rem;
    color: #333333;
}

.detail-intro {
    color: var(--rc-muted);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
}


.detail-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.7fr 0.9fr;
    align-items: start;
}

/*######## GALERÍA ########*/

.detail-gallery {
    display: grid;
    gap: 1rem;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;

    background: var(--rc-surface);
    border-radius: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--rc-border);
    box-shadow: var(--rc-shadow);

    height: 520px; /* altura total uniforme */
}

.gallery-main {
    height: 100%;
}

.gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 100%;
}

.gallery-main a,
.gallery-side a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: var(--rc-surface-soft);
}

.gallery-main img,
.gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;
    transition: transform 0.35s ease;
}

/* Hover */
.gallery-main a:hover img,
.gallery-side a:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-mosaic {
        grid-template-columns: 1fr;
        height: auto;
    }

    .gallery-main {
        height: 350px;
    }

    .gallery-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        height: 180px;
    }
}

/*########################*/

.detail-panel {
    background: var(--rc-surface);
    border: 1px solid var(--rc-border);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: var(--rc-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.detail-action-button {
    width: 100%;
    padding: 1.05rem 1.15rem;
    background: var(--rc-accent);
    border: none;
    border-radius: 1rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.detail-action-button:hover,
.detail-action-button:focus {
    background: var(--rc-accent-soft);
    transform: translateY(-1px);
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section-title {
    color: var(--rc-accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-description {
    color: var(--rc-text);
    line-height: 1.7;
    margin: 0;
}

.detail-services,
.detail-includes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.detail-services li,
.detail-includes li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--rc-text);
    font-size: 0.95rem;
}

.detail-services li i,
.detail-includes li i {
    color: var(--rc-accent);
    width: 1rem;
    text-align: center;
}

/* Estilos para el modal */
.rentacars-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: grid;
    place-items: center;
    z-index: 1200;
    padding: 1.5rem;
     overflow-y: auto;
}

.rentacars-modal-backdrop.hidden {
    display: none;
}

.rentacars-modal {
    width: min(520px, 100%);
    background: #ffffff;
    border: 1px solid var(--rc-border);
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333333;
    text-align: center;
    width: 100%;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--rc-text);
    font-size: 1.6rem;
    cursor: pointer;
    position: relative;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.modal-description {
    color: var(--rc-muted);
    margin-bottom: 1.5rem;
    line-height: 1.75;
    text-align: center;
}

@media (max-width: 768px) {
    .rentacars-modal-backdrop {
        align-items: flex-start;
        padding: 1rem;
    }

    .rentacars-modal {
        margin-top: 2rem;
        margin-bottom: 2rem;

        max-height: unset;
    }
}

#rentacarsForm {
    display: grid;
    gap: 1rem;
}

#rentacarsForm label {
    display: grid;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--rc-text);
    font-weight: 500;
}

#rentacarsForm input {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid var(--rc-border);
    background: #fafaf9;
    color: #333333;
    font-size: 1rem;
}

#rentacarsForm input:focus {
    outline: none;
    border-color: var(--rc-accent);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.modal-submit-btn {
    width: 100%;
    padding: 1rem 1.1rem;
    background: var(--rc-accent);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-submit-btn:hover,
.modal-submit-btn:focus {
    background: var(--rc-accent-soft);
}

@media (max-width: 991px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .gallery-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .gallery-main {
        grid-column: 1;
        grid-row: 1;
    }

    .gallery-side {
        grid-row: 2;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }
}

@media (max-width: 767px) {
    .gallery-side {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .gallery-mosaic {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .detail-header h1 {
        font-size: 1.8rem;
    }
}
