/* ================= VARIABLES GLOBALES ================= */
:root {
    --primary-color: #036415;
    --primary-light: #04821c;
    --primary-dark: #02450e;
    --bg-light: #FFFFFF;
    --bg-gray: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-gray: #555555;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ================= RESET Y BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

img {
    max-width: 100%;
    display: block;
}

section {
    scroll-margin-top: 100px;
}

.container {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= HERO SECTION ================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: #fff;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    border: none;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(3, 100, 21, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: none;
}

/* ================= QUIÉNES SOMOS ================= */
.quienes-somos {
    padding: 120px 50px;
    background-color: var(--bg-light);
}

.img-wrapper {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.img-wrapper:hover img {
    transform: scale(1.03);
}

.texto-wrapper {
    flex: 1;
}

.texto-wrapper h2 {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    padding-bottom: 12px;
}

.texto-wrapper h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 999px;
}

.texto-wrapper p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ================= ABOUT HERO ================= */
.about-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 90px;
    background: url('assets/Portada_Taxi_Turismo.webp') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(3, 60, 21, 0.80), rgba(0, 0, 0, 0.65)),
        linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.about-tag {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    color: #d8f0de;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
}

.about-hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.08;
    margin-bottom: 20px;
}

.about-hero-content p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.95;
}

.about-grid {
    align-items: center;
}

.about-values {
    padding: 30px 50px 110px;
    background-color: var(--bg-light);
}

.about-values-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.about-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
    border-radius: 18px;
    padding: 40px 35px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(3, 100, 21, 0.08);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(3, 100, 21, 0.10);
}

.about-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(3, 100, 21, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-icon i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.about-card h3 {
    font-size: 1.7rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.85;
}

.about-extra {
    padding: 0 50px 110px;
    background-color: var(--bg-light);
}

.about-extra-container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f6faf7 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 18px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(3, 100, 21, 0.08);
}

.about-mini-tag {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-extra-text h2 {
    font-size: 2.3rem;
    margin-bottom: 18px;
    color: var(--text-dark);
    line-height: 1.15;
}

.about-extra-text p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.85;
}

.about-stats {
    display: grid;
    gap: 18px;
}

.stat-box {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px 24px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.stat-box h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-box p {
    color: var(--text-gray);
    margin: 0;
}

/* ================= SERVICIOS HOME ================= */
.servicios {
    padding: 100px 50px;
    text-align: center;
    background-color: var(--bg-gray);
}

.servicios h2 {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-dark);
    padding-bottom: 12px;
}

.servicios h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 999px;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-servicio {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: left;
}

.card-servicio img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 30px;
}

.card-servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(3, 100, 21, 0.15);
}

.card-servicio h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-servicio p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.btn-card-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: var(--transition);
}

.btn-card-link:hover {
    color: var(--primary-dark);
}

/* ================= CONTACTO ================= */
.contacto {
    padding: 100px 50px;
    text-align: center;
    background-color: var(--bg-light);
}

.contacto-container {
    max-width: 900px;
    margin: 0 auto;
}

.contacto h2 {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 12px;
}

.contacto h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 999px;
}

.contacto p {
    color: var(--text-gray);
    margin-bottom: 50px;
}

.contacto-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.info-item {
    background-color: var(--bg-gray);
    padding: 40px 30px;
    border-radius: 8px;
    min-width: 250px;
    flex: 1;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.info-item:hover {
    border-bottom: 3px solid var(--primary-color);
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.info-item:visited,
.info-item:active,
.info-item:focus {
    color: inherit;
    text-decoration: none;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-gray);
    font-weight: 500;
    margin: 0;
}

/* ================= NUESTRA FLOTA ================= */
.nuestra-flota {
    padding: 80px 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.nuestra-flota h2 {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 12px;
}

.nuestra-flota h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 999px;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #111;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scroll 25s linear infinite;
}

.slider-track img {
    height: 350px;
    width: auto;
    max-width: none;
    object-fit: cover;
    margin: 0;
    padding: 0;
    display: block;
    flex-shrink: 0;
}

.slider-container:hover .slider-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50%));
    }
}

/* ================= BURBUJA WHATSAPP ================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ================= ANIMACIONES ================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE GENERAL ================= */
@media (max-width: 900px) {
    .container,
    .about-values-container,
    .about-extra-container {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .contacto-info {
        flex-direction: column;
    }

    .nuestra-flota {
        padding: 70px 0;
    }

    .nuestra-flota h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .slider-track img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .quienes-somos,
    .servicios,
    .contacto {
        padding: 60px 20px;
    }

    .about-hero {
        min-height: 62vh;
        padding: 120px 20px 70px;
    }

    .about-hero-content h1 {
        font-size: 2.4rem;
    }

    .about-hero-content p {
        font-size: 1rem;
    }

    .about-values {
        padding: 20px 20px 70px;
    }

    .about-card {
        padding: 30px 24px;
    }

    .about-extra {
        padding: 0 20px 70px;
    }

    .about-extra-container {
        padding: 30px 24px;
    }

    .about-extra-text h2 {
        font-size: 1.9rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .nuestra-flota {
        padding: 60px 0;
    }

    .nuestra-flota h2,
    .contacto h2,
    .texto-wrapper h2,
    .servicios h2 {
        font-size: 2rem;
    }

    .nuestra-flota h2 {
        margin-bottom: 35px;
        padding: 0 20px 12px;
    }

    .slider-track {
        animation: scroll 18s linear infinite;
    }

    .slider-track img {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .nuestra-flota {
        padding: 50px 0;
    }

    .nuestra-flota h2 {
        font-size: 1.8rem;
        width: 100%;
        left: 0;
        transform: none;
        padding: 0 20px 12px;
        margin-bottom: 28px;
    }

    .nuestra-flota h2::after {
        width: 55px;
    }

    .slider-track {
        animation: scroll 16s linear infinite;
    }

    .slider-track img {
        height: 180px;
    }
}