/* =====================================================
   TRI REPUESTOS ITALIANOS S.A.
   DISEÑO CORPORATIVO ACTUALIZADO
   Archivo: css/style.css
   ===================================================== */

:root {
    --verde: #176b3a;
    --verde-oscuro: #104b2a;
    --verde-claro: #eaf3ed;
    --celeste: #39a9d6;
    --plateado: #c7cbd0;
    --blanco: #ffffff;
    --gris: #444444;
    --gris-claro: #f4f6f5;
    --oscuro: #202824;
    --sombra: 0 8px 24px rgba(0, 0, 0, .09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--gris);
    background: var(--blanco);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--verde);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--celeste);
    outline-offset: 3px;
}

/* =====================================================
   ENCABEZADO
   ===================================================== */

.encabezado {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px clamp(18px, 4vw, 60px);
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid #e5e9e6;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .05);
}

.marca {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--verde-oscuro);
    text-decoration: none;
    font-weight: 800;
    line-height: 1.15;
}

.logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.marca-texto {
    font-size: 1.05rem;
    color: #ff6500;
    font-weight: 700;
    letter-spacing: .3px;
    -webkit-text-stroke: .25px #171717;
    text-shadow: 0 0 1px rgba(225, 101, 0, .5);
}

.navegacion {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.navegacion a {
    padding: 9px 11px;
    color: var(--oscuro);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 7px;
    transition: .2s ease;
}

.navegacion a:hover {
    color: var(--verde);
    background: var(--verde-claro);
}

/* =====================================================
   PORTADA
   ===================================================== */

.portada {
    min-height: 550px;
    display: flex;
    align-items: center;
    padding: 75px clamp(20px, 8vw, 110px);
    color: var(--blanco);

    background:
        linear-gradient(
            90deg,
            rgba(10, 43, 25, .85),
            rgba(15, 70, 39, .60),
            rgba(10, 43, 25, .20)
        ),
        url("../Imagenes/empresa/tracto_empresa.jpeg")
        center center / cover no-repeat;
}

.contenido-portada {
    max-width: 800px;
}

.etiqueta {
    margin: 0 0 12px;
    color: var(--verde);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.portada .etiqueta {
    color: #a9e2bf;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
}

.portada h1 {
    max-width: 780px;
    margin: 0 0 20px;
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    line-height: 1.08;
}

.portada p {
    max-width: 720px;
    font-size: 1.08rem;
}

.portada .eslogan {
    margin: 22px 0;
    color: #d5f3df;
    font-size: 1.35rem;
    font-weight: 800;
}

.botones-portada {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* =====================================================
   BOTONES
   ===================================================== */

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    color: var(--blanco);
    background: var(--verde);
    border: 2px solid var(--verde);
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.boton:hover {
    background: var(--verde-oscuro);
    border-color: var(--verde-oscuro);
    transform: translateY(-2px);
}

.portada .boton {
    background: var(--blanco);
    border-color: var(--blanco);
    color: var(--verde-oscuro);
}

.portada .boton:hover {
    background: #eaf5ee;
}

.boton-secundario {
    color: var(--verde);
    background: transparent;
    border-color: currentColor;
}

.portada .boton-secundario {
    color: var(--blanco);
    background: transparent;
    border-color: rgba(255, 255, 255, .8);
}

.boton-whatsapp {
    background: #168c4a;
    border-color: #168c4a;
}

/* =====================================================
   SECCIONES GENERALES
   ===================================================== */

.seccion {
    padding: 76px clamp(20px, 6vw, 84px);
}

.seccion:nth-of-type(even) {
    background: var(--gris-claro);
}

.seccion h2 {
    margin: 0 0 20px;
    color: var(--oscuro);
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    text-align: center;
}

.seccion > .etiqueta {
    text-align: center;
}

.texto-centrado {
    max-width: 850px;
    margin: 0 auto 32px;
    text-align: center;
}

.nosotros .texto-centrado {
    margin-top: 22px;
}

.nosotros .texto-centrado p {
    max-width: 950px;
    margin: 0 auto 15px;
}

/* =====================================================
   MISIÓN, VISIÓN Y VALORES
   ===================================================== */

.mision-vision-valores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.bloque-institucional {
    padding: 28px;
    background: var(--blanco);
    border-radius: 14px;
    border-top: 5px solid var(--verde);
    box-shadow: var(--sombra);
}

.bloque-institucional h3 {
    margin: 0 0 16px;
    color: var(--verde);
    font-size: 1.35rem;
}

.bloque-institucional p {
    margin: 0;
    line-height: 1.8;
}

.bloque-valores ul {
    padding-left: 22px;
    line-height: 2;
}

/* =====================================================
   BENEFICIOS
   ===================================================== */

.beneficios {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.beneficios article {
    padding: 24px;
    background: #eaf3ed;
    border-radius: 12px;
    border-left: 4px solid var(--celeste);
}

.beneficios h3 {
    margin: 0 0 10px;
    color: var(--verde-oscuro);
}

.beneficios p {
    margin: 0;
}

/* =====================================================
   SERVICIOS
   ===================================================== */

.lista-servicios {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 35px;
}

.servicio {
    padding: 26px;
    background: var(--blanco);
    border: 1px solid #e3e9e4;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.servicio:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra);
}

.servicio h3 {
    margin-top: 0;
    color: var(--verde-oscuro);
}

.servicio p {
    min-height: 76px;
}

.enlace-verde {
    display: inline-block;
    font-weight: 800;
    text-decoration: none;
}

.enlace-verde:hover {
    text-decoration: underline;
}

.fabricacion {
    margin-top: 34px;
    padding: 30px;
    background: #eaf3ed;
    border-radius: 12px;
}

.fabricacion h3 {
    margin-top: 0;
    color: var(--verde-oscuro);
}

.lista-equipos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    padding-left: 22px;
    margin-bottom: 25px;
}

/* =====================================================
   MARCAS - IMAGEN GRANDE
   Archivo: Imagenes/marcas/marcas.jpeg
   ===================================================== */

.marcas {
    background: var(--blanco) !important;
}

.imagen-marcas {
    width: 100%;
    max-width: 1250px;
    margin: 35px auto;
    padding: 0;
    text-align: center;
}

.imagen-marcas img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
}

.marcas .nota {
    margin-top: 25px;
    color: #666;
    font-size: .88rem;
    text-align: center;
}

/* =====================================================
   GALERÍA DE MAQUINARIA
   ===================================================== */

.galeria {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.equipo {
    overflow: hidden;
    background: var(--blanco);
    border-radius: 12px;
    box-shadow: var(--sombra);
    transition: transform .2s ease;
}

.equipo:hover {
    transform: translateY(-4px);
}

.equipo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #e7e9e7;
}

.equipo-texto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
}

.equipo-texto h3 {
    margin: 0;
    color: var(--verde-oscuro);
    font-size: 1.05rem;
}

/* =====================================================
   FORMULARIO DE COTIZACIÓN
   ===================================================== */

.cotizar {
    background: #edf4ef !important;
}

.formulario {
    max-width: 760px;
    margin: 32px auto 45px;
    padding: clamp(20px, 4vw, 36px);
    background: var(--blanco);
    border-radius: 14px;
    box-shadow: var(--sombra);
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.campo label {
    color: var(--oscuro);
    font-weight: 800;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--oscuro);
    background: #fff;
    border: 1px solid #cbd4cd;
    border-radius: 7px;
    font: inherit;
}

.campo textarea {
    resize: vertical;
}

.boton-formulario {
    width: 100%;
}

.nota-formulario {
    color: #666;
    font-size: .88rem;
    text-align: center;
}

.estado {
    min-height: 1.5em;
    color: var(--verde-oscuro);
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* =====================================================
   ASESORES
   ===================================================== */

.asesores {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.asesores > h3 {
    color: var(--oscuro);
}

.tarjetas-asesores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tarjeta-asesor {
    padding: 24px;
    background: var(--blanco);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}

.tarjeta-asesor h4 {
    margin: 0 0 8px;
    color: var(--verde-oscuro);
    font-size: 1.15rem;
}

/* =====================================================
   CONTACTO
   ===================================================== */

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.dato-contacto {
    padding: 24px;
    background: var(--blanco);
    border: 1px solid #e1e7e2;
    border-radius: 12px;
}

.dato-contacto h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    color: var(--verde-oscuro);
}

.icono-contacto {
    display: block;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    max-width: 32px;
    object-fit: contain;
    margin: 0;
    background: transparent;
}

.dato-contacto a {
    overflow-wrap: anywhere;
}

.horario {
    list-style: none;
    padding: 0;
    margin: 0;
}

.horario li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #e8ece9;
}

.horario li:last-child {
    border-bottom: 0;
}

.contacto-acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

/* =====================================================
   PIE DE PÁGINA
   ===================================================== */

.pie {
    padding: 38px 20px;
    color: var(--blanco);
    background: #17251c;
    text-align: center;
}

.pie img {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    object-fit: contain;
    background: var(--blanco);
    border-radius: 8px;
}

.pie p {
    margin: 7px 0;
}

/* CRÉDITO DE CREACIÓN */

.pie .credito-creacion {
    display: block !important;
    visibility: visible !important;
    margin-top: 20px;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
}

.pie .credito-creacion strong {
    color: #ffffff;
    font-weight: 800;
}

/* =====================================================
   TABLETAS
   ===================================================== */

@media (max-width: 1000px) {

    .encabezado {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .navegacion {
        justify-content: flex-start;
    }

    .lista-servicios,
    .galeria {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mision-vision-valores,
    .beneficios {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   CELULARES
   ===================================================== */

@media (max-width: 600px) {

    html {
        scroll-padding-top: 150px;
    }

    .encabezado {
        padding: 10px 15px;
    }

    .logo {
        width: 48px;
        height: 48px;
    }

    .marca-texto {
        font-size: .82rem;
        color: #f58220;
    }

    .navegacion {
        gap: 3px;
    }

    .navegacion a {
        padding: 7px 8px;
        font-size: .82rem;
    }

    .portada {
        min-height: 470px;
        padding: 55px 22px;
    }

    .portada h1 {
        font-size: 2.35rem;
    }

    .botones-portada {
        flex-direction: column;
        align-items: stretch;
    }

    .seccion {
        padding: 54px 18px;
    }

    .lista-servicios,
    .galeria,
    .contacto-grid,
    .tarjetas-asesores {
        grid-template-columns: 1fr;
    }

    .servicio p {
        min-height: 0;
    }

    .lista-equipos {
        grid-template-columns: 1fr;
    }

    .equipo img {
        height: 230px;
    }

    .equipo-texto {
        align-items: flex-start;
    }

    .bloque-institucional {
        padding: 22px;
    }

    .horario li {
        font-size: .9rem;
    }

    .icono-contacto {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        max-width: 28px;
    }

    .imagen-marcas {
        margin: 25px auto;
    }

    .pie {
        padding: 32px 15px;
    }

}

/* =====================================================
   ACCESIBILIDAD
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }

}