/* ---- GENERAL STYLES --- */

:root {
/* YM-Primary */
    --ym-primary-950: #102a41; /* textos en fondo claro */
    --ym-primary-900: #184262; /* titulos en fondo claro */
    --ym-primary-800: #164d76; /* desc */
    --ym-primary-700: #165b8e; /* desc */
    --ym-primary-600: #1a72af; /* hover oscuro */
    --ym-primary: #2a94d5; /* primary */
    --ym-primary-400: #4faae1; /* detalles claros */
    --ym-primary-300: #8cc7ed; /* texto clarito */
    --ym-primary-200: #c2dff5; /* hover claro y divisores*/
    --ym-primary-100: #e4effa; /* surface */
    --ym-primary-50: #f2f8fd; /* textos en fondo oscuro y para fondos claros */

/* YM-Gray */
    --ym-gray-800: #435364; /* footer */
    --ym-gray-700: #5A6B7D; /* textos secundarios e iconos */
    --ym-gray-400: #A6B3C3;  /* bordes y divisores suaves */

/* YM-Extras */
    --ym-accent: #F43F5E;
    --ym-accent-alpha: rgba(244, 63, 94, 0.4);
    --ym-primary-alpha: rgba(42, 148, 213, 0.4);
    --ym-background-alpha: rgba(228, 239, 250, 0.65);

/* Tipografía */
    --ym-font-main: 'Quicksand', sans-serif;
}

html {
    scroll-behavior: smooth;
    color: var(--ym-primary-950);
    font-family: Quicksand, sans-serif;
    font-size: 16px;
}

@media (max-width: 700px) {
    html {
        font-size: 14px;
    }
}

.bold { font-weight: 700; }

.hidden { display: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---- HEADER --- */
header {
    height: 80px;
    width: 100%;  
    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 1000;
    background: var(--ym-background-alpha);

    border-bottom: var(--ym-gray-400) 0.1px solid;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#header-container {
    width: 100%;
    max-width: 1800px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none; 
    gap: 8px;
    padding: 16px;
}

#logo {
    height: 32px;
    user-select: none;
}

h1 {
    margin: 0;
    padding: 0;
    font-weight: 500;
    color:var(--ym-primary-900);
}

#header-buttons {
    display: flex;
    align-items: center;
    
    gap: 16px;
    padding: 16px;
}

#header-buttons a:nth-child(-n+3) {
    text-decoration: none;
    color: #FFF;
    letter-spacing: 2px;

    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

#header-buttons a:nth-child(-n+3):hover {
    text-decoration: underline;
    color: var(--ym-primary-600);
}

#btn-catalogo {
    text-decoration: none;
    color: #FFF;
    background-color: var(--ym-primary);
    padding: 8px 32px;
    border-radius: 50px;
    font-weight: 600;
    
    transition: background-color 0.3s ease;
}

#btn-catalogo:hover {
    background-color: var(--ym-primary-600);
}

nav[aria-label="breadcrumb"] {
    padding-top: 100px;
    width: 100%;
    max-width: 1280px;
    letter-spacing: 2px;
}

@media (max-width: 700px) {
    h1 {
        font-size: 1.5rem;
    }

    #logo {
        height: 24px;
    }

    #header-buttons a:nth-child(-n+3) {
        display: none;
    }
}

/* ---- BREADCRUMB SECTION --- */
nav[aria-label="breadcrumb"] {
    width: 95%;
    max-width: 1280px;
}

nav[aria-label="breadcrumb"] a {
    text-decoration: none;
    font-weight: 400;
    color: var(--ym-gray-700);
}

nav[aria-label="breadcrumb"] a:hover {
    text-decoration: underline;
    color: var(--ym-primary-600);
}

nav[aria-label="breadcrumb"] ol {
    list-style: none;
    display: flex;
    gap: 4px;
    padding: 0;
    margin: 0;
}

nav[aria-label="breadcrumb"] li::after {
    content: "/";
    margin-left: 4px;
    color: var(--ym-gray-700);
}

nav[aria-label="breadcrumb"] li:last-child::after {
    content: "";
}

/* ---- FOOTER --- */
.footer {
    width: 100%;
    background-color: var(--ym-gray-800);
    color: var(--ym-primary-50);
    padding: 64px 16px 32px 16px;
    font-size: 0.875rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-links {
    min-width: 200px;
}

.footer-links ul {
    list-style: none;   
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    text-align: center;
    color: var(--ym-primary-50);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--ym-primary-300);
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo img {
    width: 64px;
}

.footer-logo h5 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.footer-socials ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    gap: 16px;
}

.footer-socials li {
    display: flex;
}

.footer-socials img {
    width: 30px;
    filter: brightness(0) saturate(100%) invert(17%) sepia(91%) saturate(500%) hue-rotate(180deg) brightness(95%) contrast(95%);
    transition: filter 0.2s ease;
}

.footer-socials a:hover img {
    filter: brightness(0) saturate(100%) invert(40%) sepia(87%) saturate(2000%) hue-rotate(180deg) brightness(95%) contrast(95%);
}

.footer-socials a {
    background-color: var(--ym-primary-50);
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.footer-socials a:hover {
    transform: scale(1.1);
}

.footer__bottom {
    width: 100%;
    text-align: center;
    margin-top: 64px;
    font-size: 0.75rem;
    color: var(--ym-gray-400);
}

@media (max-width: 700px) {
    .footer-container {
        flex-direction: column;
        align-items: center; /* centra todo */
        text-align: center;
    }

    .footer-center {
        order: 1;
    }

    .footer-links {
        order: 2;
        display: flex;
        flex-direction: column;
    }
}

/* AUTO CARD */
.link-detalle {
    text-decoration: none;
}

.card-car {
    background: #fff;
    border: 1px solid var(--ym-gray-400);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.car-image-container {
    background-color: var(--ym-primary-100);
    border-radius: 8px 8px 0 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-car img {
    width: 70%;
    padding: 8px 0;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.informacion {
    padding: 12px;
}

.car-marca {
    font-weight: 300;
    font-size: 1.25rem;
    color: var(--ym-primary-900);
}

.car-modelo {
    color: var(--ym-primary-800);
    font-weight: 600;
    font-size: 1.75rem;
}

.car-tipo-caja {
    font-weight: 400;
    font-size: 1rem;
    color: var(--ym-gray-700);
}

.car-desde {
    font-weight: 300;
    font-size: 1rem;
    color: var(--ym-gray-700);
}

.car-precio {
    margin-top: 16px;

    color: var(--ym-primary);
    font-weight: 400;
    font-size: 1.5rem;

    display: flex;
    flex-direction: column;
}

.card-car {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-car:hover {
    box-shadow: 0 0 8px 1px var(--ym-primary-alpha);
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .card-car {
        width: 100%;
    }
}