/* Kayak-inspired Design for Auto Mieten Sevilla */

:root {
    --primary-color: #007ac2;
    --accent-color: #fcd34d;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== HERO ===================== */
.hero {
    background: linear-gradient(135deg, #005a8f 0%, #1b1b1b 50%, #222222 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero.webp') center/cover no-repeat;
    opacity: 0.25;
    z-index: 0;
}

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

/* Header */
header {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

nav ul li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Main */
.hero-main {
    padding: 28px 0 22px;
}

.hero-main h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    text-align: center;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 14px;
    line-height: 1.55;
    text-align: center;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    justify-content: center;
}

.benefit-item {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    backdrop-filter: blur(4px);
}

.widget-container {
    border-radius: var(--border-radius-md);
    min-height: 342px;
}

/* ===================== HOW TO RENT ===================== */
.how-to-rent {
    padding: 60px 0;
    background: var(--white);
}

.how-to-rent h2,
.benefits h2,
.why-rent h2,
.pricing h2,
.reviews h2,
.traffic-rules h2,
.attractions h2,
.top-cars h2,
.faq h2,
.footer-locations h2 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================== BENEFITS ===================== */
.benefits {
    padding: 60px 0;
    background: #eef6fd;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.benefit-card {
    background: var(--white);
    padding: 30px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefit-card h3 .material-icons {
    font-size: 28px;
    color: var(--primary-color);
}

.benefit-card p {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================== WHY RENT ===================== */
.why-rent {
    padding: 60px 0;
    background: var(--white);
}

.why-rent-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
}

.why-rent-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.why-rent-text p:last-child {
    margin-bottom: 0;
}

.why-rent-text a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.why-rent-text a:hover {
    text-decoration: underline;
}

.why-rent-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* ===================== PRICING ===================== */
.pricing {
    padding: 60px 0;
    background: var(--bg-light);
}

.pricing-intro {
    max-width: 860px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.pricing-recommendations {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 24px 30px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-sm);
}

.pricing-recommendations h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.pricing-recommendations ul {
    padding-left: 20px;
}

.pricing-recommendations ul li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

.car-types {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.car-type-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.car-type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.car-type-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.car-type-card .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

.car-type-card .period {
    font-size: 0.8rem;
    color: var(--text-light);
}

.pricing-table-container {
    overflow-x: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.pricing-table-container table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.pricing-table-container th {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 16px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-table-container td {
    padding: 13px 16px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.pricing-table-container tr:last-child td {
    border-bottom: none;
}

.pricing-table-container tr:nth-child(even) {
    background: #f8f9fa;
}

.pricing-table-container tr:hover td {
    background: #eef6fd;
}

/* ===================== REVIEWS ===================== */
.reviews {
    padding: 60px 0;
    background: var(--white);
}

.reviews-summary {
    text-align: center;
    margin-bottom: 40px;
}

.overall-rating {
    display: inline-block;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 24px 40px;
    box-shadow: var(--shadow-sm);
}

.rating-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 6px;
}

.overall-rating .stars {
    margin-bottom: 6px;
}

.overall-rating .stars .material-icons {
    color: var(--accent-color);
    font-size: 26px;
}

.overall-rating p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.reviewer-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-rating .material-icons {
    color: var(--accent-color);
    font-size: 18px;
}

.review-text {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
}

/* ===================== TRAFFIC RULES ===================== */
.traffic-rules {
    padding: 60px 0;
    background: var(--bg-light);
}

.traffic-rules-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.main-rules {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
}

.main-rules h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.main-rules p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 14px;
}

.main-rules ul {
    padding-left: 20px;
}

.main-rules ul li {
    font-size: 0.93rem;
    color: var(--text-light);
    margin-bottom: 6px;
    line-height: 1.6;
}

.additional-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h3 .material-icons {
    color: var(--primary-color);
    font-size: 22px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================== ATTRACTIONS ===================== */
.attractions {
    padding: 60px 0;
    background: var(--white);
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.attraction-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid var(--accent-color);
}

.attraction-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.attraction-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.attraction-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 14px;
}

.attraction-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.meta-item .material-icons {
    font-size: 17px;
}

/* ===================== TOP CARS ===================== */
.top-cars {
    padding: 60px 0;
    background: var(--bg-light);
}

.top-cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.car-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    padding: 20px;
}

.car-info {
    padding: 22px;
}

.car-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.car-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.spec-item .material-icons {
    font-size: 20px;
    color: var(--primary-color);
    width: 24px;
    flex-shrink: 0;
}

.car-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.btn-view-offer {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.2s;
}

.btn-view-offer:hover {
    background: #005a8f;
    transform: translateY(-1px);
}

/* ===================== FAQ ===================== */
.faq {
    padding: 60px 0;
    background: var(--white);
}

.faq-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

.faq-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 991px) {
    .faq-list {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: var(--white);
    border: none;
    text-align: left;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question .material-icons {
    color: var(--primary-color);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question .material-icons {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-content {
    padding: 0 25px 20px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.93rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===================== FOOTER LOCATIONS ===================== */
.footer-locations {
    padding: 50px 0;
    background: #1a1a2e;
    color: var(--white);
}

.footer-locations h2 {
    color: var(--white);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.4rem;
}

.footer-locations h2 .material-icons {
    color: var(--accent-color);
    font-size: 26px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.locations-grid ul {
    list-style: none;
    padding: 0;
}

.locations-grid ul li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.locations-grid ul li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.locations-grid ul li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ===================== FOOTER ===================== */
footer {
    background: #111827;
    color: rgba(255,255,255,0.85);
    padding: 30px 0;
}

.footer-content {
    text-align: center;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.footer-seo-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    max-width: 760px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-rent-content {
        grid-template-columns: 1fr;
    }

    .why-rent-image {
        order: -1;
    }

    .car-types {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .additional-info {
        grid-template-columns: 1fr;
    }

    .attractions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-main h1 {
        font-size: 1.5rem;
    }

    .hero-main {
        padding: 20px 0 16px;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 50, 100, 0.97);
        padding: 16px 20px;
        z-index: 100;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
    }

    header {
        position: relative;
    }

    .how-to-rent h2,
    .benefits h2,
    .why-rent h2,
    .pricing h2,
    .reviews h2,
    .traffic-rules h2,
    .attractions h2,
    .top-cars h2,
    .faq h2 {
        font-size: 1.4rem;
    }

    .car-types {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .top-cars-grid {
        grid-template-columns: 1fr;
    }

    .attractions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-benefits {
        gap: 6px;
    }

    .benefit-item {
        font-size: 0.8rem;
        padding: 4px 11px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .car-types {
        grid-template-columns: 1fr 1fr;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }
}
