/* ========================================
   FUENTE AERO
======================================== */

@font-face {
    font-family: "Aero";
    src: url("../fonts/aero.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   VARIABLES GENERALES
======================================== */

:root {
    --content-width: 1440px; /* ancho maximo de pagina */
    --grid-gap: 24px; /* espacio entre columnas */

    --header-height: 180px; /* altura del contenido del heater */
    --header-bar-height: 40px; /* altura de las franjas amarillas */

    --image-height: 600px; /* altura estandar de las imagenes */
    --section-spacing: 24px; /* separacion entre bloques */

    --title-bar-height: 90px; /* altura de barra de titulo */
    --title-border-height: 16px; /* grosor de linea negra */

    --brand-yellow: #fff200; /* amarillo corp */
    --brand-black: #000000; /* negro */
    --brand-white: hwb(0 99% 1%); /* blanco */
    --brand-red: hwb(0 2% 3%); /* blanco */
    --panel-bg: #e9e9e9; /* gris de bloque grande */
    --panel-radius: 20px; /* redondeado del bloque grande */

    --card-radius: 12px; /* redondeado de tarjetas internas */

    --panel-shadow: /* sombra de bloques */ 0 4px 14px rgb(0 0 0 / 8%);
}

/* ========================================
   REINICIO GENERAL
======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;

    color: var(--brand-black);

    font-family: Arial, Helvetica, sans-serif;

    background-color: #d9d9d9;

    background-image: url("/front/images/page-background.png");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

img {
    display: block;
    max-width: 100%;
}

/* ========================================
   CONTENEDORES PRINCIPALES
======================================== */

.site-header,
.hero-section,
.services-section,
.service-block,
.minor-repairs-section,
.testimonials-section,
.video-gallery-section,
.site-footer {
    width: calc(100% - 48px);
    max-width: var(--content-width);

    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   ESPACIADO GENERAL ENTRE SECCIONES
======================================== */

.hero-section,
.services-section,
.service-block,
.minor-repairs-section,
.testimonials-section,
.video-gallery-section {
    margin-top: var(--section-spacing);
}

/* ========================================
   PANELES PRINCIPALES
======================================== */

.hero-section,
.services-section,
.service-block,
.minor-repairs-section,
.testimonials-section,
.video-gallery-section {
    background-color: var(--panel-bg);

    border-radius: var(--panel-radius);

    box-shadow: var(--panel-shadow);

    overflow: hidden;
}

/* ========================================
   HEADER
======================================== */

.site-header {
    background-color: var(--brand-white);
}

.header-yellow-bar {
    width: 100%;
    height: var(--header-bar-height);

    background-color: var(--brand-yellow);
}

.header-grid {
    width: 100%;

    padding-block: 16px;

    display: grid;

    grid-template-columns: repeat(12, minmax(0, 1fr));

    column-gap: var(--grid-gap);

    align-items: stretch;
}

.header-block {
    min-width: 0;
    height: var(--header-height);

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 0;

    background-color: var(--brand-white);

    text-decoration: none;
}

.header-logo {
    grid-column: span 4;
}

.header-emergency {
    grid-column: span 6;
}

.header-language {
    grid-column: span 2;
}

.header-block img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    border: 0;
    outline: 0;
    box-shadow: none;
}

/* ========================================
   EFECTOS HEADER
======================================== */

.header-emergency,
.header-language {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.header-emergency:hover,
.header-language:hover {
    transform: translateY(-2px);

    box-shadow: 0 5px 12px rgb(0 0 0 / 15%);
}

.header-emergency:focus-visible,
.header-language:focus-visible {
    outline: 4px solid var(--brand-black);

    outline-offset: 3px;
}

/* ========================================
   HERO
======================================== */

.hero-section {
    padding: 18px 22px 28px;
}

.section-divider {
    width: 100%;
    height: 30px;

    margin: 0;

    background-color: var(--brand-black);
}

.hero-grid {
    width: 100%;

    padding-block: 8px;
}

.hero-banner {
    width: 100%;
    height: var(--image-height);

    overflow: hidden;

    background-color: var(--brand-white);

    border-radius: var(--card-radius);
}

.hero-banner img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* ========================================
   SERVICES
======================================== */

.services-section {
    padding: 16px 16px 16px;
}

/* ========================================
   BARRA SERVICES
======================================== */

.services-title-bar {
    width: 100%;
    height: var(--title-bar-height);

    margin: 0;
    padding: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background-color: var(--brand-yellow);

    border-top: var(--title-border-height) solid var(--brand-black);

    border-bottom: var(--title-border-height) solid var(--brand-black);
}

.services-title-bar h2 {
    margin: 0;

    padding: 0 20px;

    color: var(--brand-black);

    font-family: "Aero", Impact, "Arial Black", sans-serif;

    font-size: clamp(1.8rem, 3vw, 3.25rem);

    font-weight: 400;

    line-height: 1;

    text-align: center;

    text-transform: uppercase;
}

/* ========================================
   BLOQUES INDIVIDUALES DE SERVICIOS

   Replace Rims
   Patches
   Blowouts
   Tire Rims 315
   RV Tires
   Tire Rims 225
======================================== */

.service-block {
    padding: 12px;
}

/* ========================================
   GRID GENERAL DE SERVICIOS
======================================== */

.service-images-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(12, minmax(0, 1fr));

    gap: var(--grid-gap);
}

/* ========================================
   CADA IMAGEN DE SERVICIO
======================================== */

.service-image {
    grid-column: span 4;

    min-width: 0;

    height: var(--image-height);

    overflow: hidden;

    background-color: var(--brand-white);

    border-radius: var(--card-radius);
}

.service-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    border: 0;
    outline: 0;

    box-shadow: none;
}

/* ========================================
   MINOR REPAIRS
======================================== */

.minor-repairs-section {
    padding: 16px 16px 16px;
}

/* ========================================
   BARRA MINOR REPAIRS
======================================== */

.minor-repairs-title-bar {
    width: 100%;
    height: var(--title-bar-height);

    margin: 0;
    padding: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background-color: var(--brand-yellow);

    border-top: var(--title-border-height) solid var(--brand-black);

    border-bottom: var(--title-border-height) solid var(--brand-black);
}

.minor-repairs-title-bar h2 {
    margin: 0;

    padding: 0 20px;

    color: var(--brand-black);

    font-family: "Aero", Impact, "Arial Black", sans-serif;

    font-size: clamp(1.8rem, 3vw, 3.25rem);

    font-weight: 400;

    line-height: 1;

    text-align: center;

    text-transform: uppercase;
}

/* ========================================
   CONTENEDOR MINOR REPAIRS
======================================== */

.minor-repairs-blocks {
    width: 100%;
}

/* ========================================
   CADA BLOQUE DE MINOR REPAIRS
======================================== */

.minor-repairs-grid {
    width: 100%;

    margin-top: var(--grid-gap);

    display: grid;

    grid-template-columns: repeat(12, minmax(0, 1fr));

    gap: var(--grid-gap);
}

/* ========================================
   TARJETAS MINOR REPAIRS
======================================== */

.minor-repair-card {
    grid-column: span 4;

    min-width: 0;

    height: var(--image-height);

    overflow: hidden;

    background-color: var(--brand-white);

    border-radius: var(--card-radius);
}

.minor-repair-card img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    border: 0;
    outline: 0;

    box-shadow: none;
}

/* ========================================
   TESTIMONIALS
======================================== */

.testimonials-section {
    padding: 16px 16px 16px;
}

/* ========================================
   BARRA TESTIMONIALS
======================================== */

.testimonials-title-bar {
    width: 100%;
    height: var(--title-bar-height);

    display: flex;

    align-items: center;
    justify-content: center;

    background-color: var(--brand-yellow);

    border-top: var(--title-border-height) solid var(--brand-black);

    border-bottom: var(--title-border-height) solid var(--brand-black);
}

.testimonials-title-bar h2 {
    margin: 0;

    padding: 0 20px;

    color: var(--brand-black);

    font-family: "Aero", Impact, "Arial Black", sans-serif;

    font-size: clamp(1.8rem, 3vw, 3.25rem);

    font-weight: 400;

    line-height: 1;

    text-align: center;

    text-transform: uppercase;
}

/* ========================================
   CONTENIDO TESTIMONIALS
======================================== */

.testimonials-content {
    width: 100%;

    margin-top: 18px;

    padding: 28px;

    background-color: var(--brand-yellow);

    border-radius: var(--card-radius);
}

.testimonials-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(12, minmax(0, 1fr));

    gap: var(--grid-gap);
}

/* ========================================
   TARJETAS TESTIMONIALS
======================================== */

.testimonial-card {
    grid-column: span 4;

    min-width: 0;

    min-height: 460px;

    padding: 34px 28px 20px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background-color: #f7f7f7;

    border-radius: 18px;

    box-shadow: 0 8px 18px rgb(0 0 0 / 12%);

    text-align: center;
}

.testimonial-text {
    margin: 0 0 28px;

    color: #777777;

    font-size: 1rem;

    line-height: 1.65;
}

.testimonial-person {
    display: flex;

    flex-direction: column;

    align-items: center;
}

.testimonial-avatar {
    width: 104px;
    height: 104px;

    margin-bottom: 10px;

    border-radius: 50%;

    object-fit: cover;
    object-position: center;
}

.testimonial-name {
    margin: 0;

    color: var(--brand-black);

    font-size: 1.25rem;

    line-height: 1.2;
}

/* ========================================
   VIDEO GALLERY
======================================== */

.video-gallery-section {
    padding: 18px 22px 28px;
}

/* ========================================
   TÍTULO VIDEO GALLERY
======================================== */

.video-gallery-heading {
    width: 100%;

    margin-bottom: 20px;
}

.video-gallery-heading h2 {
    margin: 0;

    color: var(--brand-black);

    font-family: "Aero", Impact, "Arial Black", sans-serif;

    font-size: clamp(1.8rem, 3vw, 3rem);

    font-weight: 400;

    line-height: 1;

    text-transform: uppercase;
}

.video-gallery-accent {
    display: block;

    width: 100%;
    height: 20px;

    margin-top: 8px;

    background-color: var(--brand-yellow);
}

/* ========================================
   GRID VIDEO GALLERY
======================================== */

.video-gallery-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(12, minmax(0, 1fr));

    gap: var(--grid-gap);
}

/* ========================================
   VIDEO
======================================== */

.video-card {
    grid-column: span 3;

    min-width: 0;

    overflow: hidden;

    background-color: #111111;

    border: 2px solid var(--brand-black);

    border-radius: 10px;

    box-shadow: 0 8px 18px rgb(0 0 0 / 12%);
}

.video-card video {
    display: block;

    width: 100%;

    aspect-ratio: 9 / 16;

    height: auto;

    object-fit: cover;

    background-color: #111111;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    margin: var(--section-spacing) auto 0;

    background-color: var(--brand-black);
}

/* ========================================
   PARTE NEGRA FOOTER
======================================== */

.footer-main {
    width: 100%;

    background-color: var(--brand-black);
}

.footer-grid {
    width: 100%;

    min-height: 210px;

    margin-inline: auto;

    padding: 18px 14px;

    display: grid;

    grid-template-columns: repeat(12, minmax(0, 1fr));

    column-gap: var(--grid-gap);

    align-items: center;
}

/* ========================================
   MÉTODOS DE PAGO
======================================== */

.footer-payments {
    grid-column: span 4;

    display: flex;

    align-items: center;
    justify-content: flex-start;
}

.footer-payments img {
    width: 100%;

    max-width: 430px;

    height: auto;

    object-fit: contain;

    object-position: left center;
}

/* ========================================
   REDES SOCIALES
======================================== */

.footer-social {
    grid-column: span 4;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 18px;
}

.footer-social a {
    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    text-decoration: none;

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.footer-social a:hover {
    transform: translateY(-3px);

    opacity: 0.85;
}

.footer-social img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

/* ========================================
   ENLACES LEGALES
======================================== */

.footer-legal {
    grid-column: span 4;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    gap: 14px;

    padding-left: 30px;
}

.footer-legal a {
    color: var(--brand-white);

    font-size: 1rem;

    line-height: 1.2;

    text-decoration: underline;
}

.footer-legal a:hover {
    color: var(--brand-yellow);
}

/* ========================================
   COPYRIGHT
======================================== */

.footer-copyright {
    width: 100%;

    min-height: 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 10px 24px;

    background-color: var(--brand-yellow);

    color: var(--brand-black);

    text-align: center;
}

.footer-copyright p {
    margin: 0;

    font-size: 0.95rem;

    line-height: 1.3;
}

/* ========================================
   HEADER MÓVIL
======================================== */

.mobile-header,
.mobile-menu {
    display: none;
}

/* ========================================
   TABLET
   768px - 1199px
======================================== */

@media (min-width: 768px) and (max-width: 1199px) {
    .hero-banner {
        height: auto;
    }

    .hero-banner img {
        width: 100%;
        height: auto;

        object-fit: contain;
        object-position: center;
    }

    :root {
        --grid-gap: 16px;

        --header-height: 130px;

        --header-bar-height: 24px;

        --image-height: 480px;

        --section-spacing: 20px;

        --title-bar-height: 80px;

        --title-border-height: 10px;
    }

    /* ========================================
       ANCHO GENERAL TABLET
    ======================================== */

    .site-header,
    .hero-section,
    .services-section,
    .service-block,
    .minor-repairs-section,
    .testimonials-section,
    .video-gallery-section,
    .site-footer {
        width: calc(100% - 32px);
    }

    /* ========================================
       HEADER TABLET
    ======================================== */

    .header-grid {
        padding-block: 12px;

        column-gap: 16px;
    }

    /* ========================================
       HERO TABLET
    ======================================== */

    .section-divider {
        height: 18px;
    }

    /* ========================================
       PANELES TABLET
    ======================================== */

    .hero-section,
    .services-section,
    .service-block,
    .minor-repairs-section,
    .testimonials-section,
    .video-gallery-section {
        padding: 16px 18px 24px;
    }

    /* ========================================
       SERVICIOS TABLET
    ======================================== */

    .service-images-grid,
    .minor-repairs-grid {
        gap: 16px;
    }

    .service-image,
    .minor-repair-card {
        grid-column: span 6;

        width: 100%;
        height: 440px;

        margin-inline: auto;
    }

    .service-image:last-child,
    .minor-repair-card:last-child {
        grid-column: 4 / span 6;
    }

    /* ========================================
       TÍTULOS TABLET
    ======================================== */

    .services-title-bar h2,
    .minor-repairs-title-bar h2,
    .testimonials-title-bar h2 {
        font-size: clamp(1.7rem, 4vw, 2.7rem);
    }

    /* ========================================
       TESTIMONIALS TABLET
    ======================================== */

    .testimonials-grid {
        gap: 16px;
    }

    .testimonial-card {
        grid-column: span 6;

        min-height: 430px;
    }

    .testimonial-card:last-child {
        grid-column: 4 / span 6;
    }

    /* ========================================
       VIDEO TABLET
    ======================================== */

    .video-gallery-grid {
        gap: 16px;
    }

    .video-card {
        grid-column: span 6;
    }

    /* ========================================
       FOOTER TABLET
    ======================================== */

    .footer-grid {
        width: 100%;

        min-height: 190px;

        padding: 24px 20px;

        column-gap: 16px;
    }

    .footer-payments {
        grid-column: span 4;
    }

    .footer-social {
        grid-column: span 4;

        gap: 14px;
    }

    .footer-social a {
        width: 46px;
        height: 46px;
    }

    .footer-legal {
        grid-column: span 4;

        padding-left: 18px;
    }

    .footer-legal a {
        font-size: 0.9rem;
    }
}

/* ========================================
   TELÉFONOS
   767px O MENOS
======================================== */

@media (max-width: 767px) {
    /* ========================================
   OCULTAR HEADER DESKTOP EN MÓVIL
======================================== */

    .header-yellow-bar,
    .header-grid {
        display: none;
    }

    /* ========================================
   HEADER MÓVIL
======================================== */

    .mobile-header {
        width: 100%;
        min-height: 86px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 10px 16px;

        background-color: var(--brand-white);

        border-top: 10px solid var(--brand-yellow);
        border-bottom: 10px solid var(--brand-yellow);
    }

    .mobile-header-logo {
        width: 190px;
        max-width: 65%;
    }

    .mobile-header-logo img {
        width: 100%;
        height: auto;

        object-fit: contain;
    }

    /* ========================================
   BOTÓN HAMBURGUESA
======================================== */

    .mobile-menu-button {
        width: 52px;
        height: 52px;

        padding: 8px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 6px;

        border: 0;
        border-radius: 8px;

        background-color: var(--brand-black);

        cursor: pointer;
    }

    .mobile-menu-button span {
        display: block;

        width: 30px;
        height: 4px;

        background-color: var(--brand-yellow);

        border-radius: 3px;
    }

    /* ========================================
   MENÚ DESPLEGABLE
======================================== */

    .mobile-menu {
        width: 100%;

        display: none;

        flex-direction: column;

        background-color: var(--brand-red);
    }

    .mobile-menu .mobile-emergency-link {
        color: #fcfcfc;
        font-weight: 700;
    }

    .mobile-menu.is-open {
        display: flex;
    }

    .mobile-menu a {
        width: 100%;

        padding: 18px 20px;

        color: var(--brand-yellow);
        background-color: var(--brand-black);

        font-family: "Aero", Impact, "Arial Black", sans-serif;

        font-size: 1.2rem;

        text-align: center;
        text-decoration: none;
        text-transform: uppercase;

        border-bottom: 1px solid rgb(255 255 255 / 20%);
    }

    .mobile-menu .mobile-emergency-link {
        color: var(--brand-white);
        background-color: #ff0000;
    }

    .mobile-menu a:hover {
        color: var(--brand-yellow);
    }

    :root {
        --grid-gap: 12px;

        --header-bar-height: 12px;

        --section-spacing: 16px;

        --title-bar-height: 70px;

        --title-border-height: 8px;

        --panel-radius: 14px;

        --card-radius: 10px;
    }

    /* ========================================
       ANCHO GENERAL MÓVIL
    ======================================== */

    .site-header,
    .hero-section,
    .services-section,
    .service-block,
    .minor-repairs-section,
    .testimonials-section,
    .video-gallery-section,
    .site-footer {
        width: calc(100% - 24px);
    }

    /* ========================================
       PANELES MÓVIL
    ======================================== */

    .hero-section,
    .services-section,
    .service-block,
    .minor-repairs-section,
    .testimonials-section,
    .video-gallery-section {
        padding: 12px 12px 18px;
    }

    /* ========================================
       HEADER MÓVIL
    ======================================== */

    .header-grid {
        padding-block: 12px;

        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 12px;
    }

    .header-logo {
        grid-column: 1 / -1;

        height: 105px;
    }

    .header-emergency {
        grid-column: 1 / -1;

        height: 105px;
    }

    .header-language {
        grid-column: 2 / span 2;

        height: 90px;
    }

    /* ========================================
       HERO MÓVIL
    ======================================== */

    .section-divider {
        height: 12px;
    }

    .hero-banner {
        height: auto;
    }

    .hero-banner img {
        width: 100%;
        height: auto;

        object-fit: contain;
    }

    /* ========================================
       SERVICIOS MÓVIL
    ======================================== */

    .service-images-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 12px;
    }

    .service-image,
    .minor-repair-card {
        grid-column: 1 / -1;

        width: 82%;
        height: auto;

        margin-inline: auto;

        min-height: 0;
    }

    .service-image:last-child {
        grid-column: 1 / -1;
    }

    .service-image img {
        width: 100%;
        height: auto;

        object-fit: contain;
    }

    /* ========================================
       MINOR REPAIRS MÓVIL
    ======================================== */

    .minor-repairs-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 12px;

        margin-top: 16px;
    }

    .minor-repair-card:last-child {
        grid-column: 1 / -1;
    }

    .minor-repair-card img {
        width: 100%;
        height: auto;

        object-fit: contain;
    }

    /* ========================================
       BARRAS DE SECCIÓN MÓVIL
    ======================================== */

    .services-title-bar h2,
    .minor-repairs-title-bar h2,
    .testimonials-title-bar h2 {
        padding-inline: 12px;

        font-size: clamp(1.5rem, 8vw, 2.4rem);

        line-height: 1;
    }
    /* Ajuste especial Testimonials en móvil */

    .testimonials-title-bar {
        height: auto;
        min-height: 70px;
        padding: 10px 8px;
    }

    .testimonials-title-bar h2 {
        padding-inline: 6px;

        font-size: clamp(1.25rem, 5.2vw, 1.7rem);

        line-height: 1.05;

        text-align: center;
    }

    /* ========================================
       TESTIMONIALS MÓVIL
    ======================================== */

    .testimonials-content {
        margin-top: 12px;

        padding: 14px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 12px;
    }

    .testimonial-card {
        grid-column: 1 / -1;

        min-height: auto;

        padding: 24px 18px 18px;
    }

    .testimonial-text {
        font-size: 0.95rem;

        line-height: 1.6;
    }

    .testimonial-avatar {
        width: 86px;
        height: 86px;
    }

    .testimonial-name {
        font-size: 1.1rem;
    }

    /* ========================================
       VIDEO GALLERY MÓVIL
    ======================================== */

    .video-gallery-heading h2 {
        font-size: clamp(1.5rem, 8vw, 2.3rem);
    }

    .video-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 12px;
    }

    .video-card {
        grid-column: 1 / -1;
    }

    .video-card video {
        width: 100%;

        height: auto;

        aspect-ratio: 9 / 16;
    }

    /* ========================================
       FOOTER MÓVIL
    ======================================== */

    .footer-grid {
        width: 100%;

        min-height: auto;

        padding: 24px 16px;

        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 28px;
    }

    .footer-payments,
    .footer-social,
    .footer-legal {
        grid-column: 1 / -1;
    }

    .footer-payments {
        justify-content: center;
    }

    .footer-payments img {
        max-width: 320px;

        object-position: center;
    }

    .footer-social {
        justify-content: center;

        gap: 16px;
    }

    .footer-social a {
        width: 48px;
        height: 48px;
    }

    .footer-legal {
        align-items: center;

        padding-left: 0;

        text-align: center;
    }

    .footer-copyright {
        min-height: 64px;

        padding: 12px 20px;
    }

    .footer-copyright p {
        font-size: 0.82rem;
    }
}
