/* ==========================================
   SOLUCIÓN DEFINITIVA CONTRA DESBORDES EN MÓVIL
   ========================================== */

/* 1. Bloquea el scroll horizontal en toda la ventana del navegador */
html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
}

/* 2. Obliga a que cualquier sección, contenedor o grid respete el ancho de la pantalla */
main,
section,
div,
img,
header,
footer {
    max-width: 100%;
    box-sizing: border-box;
}

/* 3. Previene que textos largos o elementos pesados fuercen el ancho */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero {
    min-height: 465px;
    display: grid;
    grid-template-columns: 43% 57%;
    background: var(--pale);
    overflow: hidden;
}
.hero-copy {
    padding-top: 65px;
    padding-bottom: 55px;
    position: relative;
    z-index: 2;
}
.kicker {
    color: var(--blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    margin: 0 0 3rem;
}
.hero h1,
.dark-section h2,
.quote-cta h2 {
    margin: 0;
    font-family: var(--heading);
    /* Usamos un clamp más seguro o dejamos un tamaño fijo controlado para mobile */
    font-size: clamp(40px, 8vw, 88px);
    font-weight: 900;
    line-height: 0.96;
    color: var(--gray);
    /* EVITA desbordamientos inesperados mientras carga la fuente */
    word-break: break-word;
}
.hero h1 span,
.dark-section h2 span {
    color: var(--red);
}
.hero-text {
    max-width: 445px;
    margin: 22px 0;
    color: #4e5358;
    font-size: 15px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 22px;
}
.red-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    font-family: var(--heading);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none; /* Quita el subrayado del enlace */
    cursor: pointer;

    /* Inclina la forma del enlace */
    transform: skewX(-20deg);
    transition: all 0.3s ease;
}
.red-button {
    background: var(--red);
    color: var(--white);
}
.red-button span,
.outline-button span {
    font-size: clamp(0.8rem, 1.3vw, 1.5rem);
    transform: skewX(20deg);
}
.red-button img,
.outline-button img {
    width: clamp(1rem, 2vw, 2rem);
    margin: 0 -1.5px;
}

.outline-button {
    border: 2px solid var(--blue);
    color: var(--blue);
}
.hero-media {
    min-height: 18rem;
    position: relative;

    overflow: hidden;
}
.hero-media img {
    width: 100%;
    height: 100%;
}

.dark-section {
    background: var(--black);
    color: var(--white);
}
.services-section {
    padding: 47px 0 76px;
}
.services-section h2 {
    margin-bottom: 45px;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    font-size: clamp(1rem, 2vw, 3rem);
}

.service-icon {
    display: grid;
    place-items: center;
    flex: 0 0 94px;
    height: 94px;
    border-radius: 50%;

    font-size: 54px;
    color: var(--black);
    font-family: Georgia, serif;
}

.promo {
    min-height: 370px;
    position: relative;
    overflow: hidden;
    padding: 55px 0;
}
.promo h2 {
    margin-bottom: 42px;
}
.red-kicker {
    color: var(--red);
}
.promo-truck {
    position: absolute;
    right: 8%;
    top: 25px;
    width: 47%;
    height: 320px;

    mix-blend-mode: screen;

    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.promo-truck img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial {
    min-height: 270px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 30px max(7vw, 42px);
    gap: 38px;
    background: var(--pale);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-copy p {
    max-width: 560px;
    margin: 0 0 18px;
    color: #4c5055;
    font-family: var(--heading);
    font-size: 22px;
    font-weight: 700;
}
.testimonial-copy strong,
.testimonial-copy small {
    display: block;
}
.testimonial-copy strong {
    color: var(--red);
    font-family: var(--heading);
    font-size: 20px;
}
.testimonial-copy small {
    color: var(--gray);
}
.rating {
    margin-top: 15px;
    color: var(--blue);
    font-size: 21px;
    letter-spacing: 3px;
}
.rating span {
    color: transparent;
    -webkit-text-stroke: 1px var(--blue);
}
.round-arrow {
    font-size: 60px;
    color: var(--gray);
    text-align: center;
}
.numbers {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden; /* Clave: desactiva el desborde de las animaciones slide-from-left/right */
}
.numbers-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 65px;
}
.numbers h2 {
    margin: 3rem 0;
}
.number-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}
.number-icon {
    display: grid;
    place-items: center;
    width: 87px;
    height: 87px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 48px;
}
.number-row strong {
    display: block;
    color: var(--red);
    font-family: var(--heading);
    font-size: 44px;
    line-height: 0.9;
}
.number-row b {
    display: block;
    color: var(--red);
    font-family: var(--heading);
    font-size: 14px;
}
.number-row p {
    max-width: 270px;
    margin: 5px 0 0;
    color: #ddd;
    font-size: 11px;
}
.anniversary {
    background-color: #555555; /* Gris de fondo */
    color: #ffffff;
    padding: 40px 0px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 500px;
}
.anniversary strong {
    display: block;
    color: var(--white);
    font-family: var(--heading);
    font-size: 150px;
    line-height: 0.75;
}
.anniversary span {
    display: block;
    color: var(--white);
    font-family: var(--heading);
    font-size: 76px;
    font-weight: 900;
}
.anniversary p {
    color: var(--white);
    font-size: 20px;
}
.anniversary .silueta {
    width: 100%;
    margin-top: auto; /* Empuja la imagen al fondo del aside */
    display: flex;
    justify-content: flex-end;
}

.anniversary .silueta img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}
.brands {
    padding: 46px 7vw;
    background: var(--pale);
    text-align: center;
}
.brands h2 {
    color: var(--blue);
    font-family: var(--heading);
    font-size: 35px;
    margin: 0 0 34px;
}
.brand-list {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    color: #111;
    font-size: 31px;
}
.brand-list img {
    width: clamp(4rem, 10vw, 7rem);
}

.quote-cta {
    padding: 68px 20px;
    background: var(--black);
    text-align: center;
}
.quote-cta h2 {
    margin-bottom: 34px;
    color: var(--white);
}
.quote-cta h2 span {
    color: var(--white);
}
.quote-cta p {
    max-width: 1000px;
    margin: 3rem auto;
    color: var(--pale);
}

@media (max-width: 760px) {
    .red-button,
    .outline-button {
        padding: 6px 17px;
    }
    .hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .hero-copy {
        padding-top: 48px;
        padding-bottom: 45px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .services-section {
        padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .service-icon {
        flex-basis: 74px;
        width: 74px;
        height: 74px;
        font-size: 38px;
    }

    .promo-truck {
        position: absolute;
        right: 0%;
        top: 25px;
        width: 100%;
        height: 320px;
        mix-blend-mode: screen;
        filter: grayscale(1) brightness(0.2);
        clip-path: none;
    }

    .testimonial {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow: hidden; /* Corta cualquier desborde de animación */
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        padding: 30px 20px;
        margin: 0;
    }

    .testimonial-image {
        width: 100%;
        height: 190px;
        box-sizing: border-box;
    }

    .testimonial-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .testimonial-copy {
        width: 100%;
        box-sizing: border-box;
    }

    .testimonial-copy p {
        max-width: 100%; /* Evita que el texto interno fuerce el ancho de la caja */
        font-size: 18px; /* Ajuste opcional para que luzca mejor en móvil */
    }

    /* === AJUSTES PARA LA SECCIÓN DE NÚMEROS EN MÓVIL === */
    .numbers-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .number-row {
        grid-template-columns: 75px 1fr;
        gap: 15px;
    }

    .number-row strong {
        font-size: 38px;
    }

    .anniversary {
        min-height: 320px;
        margin-top: 20px;
        padding: 30px 15px 0 15px;
    }

    .anniversary strong {
        font-size: 95px;
    }

    .anniversary span {
        font-size: 52px;
    }

    .brand-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
    }
}
