/* ====================================================================  VARIABLES  ==================================================================== */

:root {
    --main-font: "Inter", sans-serif;
    --secondary-font: "Barlow", sans-serif;

    --azul-marino: #001F60;
    --rojo: #CE0E2D;
    --blanco: #fff;
    --fondo-claro: #f6f6fa;
    --rojo-claro: #ff6b63;
    --azul-oscuro: #0f172b;
    --negro: #000;
    --whatsapp: #2db742;
    --texto-footer: rgba(255, 255, 255, 0.65);
    --verde: #99da01;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    font-optical-sizing: auto;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--secondary-font);
    font-size: 1.6rem;
    line-height: 2;
    position: relative;
}

/* ====================================================================  GLOBALES  ==================================================================== */

.contenedor {
    width: min(90%, 150rem);
    margin: 0 auto;
}

a {
    text-decoration: none;
}

h1, h2, h3, h4, h5 {
    font-family: var(--main-font);
    margin: 0;
}

h2 {
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--azul-marino);
    font-weight: 700;
}

/* h3 global: solo para títulos de sección, NO para tarjetas.
   En tarjetas, sobreescribir localmente con font-size: 2.5rem o 3rem */
h3 {
    font-size: 3.5rem;
    text-transform: capitalize;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

p {
    margin: 0;
}

.titulo-principal{ /*  TITULO DE PRINCIPAL EN LOS HERO  */
    font-size: 3.5rem;
    font-weight: 700;
}

.titulo-principal span{
    color: var(--rojo);
    text-decoration: underline;
}

.titulo-acompanamiento{ /*  TITULO DE ACOMPAÑAMIENTO EN LOS HERO  */
    color: var(--blanco);
    font-size: 2rem;
    margin: 0 0 2rem 0;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--main-font);
}

@media (min-width: 1024px) {
    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 5rem;
    }

    p {
        font-size: 1.8rem;
    }
    
    .titulo-principal { /*  TITULO DE PRINCIPAL EN LOS HERO  */
        font-size: 4rem;
    }

    .titulo-acompanamiento{ /*  TITULO DE ACOMPAÑAMIENTO EN LOS HERO  */
        font-size: 2.2rem;
    }

    p.hero-texto{ /*  TEXTO DE ACOMPAÑAMIENTO EN LOS HERO  */
        max-width: 80rem;
        margin: 2rem auto;
    }
}



/* ====================================================================  BOTONES (sistema unificado)  ==================================================================== */

.boton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-radius: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blanco);
    text-decoration: none;
    background-color: var(--azul-marino);
    transition: all 0.3s ease-in-out;
}

.boton.boton_cta {
    background-color: var(--blanco);
    color: var(--azul-marino);
}

.btn-blanco {
    background-color: var(--blanco);
    color: var(--azul-marino);
    padding: 2rem 4rem;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

@media (min-width: 1024px) {
    .boton {
        padding: 1.5rem 4rem;
        width: auto;
        font-size: 1.8rem;
    }

    .boton:hover {
        transform: scale(1.03);
    }

}

/* ========================================================  WHATSAPP  ========================================================================== */

.icono-whatsapp {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1000;
}

.icono-whatsapp a {
    background-color: var(--whatsapp);
    padding: 1rem;
    display: flex;
    width: fit-content;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.icono-whatsapp a svg {
    width: 3rem;
    height: 3rem;
}

@media (min-width: 768px) {
    .icono-whatsapp a {
        padding: 1.5rem;
    }

    .icono-whatsapp a svg {
        width: 3.5rem;
        height: 3.5rem;
    }
}

@media (min-width: 1200px) {
    .icono-whatsapp {
        right: 4rem;
        bottom: 4rem;
    }

    .icono-whatsapp a:hover {
        transform: scale(1.1);
        box-shadow: 0px 0px 15px 1px var(--whatsapp);
    }

    .icono-whatsapp a svg {
        width: 4.5rem;
        height: 4.5rem;
    }
}

/* ========================================================  NAVEGACIÓN  ========================================================================== */

.header {
    background-color: var(--blanco);
    box-shadow: 0px 5px 8px -4px rgba(166, 166, 166, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

.barra {
    display: flex;
    justify-content: space-between;
    align-content: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    
}

.logo a {
    display: flex;
}

.logo img {
    width: 10rem;
    height: auto;
}

.contenedor-icono-burguer {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.navegacion {
    display: none;
}

.navegacion_enlace {
    color: var(--azul-marino);
    margin-top: 3rem;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    display: block;
}

.navegacion_enlace:hover {
    color: var(--rojo);
    text-decoration: underline;
}

.navegacion_enlace:last-child {
    text-align: center;
    color: var(--blanco);
    background-color: var(--rojo);
    border-radius: 1.5rem;
    padding: .5rem 2.5rem;
    border: 2px solid var(--rojo);
}

.navegacion_enlace:last-child:hover {
    background-color: var(--fondo-claro);
    color: var(--rojo);
}

.navegacion_enlace.activo, .navegacion_enlace.activo-btn {
    color: var(--rojo);
    text-decoration: underline;
}

.navegacion_enlace.activo-btn{
    background-color: var(--blanco);
}

@media (min-width: 768px) {
    .logo img{
        width: 13rem;
    }
}

@media (min-width: 1024px) {
    .barra {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        justify-content: center;
        align-items: center;
    }

    .logo img {
        width: 16rem;
    }

    .navegacion {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 3rem;
    }

    .navegacion a {
        margin-top: 0;
    } 

    .navegacion a:last-child {
        box-shadow: 0px 5px 20px -4px rgba(206, 14, 45, 0.4);
    } 

    .contenedor-icono-burguer, dialog {
        display: none;
    }
}

/* ========================================================  NAVEGACIÓN-MOBILE  ========================================================================== */

.overlay-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.overlay-menu.activo {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contenedor-menu-lateral{
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background-color: var(--fondo-claro);
    overflow-x: hidden;
    transition: width 0.3s ease;
}

.contenedor-menu-lateral .logo-btn{
    margin: 1rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
}

.contenedor-menu-lateral .logo-btn img{
    width: 9rem;
}

.logo-btn .btn-cerrar{
    min-height: 0;
    padding: 0;
    line-height: 0;
    margin: 0;
    font-size: 4rem;
    background-color: transparent;
    border:none;
    cursor: pointer;
}

.menu-lateral a{
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    text-decoration: none;
    color: var(--azul-marino);
    font-weight: 550;
    font-size: 1.5rem;
    display: block;
    transition: all 0.3s ease-in-out;
    font-family: var(--main-font);
}

.menu-lateral a.activo-phone{
    color: var(--rojo);
    text-decoration: underline;
}

@media (min-width: 1024px) {
    .contenedor-menu-lateral{
        display: none;
    }

    .overlay-menu.activo{
        display: none;
    }
}

/* =================================================================  CTA & FORMULARIO  ==================================================================== */

.hero-botones {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

.cta-formulario {
    background-color: var(--fondo-claro);
    padding: 10rem 0;
}

.cta-formulario-cta {
    box-shadow: 0px 15px 25px 0px rgba(206, 14, 45, 0.4);
    background-color: var(--rojo);
    border-radius: 3rem;
    padding: 5rem;
    text-align: center;
    margin-bottom: 15rem;
}

.cta-formulario-cta h2,
.cta-formulario-formulario h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--blanco);
    text-transform: initial;
    margin-bottom: 2rem;
}

.cta-formulario-cta p {
    color: var(--blanco);
    margin-bottom: 2.5rem;
}

.cta-formulario-cta .hero-botones .boton:last-child {
    background-color: var(--rojo);
    border: 2px var(--blanco) solid;
    color: var(--blanco);
}

@media (min-width: 1024px) {
    .cta-formulario-cta {
        padding: 5rem 15rem;
    }

    .cta-formulario-cta h2 {
        font-size: 5rem;
    }

    .cta-formulario-cta .hero-botones {
        justify-content: center;
    }

    .hero-botones {
        flex-direction: row;
    }
}

/* ============================================  CTA & FORMULARIO - FORMULARIO  ======================================= */

.cta-formulario-formulario{
    box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, .5);
    border-radius: 2rem;
    overflow: hidden;
}

.cta-formulario-formulario-info {
    background: linear-gradient(rgba(0, 31, 96, 0.6), rgba(0, 31, 96, 0.9)), url(../img/camion-carga.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /* border-radius: 2rem 2rem 0 0; */
    padding: 5rem;
    text-align: center;
}

.cta-formulario-formulario-info p {
    width: 80%;
    margin: 0 auto;
}

.cta-formulario-formulario-info,
.cta-formulario-formulario a {
    color: var(--blanco);
}

.cta-formulario-formulario a {
    text-decoration: underline;
}

.form {
    padding: 5rem;
    background-color: var(--blanco);
    border-radius: 0 0 2rem 2rem;
}

.form form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.grupo-formulario {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form form label {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: capitalize;
}

.grupo-formulario input,
.grupo-formulario textarea {
    border: 2.5px solid rgba(0, 31, 96, 0.2);
    border-radius: .5rem;
    padding: 1rem;
    font-size: 1.6rem;
}

.grupo-formulario input:focus,
.grupo-formulario textarea:focus {
    border: 2.5px solid rgba(0, 31, 96, 0.1);
    outline: 2.5px solid var(--rojo);
}

.form form input::placeholder,
.form form textarea::placeholder {
    color: #a9a9a9;
}

textarea {
    resize: vertical;
    height: 20rem;
    max-height: 30rem;
    min-height: 10rem;
}

.boton-enviar {
    background-color: var(--rojo);
    border: 2px solid var(--rojo);
    border-radius: 1.5rem;
    color: var(--blanco);
    font-weight: 700;
    font-size: 1.6rem;
    padding: 1.5rem 4rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

@media (min-width: 1024px) {
    .cta-formulario-formulario {
        display: flex;
        flex-direction: row;
        border-radius: 2rem 2rem 2rem 2rem;
    }

    .cta-formulario-formulario-info {
        flex: 1;
        border-radius: 2rem 0 0 2rem;
        text-align: left;
    }

    .cta-formulario-formulario-info p {
        width: 100%;
    }

    .form {
        flex: 2;
        border-radius: 0 2rem 2rem 0;
    }

    .cta-formulario-formulario div h2 {
        font-size: 3.5rem;
    }

    .boton-enviar {
        padding: 1.5rem 3rem;
        justify-self: left;
    }

    .boton-enviar:hover {
        background-color: var(--blanco);
        border: 2px solid var(--rojo);
        color: var(--rojo);
        box-shadow: 0px 5px 20px -4px rgba(206, 14, 45, 0.4);
    }
}

@media (min-width: 768px) {
    .form form {
        grid-template-columns: 1fr 1fr;
    }

    .campo-correo,
    .campo-mensaje,
    .boton-enviar {
        grid-column: 1 / span 2;
    }
}

#respuestaFormulario {
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 1.7rem;
    text-align: center;
}

.mensaje-exito {
    background-color: #16803c;
    color: var(--blanco);
    padding: 1.5rem;
}

.mensaje-error {
    border-radius: 1rem;
    background-color: var(--rojo);
    color: var(--blanco);
    padding: 1.5rem;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===========================================================  FOOTER  ================================================================== */

.footer {
    background-color: var(--azul-marino);
    color: var(--blanco);
    padding: 8rem 0 0 0;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    gap: 5rem;
    margin-bottom: 6rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

@media (min-width: 768px) {
    .footer {
        padding-top: 10rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6rem;
        margin-bottom: 8rem;
    }

    .footer-brand {
        align-items: flex-start;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-brand .logo-footer {
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--texto-footer);
    margin: 0 auto 3rem auto;
    max-width: 45rem;
}

@media (min-width: 768px) {
    .footer-brand p {
        margin: 0 0 3rem 0;
    }
}

.redes-footer {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .redes-footer {
        justify-content: flex-start;
    }
}

.red-link {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    transition: all 0.3s ease-in-out;
}

@media (min-width: 1024px) {
    .red-link:hover {
        background-color: var(--rojo);
        transform: translateY(-5px);
    }
}

.footer-titulo {
    font-family: var(--main-font);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-titulo {
        text-align: left;
        margin-bottom: 3rem;
    }
}

.footer-titulo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 3px;
    background-color: var(--rojo);
}

@media (min-width: 768px) {
    .footer-titulo::after {
        left: 0;
        transform: none;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-links {
        text-align: left;
    }
}

.footer-links li {
    margin-bottom: 1.8rem;
}

.footer-links a {
    color: var(--texto-footer);
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease-in-out;
}

@media (min-width: 1024px) {
    .footer-links a:hover {
        color: var(--blanco);
        padding-left: 0.5rem;
    }
}

.footer-contacto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-contacto-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        margin-bottom: 2.5rem;
    }
}

.contacto-icono {
    flex-shrink: 0;
}

.contacto-icono svg{
    fill: var(--blanco);
}

.contacto-info-txt h5 {
    margin: 0;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: var(--blanco);
    letter-spacing: 1px;
}

.contacto-info-txt p a {
    margin: 0;
    color: var(--texto-footer);
    font-size: 1.6rem;
    text-decoration: underline;
}

.legal-bar {
    background-color: var(--azul-oscuro);
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-contenido {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 1024px) {
    .legal-bar {
        padding: 3rem 0;
    }

    .legal-contenido {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.legal-contenido p {
    margin: 0;
    font-size: 1.5rem;
    color: var(--texto-footer);
}

.legal-links {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    font-size: 1.6rem;
    color: var(--texto-footer);
    transition: all 0.3s ease-in-out;
}

.legal-links a:hover {
    color: var(--rojo);
}
