:root {
    --blue-dark: #0879b9;
    --blue: #0b91ce;
    --blue-light: #35b7e9;
    --sky: #65cef2;
    --sky-light: #eaf8fd;

    --white: #ffffff;
    --dark: #123044;
    --gray-dark: #526777;
    --gray: #718392;
    --gray-light: #edf3f6;

    --green: #18b85b;
    --green-dark: #109548;

    --shadow: 0 15px 40px rgba(8, 121, 185, 0.13);
    --shadow-heavy: 0 25px 70px rgba(8, 121, 185, 0.20);

    --radius: 20px;
    --transition: 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Montserrat", sans-serif;
    background: #ffffff;
    color: var(--dark);
    overflow-x: hidden;
}


body.modal-open {
    overflow: hidden;
}


img {
    max-width: 100%;
    display: block;
}


button,
select,
a {
    font-family: inherit;
}


button {
    cursor: pointer;
}


a {
    text-decoration: none;
    color: inherit;
}


.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =====================================================
   HEADER FLOTANTE CON SOMBRA
===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: linear-gradient(
        90deg,
        #0879b9 0%,
        #20a9dc 50%,
        #0879b9 100%
    );

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.16),
        0 2px 6px rgba(8, 121, 185, 0.18);

    border-bottom: 1px solid rgba(255, 255, 255, 0.20);

    transition:
        box-shadow 0.35s ease,
        background 0.35s ease;
}


/* Efecto de menú flotante */

.site-header::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -12px;

    height: 12px;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(8, 121, 185, 0.18),
        transparent
    );

    opacity: 0.8;
}


/* Contenedor */

.header-container {
    width: min(1200px, calc(100% - 30px));

    min-height: 88px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}


/* Logo */

.logo-link {
    position: absolute;

    left: 0;
    top: 50%;

    transform: translateY(-50%);

    z-index: 2;
}


.header-logo {
    width: 155px;

    max-height: 70px;

    object-fit: contain;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}


.logo-link:hover .header-logo {
    transform: scale(1.04);
}


/* Menú */

.main-nav {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;
}


/* Botones del menú */

.nav-link {
    position: relative;

    color: white;

    font-size: 14px;
    font-weight: 800;

    text-transform: uppercase;

    padding: 13px 17px;

    border-radius: 12px;

    display: flex;
    align-items: center;

    gap: 8px;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* Línea inferior */

.nav-link::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 5px;

    width: 0;
    height: 3px;

    border-radius: 10px;

    background: white;

    transform: translateX(-50%);

    transition: width 0.3s ease;
}


/* Hover */

.nav-link:hover {
    background: rgba(255, 255, 255, 0.16);

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.15);
}


.nav-link:hover::after {
    width: 55%;
}


.nav-link i {
    font-size: 14px;
}


/* Botón móvil */

.menu-toggle {
    display: none;

    position: absolute;

    right: 0;

    width: 45px;
    height: 45px;

    border: 0;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.15);

    color: white;

    font-size: 20px;

    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.12);

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);

    transform: translateY(-2px);
}

/* =====================================================
   HERO
===================================================== */

.hero-section {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(circle at 10% 20%, rgba(101, 206, 242, 0.20), transparent 35%),
        radial-gradient(circle at 90% 20%, rgba(11, 145, 206, 0.16), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #eaf8fd 100%);

    padding-bottom: 40px;
}


.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}


.hero-glow-one {
    width: 300px;
    height: 300px;
    background: rgba(53, 183, 233, 0.18);
    left: -120px;
    top: 180px;
}


.hero-glow-two {
    width: 260px;
    height: 260px;
    background: rgba(8, 121, 185, 0.12);
    right: -100px;
    top: 300px;
}


.hero-banner-wrapper {
    width: 100%;
    overflow: hidden;
    background: #eaf8fd;
}


.hero-banner-image {
    width: 100%;
    height: auto;
    min-height: 390px;

    object-fit: contain;
    object-position: center;

    background: #eaf8fd;

    transition: transform 1s ease;
}


.hero-banner-wrapper:hover .hero-banner-image {
    transform: scale(1.01);
}


.hero-content {
    position: relative;
    z-index: 2;

    width: min(900px, calc(100% - 40px));
    margin: 35px auto 0;

    text-align: center;

    padding: 42px 35px;

    border-radius: 28px;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(53, 183, 233, 0.18);

    box-shadow: var(--shadow-heavy);

    backdrop-filter: blur(12px);
}


.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--blue-dark);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}


.hero-content h1 {
    margin-top: 15px;

    color: var(--dark);

    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.03;
    font-weight: 900;
}


.hero-content h1 span {
    display: block;
    color: var(--blue);
}


.hero-content p {
    max-width: 700px;
    margin: 22px auto 0;

    color: var(--gray-dark);

    font-size: 16px;
    line-height: 1.8;
}


.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 28px;
}


.btn {
    min-height: 52px;

    padding: 15px 23px;

    border-radius: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    font-size: 13px;
    font-weight: 900;

    transition: var(--transition);
}


.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));

    box-shadow: 0 10px 25px rgba(8, 121, 185, 0.24);
}


.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(8, 121, 185, 0.30);
}


.btn-whatsapp {
    color: white;
    background: var(--green);

    box-shadow: 0 10px 25px rgba(24, 184, 91, 0.20);
}


.btn-whatsapp:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
}


/* =====================================================
   SEARCH
===================================================== */

.search-section {
    position: relative;
    padding: 110px 0 85px;

    background:
        radial-gradient(circle at 20% 10%, rgba(101, 206, 242, 0.13), transparent 30%),
        #f7fcfe;
}


.search-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}


.search-header h2 {
    margin-top: 10px;
    font-size: clamp(27px, 4vw, 40px);
    font-weight: 900;
}


.search-header p {
    margin-top: 12px;
    color: var(--gray);
    line-height: 1.7;
}


.search-box {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;

    padding: 25px;

    background: white;

    border: 1px solid #dceef5;
    border-radius: 24px;

    box-shadow: var(--shadow);
}


.filter-item label {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 8px;

    color: var(--dark);

    font-size: 12px;
    font-weight: 800;
}


.filter-item label i {
    color: var(--blue);
}


.filter-item select {
    width: 100%;
    height: 48px;

    padding: 0 13px;

    border: 1px solid #d6e5eb;
    border-radius: 11px;

    background: #ffffff;
    color: var(--dark);

    outline: none;

    font-size: 13px;
    font-weight: 600;

    transition: var(--transition);
}


.filter-item select:focus {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 4px rgba(53, 183, 233, 0.10);
}


.filter-buttons {
    grid-column: 1 / -1;

    display: flex;
    justify-content: center;
    gap: 12px;

    margin-top: 5px;
}


.filter-btn {
    min-width: 150px;
    min-height: 48px;

    border: 0;
    border-radius: 12px;

    font-size: 12px;
    font-weight: 900;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    transition: var(--transition);
}


.search-btn {
    background: var(--blue);
    color: white;
}


.search-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}


.clear-btn {
    background: #edf6fa;
    color: var(--blue-dark);
}


.clear-btn:hover {
    background: #dceff6;
}


/* =====================================================
   VEHÍCULOS
===================================================== */

.vehicles-section {
    padding: 90px 0;

    background: white;
}


.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;

    margin-bottom: 30px;
}


.section-heading.centered {
    display: block;
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}


.section-heading h2 {
    margin-top: 9px;

    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
}


.section-heading p {
    margin-top: 10px;

    color: var(--gray);
    line-height: 1.7;
}


.result-count {
    padding: 10px 15px;

    border-radius: 30px;

    background: var(--sky-light);
    color: var(--blue-dark);

    font-size: 12px;
    font-weight: 800;

    white-space: nowrap;
}


.filter-message {
    display: none;

    margin-bottom: 20px;
    padding: 15px;

    text-align: center;

    border-radius: 12px;

    background: #fff7e5;
    color: #8a6500;

    font-size: 13px;
    font-weight: 700;
}


.filter-message.active {
    display: block;
}


.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


.vehicle-card {
    overflow: hidden;

    background: white;

    border: 1px solid #e1edf2;
    border-radius: 20px;

    box-shadow: 0 8px 25px rgba(18, 48, 68, 0.07);

    cursor: pointer;

    animation: vehicleAppear 0.55s ease both;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.vehicle-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-heavy);
}


.vehicle-image-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;

    background: #eef8fb;
}


.vehicle-main-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.vehicle-card:hover .vehicle-main-image {
    transform: scale(1.05);
}


.vehicle-image-badge {
    position: absolute;
    top: 14px;
    left: 14px;

    padding: 8px 12px;

    border-radius: 30px;

    background: rgba(8, 121, 185, 0.92);
    color: white;

    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}


.vehicle-photo-count {
    position: absolute;
    right: 14px;
    bottom: 14px;

    padding: 8px 11px;

    border-radius: 30px;

    background: rgba(0, 0, 0, 0.65);
    color: white;

    font-size: 11px;
    font-weight: 800;
}


.vehicle-info {
    padding: 21px;
}


.vehicle-brand {
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.vehicle-name {
    margin-top: 5px;

    color: var(--dark);

    font-size: 21px;
    font-weight: 900;
}


.vehicle-price {
    margin-top: 13px;

    color: var(--blue-dark);

    font-size: 25px;
    font-weight: 900;
}


.vehicle-data {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;

    margin-top: 16px;
}


.vehicle-data-item {
    padding: 9px;

    border-radius: 10px;

    background: #f5fafc;

    color: var(--gray-dark);

    font-size: 11px;
    font-weight: 700;
}


.vehicle-data-item i {
    width: 18px;
    color: var(--blue);
}


.vehicle-description {
    margin-top: 14px;

    color: var(--gray);

    font-size: 12px;
    line-height: 1.6;

    overflow: hidden;

    min-height: 3.2em;
    max-height: 3.2em;
}


.vehicle-card-footer {
    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


.view-vehicle {
    flex: 1;

    min-height: 43px;

    border: 0;
    border-radius: 11px;

    background: var(--blue);
    color: white;

    font-size: 11px;
    font-weight: 900;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    transition: var(--transition);
}


.view-vehicle:hover {
    background: var(--blue-dark);
}


.whatsapp-small {
    width: 43px;
    height: 43px;

    border-radius: 11px;

    background: var(--green);
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 19px;

    transition: var(--transition);
}


.whatsapp-small:hover {
    background: var(--green-dark);
    transform: scale(1.06);
}


.show-all-container {
    text-align: center;
    margin-top: 35px;
}


.show-all-btn {
    min-height: 50px;

    padding: 0 25px;

    border: 2px solid var(--blue);
    border-radius: 13px;

    background: white;
    color: var(--blue);

    font-size: 12px;
    font-weight: 900;

    transition: var(--transition);
}


.show-all-btn:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px);
}


.no-vehicles {
    grid-column: 1 / -1;

    padding: 60px 20px;

    text-align: center;

    border-radius: 20px;

    background: #f7fbfd;

    color: var(--gray);
}


.no-vehicles i {
    font-size: 50px;
    color: var(--blue-light);
    margin-bottom: 15px;
}


.no-vehicles h3 {
    color: var(--dark);
    margin-bottom: 8px;
}


/* =====================================================
   ABOUT
===================================================== */

.about-section {
    padding: 100px 0;

    background:
        radial-gradient(circle at 10% 20%, rgba(53, 183, 233, 0.10), transparent 30%),
        #f4fbfd;
}


.about-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 45px;
    align-items: center;

    margin-top: 45px;

    padding: 40px;

    border-radius: 25px;

    background: white;

    box-shadow: var(--shadow);
}


.about-logo {
    display: flex;
    justify-content: center;
}


.logo-circle {
    width: 220px;
    height: 220px;

    padding: 20px;

    border-radius: 50%;

    background: linear-gradient(135deg, #eaf8fd, #ffffff);

    border: 8px solid #d8f2fb;

    display: flex;
    align-items: center;
    justify-content: center;
}


.logo-circle img {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
}


.mini-title {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}


.about-text h3 {
    margin-top: 10px;

    font-size: clamp(25px, 4vw, 38px);
    font-weight: 900;
}


.about-text p {
    margin-top: 14px;

    color: var(--gray);
    line-height: 1.8;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;

    margin-top: 25px;
}


.feature-card {
    padding: 25px;

    border-radius: 20px;

    background: white;
    border: 1px solid #e1edf2;

    box-shadow: 0 8px 20px rgba(18, 48, 68, 0.05);

    transition: var(--transition);
}


.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--sky);
}


.feature-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 16px;

    border-radius: 14px;

    background: var(--sky-light);
    color: var(--blue);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}


.feature-card h3 {
    font-size: 16px;
    font-weight: 900;
}


.feature-card p {
    margin-top: 9px;

    color: var(--gray);

    font-size: 12px;
    line-height: 1.7;
}


.about-quote {
    margin-top: 28px;
    padding: 24px;

    border-radius: 18px;

    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));

    color: white;

    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    flex-wrap: wrap;
}


.about-quote i {
    font-size: 25px;
}


.about-quote strong {
    font-size: 14px;
}


.about-quote span {
    opacity: 0.85;
    font-size: 12px;
}


/* =====================================================
   WHY
===================================================== */

.why-section {
    padding: 100px 0;

    background: white;
}


.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    margin-top: 45px;
}


.why-card {
    position: relative;

    padding: 30px 25px;

    border-radius: 20px;

    background: linear-gradient(180deg, #ffffff, #f4fbfd);

    border: 1px solid #deedf3;

    overflow: hidden;

    transition: var(--transition);
}


.why-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}


.why-number {
    position: absolute;
    top: 15px;
    right: 20px;

    color: #dceff6;

    font-size: 42px;
    font-weight: 900;
}


.why-icon {
    width: 55px;
    height: 55px;

    border-radius: 16px;

    background: var(--blue);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}


.why-card h3 {
    margin-top: 20px;

    font-size: 17px;
    font-weight: 900;
}


.why-card p {
    margin-top: 10px;

    color: var(--gray);

    font-size: 12px;
    line-height: 1.7;
}


/* =====================================================
   CONTACTO
===================================================== */

.contact-section {
    padding: 100px 0;

    background:
        linear-gradient(180deg, #eaf8fd 0%, #f8fdff 100%);
}


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;

    margin-top: 45px;
}


.contact-info,
.location-card {
    padding: 35px;

    background: white;

    border-radius: 25px;

    box-shadow: var(--shadow);
}


.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 20px 0;

    border-bottom: 1px solid #edf2f5;
}


.contact-item:first-child {
    padding-top: 0;
}


.contact-item:last-of-type {
    border-bottom: 0;
}


.contact-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 14px;

    background: var(--sky-light);
    color: var(--blue);

    display: flex;
    align-items: center;
    justify-content: center;
}


.contact-item span {
    display: block;

    margin-bottom: 5px;

    color: var(--blue);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}


.contact-item strong {
    display: block;

    color: var(--dark);

    font-size: 13px;
    line-height: 1.6;
}


.contact-whatsapp {
    width: 100%;
    min-height: 50px;

    margin-top: 20px;

    border-radius: 12px;

    background: var(--green);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    font-size: 12px;
    font-weight: 900;

    transition: var(--transition);
}


.contact-whatsapp:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}


.location-card {
    position: relative;

    min-height: 390px;

    text-align: center;

    background:
        radial-gradient(circle at 50% 20%, rgba(53, 183, 233, 0.18), transparent 35%),
        white;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.location-logo {
    width: 150px;
    margin-bottom: 12px;
}


.location-logo img {
    width: 100%;
    max-height: 90px;
    object-fit: contain;
}


.location-pin {
    width: 65px;
    height: 65px;

    margin: 5px 0 15px;

    border-radius: 50%;

    background: var(--blue);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;

    box-shadow: 0 12px 30px rgba(8, 121, 185, 0.25);

    animation: pinPulse 2s infinite;
}


.location-card h3 {
    font-size: 23px;
    font-weight: 900;
}


.location-card p {
    margin-top: 6px;

    color: var(--gray);

    font-size: 13px;
}


.maps-btn {
    margin-top: 22px;

    min-height: 48px;

    padding: 0 20px;

    border-radius: 12px;

    background: var(--blue);
    color: white;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 11px;
    font-weight: 900;

    transition: var(--transition);
}


.maps-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    padding: 45px 0 20px;

    background: linear-gradient(
        135deg,
        #075f91,
        #0879b9 50%,
        #0b91ce
    );

    color: white;
}


.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 30px;

    align-items: center;
}


.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}


.footer-logo {
    width: 145px;
    max-height: 70px;
    object-fit: contain;
}


.footer-brand p {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
}


.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}


.footer-links a {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.9;

    transition: var(--transition);
}


.footer-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}


.footer-contact {
    text-align: right;
}


.footer-contact a {
    font-size: 13px;
    font-weight: 800;
}


.footer-contact i {
    margin-right: 6px;
    font-size: 18px;
}


.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.18);

    text-align: center;

    font-size: 10px;

    opacity: 0.8;
}


/* =====================================================
   WHATSAPP FLOTANTE
===================================================== */

.floating-whatsapp {
    position: fixed;

    right: 22px;
    bottom: 22px;

    width: 62px;
    height: 62px;

    z-index: 900;

    border-radius: 50%;

    background: var(--green);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 31px;

    box-shadow: 0 10px 30px rgba(24, 184, 91, 0.35);

    animation: whatsappPulse 2s infinite;

    transition: var(--transition);
}


.floating-whatsapp:hover {
    background: var(--green-dark);
    transform: scale(1.08);
}


/* =====================================================
   MODAL
===================================================== */

.vehicle-modal {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: none;

    padding: 20px;
}


.vehicle-modal.active {
    display: flex;

    align-items: center;
    justify-content: center;
}


.modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(5, 27, 40, 0.78);

    backdrop-filter: blur(7px);
}


.modal-window {
    position: relative;
    z-index: 2;

    width: min(1000px, 100%);

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background: white;

    border-radius: 24px;

    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.30);

    animation: modalAppear 0.25s ease;
}


.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;

    z-index: 10;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);
    color: white;

    font-size: 18px;

    transition: var(--transition);
}


.modal-close:hover {
    background: var(--blue);
    transform: rotate(90deg);
}


.modal-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}


.modal-gallery {
    min-width: 0;

    padding: 25px;

    background: #edf8fc;

    border-radius: 24px 0 0 24px;
}


.gallery-main {
    position: relative;

    width: 100%;
    height: 450px;

    overflow: hidden;

    border-radius: 18px;

    background: #dfeff5;
}


.gallery-main img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


.gallery-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 48px;
    height: 48px;

    border: 0;
    border-radius: 50%;

    background: rgba(8, 121, 185, 0.90);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

    transition: var(--transition);
}


.gallery-arrow:hover {
    background: var(--blue-dark);
    transform: translateY(-50%) scale(1.08);
}


.gallery-arrow.prev {
    left: 15px;
}


.gallery-arrow.next {
    right: 15px;
}


.gallery-counter {
    position: absolute;

    left: 50%;
    bottom: 15px;

    transform: translateX(-50%);

    padding: 8px 13px;

    border-radius: 30px;

    background: rgba(0, 0, 0, 0.70);
    color: white;

    font-size: 11px;
    font-weight: 800;
}


.gallery-thumbnails {
    display: flex;
    gap: 9px;

    margin-top: 12px;

    overflow-x: auto;

    padding-bottom: 4px;
}


.gallery-thumb {
    flex: 0 0 70px;

    width: 70px;
    height: 55px;

    padding: 0;

    border: 2px solid transparent;
    border-radius: 9px;

    overflow: hidden;

    background: white;

    cursor: pointer;

    opacity: 0.65;

    transition: var(--transition);
}


.gallery-thumb.active {
    border-color: var(--blue);
    opacity: 1;
}


.gallery-thumb:hover {
    opacity: 1;
}


.gallery-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.modal-details {
    padding: 38px 32px;
}


.modal-brand {
    color: var(--blue);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}


.modal-title {
    margin-top: 6px;

    color: var(--dark);

    font-size: clamp(25px, 4vw, 36px);
    font-weight: 900;
    line-height: 1.15;
}


.modal-price {
    margin-top: 13px;

    color: var(--blue-dark);

    font-size: 29px;
    font-weight: 900;
}


.modal-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;

    margin-top: 25px;
}


.modal-data {
    padding: 12px;

    border-radius: 11px;

    background: #f2f8fa;

    color: var(--gray-dark);

    font-size: 11px;
    font-weight: 700;
}


.modal-data i {
    width: 19px;
    color: var(--blue);
}


.modal-description {
    margin-top: 22px;

    color: var(--gray);

    font-size: 13px;
    line-height: 1.8;
}


.modal-whatsapp {
    width: 100%;

    min-height: 52px;

    margin-top: 25px;

    border-radius: 13px;

    background: var(--green);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    font-size: 12px;
    font-weight: 900;

    transition: var(--transition);
}


.modal-whatsapp:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}


/* =====================================================
   ANIMACIONES
===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}


.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


@keyframes vehicleAppear {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


@keyframes modalAppear {

    from {
        opacity: 0;
        transform: scale(0.96) translateY(15px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

}


@keyframes pinPulse {

    0%,
    100% {
        box-shadow: 0 12px 30px rgba(8, 121, 185, 0.25);
    }

    50% {
        box-shadow: 0 12px 35px rgba(8, 121, 185, 0.45);
    }

}


@keyframes whatsappPulse {

    0% {
        box-shadow: 0 10px 30px rgba(24, 184, 91, 0.30);
    }

    50% {
        box-shadow: 0 10px 35px rgba(24, 184, 91, 0.55);
    }

    100% {
        box-shadow: 0 10px 30px rgba(24, 184, 91, 0.30);
    }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .header-container {
        min-height: 80px;
    }


    .header-logo {
        width: 130px;
    }


    .nav-link {
        padding: 11px 10px;
        font-size: 11px;
    }


    .search-box {
        grid-template-columns: repeat(2, 1fr);
    }


    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .features-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .modal-content {
        grid-template-columns: 1fr;
    }


    .modal-gallery {
        border-radius: 24px 24px 0 0;
    }


    .gallery-main {
        height: 390px;
    }


    .footer-content {
        grid-template-columns: 1fr 1fr;
    }


    .footer-contact {
        text-align: left;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {

    .container {
        width: min(100% - 28px, 600px);
    }


    .header-container {
        min-height: 75px;
        justify-content: center;
    }


    .logo-link {
        position: static;
        transform: none;
    }


    .header-logo {
        width: 135px;
        max-height: 62px;
    }


    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }


    .main-nav {
        position: absolute;

        top: 75px;
        left: 0;
        right: 0;

        display: none;

        padding: 12px 15px;

        flex-direction: column;
        align-items: stretch;

        background: var(--blue-dark);

        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.18);
    }


    .main-nav.active {
        display: flex;
    }


    .nav-link {
        justify-content: center;
        padding: 13px;
    }


    .hero-banner-image {
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: contain;
    }


    .hero-content {
        width: calc(100% - 24px);

        margin: 25px auto 0;

        padding: 30px 20px;

        border-radius: 20px;
    }


    .hero-content h1 {
        font-size: 34px;
    }


    .hero-content p {
        font-size: 13px;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .btn {
        width: 100%;
    }


    .search-section {
        padding: 80px 0 60px;
    }


    .search-box {
        grid-template-columns: 1fr;

        padding: 18px;
    }


    .filter-buttons {
        flex-direction: column;
    }


    .filter-btn {
        width: 100%;
    }


    .section-heading {
        display: block;
        text-align: center;
    }


    .result-count {
        display: inline-flex;
        margin-top: 18px;
    }


    .vehicle-grid {
        grid-template-columns: 1fr;
    }


    .about-main {
        grid-template-columns: 1fr;

        padding: 25px;

        text-align: center;
    }


    .features-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }


    .feature-card {
        text-align: center;
    }


    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }


    .contact-grid {
        grid-template-columns: 1fr;
    }


    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }


    .footer-brand {
        flex-direction: column;
        justify-content: center;
    }


    .footer-links {
        justify-content: center;
    }


    .footer-contact {
        text-align: center;
    }


    .modal-window {
        max-height: calc(100vh - 20px);
    }


    .modal-gallery {
        padding: 15px;
    }


    .gallery-main {
        height: 300px;
    }


    .modal-details {
        padding: 25px 20px 30px;
    }

}


/* =====================================================
   MOBILE PEQUEÑO
===================================================== */

@media (max-width: 550px) {

    .hero-banner-image {
        height: auto;
        min-height: 0;
        object-fit: contain;
    }


    .hero-content h1 {
        font-size: 29px;
    }


    .hero-kicker,
    .section-kicker {
        font-size: 10px;
    }


    .vehicle-image-wrapper {
        height: 220px;
    }


    .vehicle-info {
        padding: 18px;
    }


    .vehicle-name {
        font-size: 19px;
    }


    .vehicle-price {
        font-size: 23px;
    }


    .modal-data-grid {
        grid-template-columns: 1fr;
    }


    .gallery-main {
        height: 245px;
    }


    .gallery-arrow {
        width: 42px;
        height: 42px;
    }


    .floating-whatsapp {
        width: 56px;
        height: 56px;

        right: 15px;
        bottom: 15px;

        font-size: 28px;
    }

}
/* =====================================================
   SEPARACIÓN VISUAL ENTRE APARTADOS
===================================================== */

.hero-section,
.search-section,
.vehicles-section,
.about-section,
.why-section,
.contact-section {
    position: relative;
}


.hero-section::after,
.search-section::after,
.vehicles-section::after,
.about-section::after,
.why-section::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -1px;

    width: min(92%, 1100px);

    height: 1px;

    transform: translateX(-50%);

    background: linear-gradient(
        90deg,
        transparent,
        rgba(8, 121, 185, 0.20),
        transparent
    );

    box-shadow:
        0 4px 12px rgba(8, 121, 185, 0.12);
}


/* =====================================================
   EFECTO DE SOMBRA AL PASAR POR LOS APARTADOS
===================================================== */

.about-main,
.feature-card,
.why-card,
.contact-info,
.location-card,
.search-box,
.vehicle-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.about-main:hover {
    box-shadow:
        0 20px 45px rgba(8, 121, 185, 0.15);
}


.search-box:hover {
    box-shadow:
        0 20px 45px rgba(8, 121, 185, 0.16);
}


.contact-info:hover,
.location-card:hover {
    box-shadow:
        0 20px 45px rgba(8, 121, 185, 0.16);
}

/* =====================================================
   FOOTER EN FORMATO DE LISTA
   ===================================================== */

.site-footer {
    background: linear-gradient(135deg, #075f91, #0879b9, #20a9dc);
    color: white;
    padding: 55px 20px 20px;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
    gap: 45px;
    align-items: start;
}

.footer-brand img {
    width: 210px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.footer-brand p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.footer-column h3 {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 11px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-column a {
    color: white;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-column a:hover {
    color: #eaf8fd;
    padding-left: 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    opacity: 0.85;
}


/* =====================================================
   FOOTER EN CELULAR
   ===================================================== */

@media (max-width: 800px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}


@media (max-width: 550px) {

    .site-footer {
        padding: 45px 20px 18px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-brand img {
        width: 190px;
    }

}

/* =====================================================
   ANIMACIÓN ESPECIAL - SOBRE NOSOTROS
   ===================================================== */

/* Contenedor principal de Sobre Nosotros */
.about-section {
    overflow: hidden;
}

/* Logo de Sobre Nosotros */
.about-logo {
    animation:
        aboutLogoEntrada 1s ease-out both,
        aboutLogoFlotando 4s ease-in-out 1.2s infinite;
    transform-origin: center center;
    filter: drop-shadow(0 12px 18px rgba(8, 121, 185, 0.20));
}

/* Entrada del logo */
@keyframes aboutLogoEntrada {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.75) rotate(-8deg);
    }

    60% {
        opacity: 1;
        transform: translateY(-8px) scale(1.04) rotate(2deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* Movimiento suave continuo */
@keyframes aboutLogoFlotando {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-1deg);
    }

    50% {
        transform: translateY(-13px) rotate(1deg);
    }

    75% {
        transform: translateY(-7px) rotate(-1deg);
    }
}

/* Brillo alrededor del logo */
.about-logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo-wrapper::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(53, 183, 233, 0.22) 0%,
            rgba(53, 183, 233, 0.10) 40%,
            transparent 70%
        );

    animation: logoGlow 3s ease-in-out infinite;
    z-index: 0;
}

.about-logo-wrapper img {
    position: relative;
    z-index: 1;
}

@keyframes logoGlow {
    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}


/* =====================================================
   TARJETAS DE SOBRE NOSOTROS
   ===================================================== */

.about-section .feature-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.about-section .feature-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 18px 35px rgba(8, 121, 185, 0.18),
        0 5px 12px rgba(8, 121, 185, 0.10);
}

/* Iconos de las tarjetas */
.about-section .feature-card i,
.about-section .feature-card .icon {
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.about-section .feature-card:hover i,
.about-section .feature-card:hover .icon {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 5px 8px rgba(8, 121, 185, 0.25));
}


/* =====================================================
   MOVIMIENTO DEL TÍTULO
   ===================================================== */

.about-section .section-title {
    animation: aboutTitle 0.8s ease-out both;
}

@keyframes aboutTitle {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =====================================================
   EFECTO DEL TEXTO PRINCIPAL
   ===================================================== */

.about-section .about-content {
    animation: aboutContent 0.9s ease-out both;
}

@keyframes aboutContent {
    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =====================================================
   MOVIMIENTO SUAVE DE LAS TARJETAS
   ===================================================== */

.about-section .feature-card:nth-child(1) {
    animation: cardUp 0.7s ease-out 0.15s both;
}

.about-section .feature-card:nth-child(2) {
    animation: cardUp 0.7s ease-out 0.30s both;
}

.about-section .feature-card:nth-child(3) {
    animation: cardUp 0.7s ease-out 0.45s both;
}

.about-section .feature-card:nth-child(4) {
    animation: cardUp 0.7s ease-out 0.60s both;
}

@keyframes cardUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =====================================================
   EFECTO PARA EL ESLOGAN FINAL
   ===================================================== */

.about-section .about-quote {
    animation: quoteAppear 1s ease-out 0.8s both;
}

@keyframes quoteAppear {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* =====================================================
   CELULAR
   ===================================================== */

@media (max-width: 550px) {

    .about-logo-wrapper::before {
        width: 180px;
        height: 180px;
    }

    .about-logo {
        animation:
            aboutLogoEntrada 0.9s ease-out both,
            aboutLogoFlotando 4.5s ease-in-out 1.1s infinite;
    }

}

/* =====================================================
   FOOTER COMPACTO - AUTOS PARA TI
   ===================================================== */

.site-footer {
    background: #07527d;
    color: white;
    padding: 30px 20px 12px;
    margin-top: 0;
    overflow: hidden;
}


/* CONTENEDOR */

.footer-container {
    max-width: 800px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;
    gap: 45px;
}


/* =====================================================
   LOGO
   ===================================================== */

.footer-brand {
    text-align: center;
}


/* Contenedor pequeño */

.footer-logo-wrapper {
    position: relative;

    width: 150px;
    height: 150px;

    margin: 0 auto 5px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Brillo */

.footer-logo-glow {
    position: absolute;

    width: 135px;
    height: 135px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(53,183,233,0.18) 0%,
        rgba(53,183,233,0.08) 45%,
        transparent 70%
    );

    animation: footerGlow 3s ease-in-out infinite;

    z-index: 0;
}


/* Logo pequeño */

.footer-logo {
    position: relative;

    width: 125px;
    max-width: 90%;
    height: auto;

    z-index: 1;

    filter: drop-shadow(
        0 6px 10px rgba(0,0,0,0.20)
    );

    animation:
        footerLogoEntrada 0.8s ease-out both,
        footerLogoMovimiento 4s ease-in-out 0.8s infinite;
}


/* =====================================================
   ESLOGAN
   ===================================================== */

.footer-slogan {
    margin: 0;

    font-size: 11px;
    font-weight: 800;

    line-height: 1.5;

    letter-spacing: 0.7px;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.20);
}


/* =====================================================
   MENÚ
   ===================================================== */

.footer-menu {
    text-align: left;

    animation:
        footerMenuAppear 0.8s ease-out 0.2s both;
}


.footer-menu h3 {
    margin: 0 0 12px;

    font-size: 17px;
    font-weight: 900;

    letter-spacing: 0.7px;

    padding-bottom: 7px;

    position: relative;
}


/* Línea */

.footer-menu h3::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 45px;
    height: 2px;

    border-radius: 10px;

    background: #35b7e9;
}


/* Lista */

.footer-menu ul {
    list-style: none;

    padding: 0;
    margin: 0;
}


/* Elementos */

.footer-menu li {
    margin-bottom: 7px;
}


/* Enlaces */

.footer-menu a {
    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    display: inline-block;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}


/* Hover */

.footer-menu a:hover {
    color: #65cef2;

    transform: translateX(5px);
}


/* =====================================================
   ANIMACIONES
   ===================================================== */

@keyframes footerLogoEntrada {

    0% {
        opacity: 0;

        transform:
            translateY(30px)
            scale(0.75)
            rotate(-5deg);
    }

    70% {
        opacity: 1;

        transform:
            translateY(-4px)
            scale(1.03)
            rotate(1deg);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1)
            rotate(0);
    }
}


@keyframes footerLogoMovimiento {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(0);
    }

    50% {
        transform:
            translateY(-7px)
            rotate(1deg);
    }
}


@keyframes footerGlow {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}


@keyframes footerMenuAppear {

    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =====================================================
   PARTE INFERIOR
   ===================================================== */

.footer-bottom {
    max-width: 800px;

    margin: 20px auto 0;

    padding-top: 10px;

    border-top:
        1px solid rgba(255,255,255,0.15);

    text-align: center;
}


.footer-bottom p {
    margin: 0;

    font-size: 10px;

    opacity: 0.7;
}


/* =====================================================
   CELULAR
   ===================================================== */

@media (max-width: 800px) {

    .site-footer {
        padding: 25px 15px 10px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-menu {
        text-align: center;
    }

    .footer-menu h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

}


@media (max-width: 550px) {

    .footer-logo-wrapper {
        width: 125px;
        height: 125px;
    }

    .footer-logo-glow {
        width: 110px;
        height: 110px;
    }

    .footer-logo {
        width: 105px;
    }

    .footer-slogan {
        font-size: 10px;
    }

    .footer-menu h3 {
        font-size: 16px;
    }

    .footer-menu a {
        font-size: 12px;
    }

}


