/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #1d1e23;
    color: white;
}


/* =====================================================
   CONTENEDOR
===================================================== */

.container {
    width: min(1180px, 92%);
    margin: auto;
}


/* =====================================================
   CONTACTO
===================================================== */

.contacto {

    position: relative;

    min-height: 100vh;

    padding: 100px 0;

    background:
        linear-gradient(
            rgba(20, 21, 25, 0.94),
            rgba(20, 21, 25, 0.96)
        ),
        url("img/fondoritransport.png");

    background-size: cover;
    background-position: center;

    overflow: hidden;
}


/* =====================================================
   BRILLOS DECORATIVOS
===================================================== */

.contacto::before {

    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    top: -180px;
    right: -150px;

    border-radius: 50%;

    background: rgba(215, 188, 109, 0.07);

    filter: blur(20px);
}


.contacto::after {

    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    bottom: -150px;
    left: -120px;

    border-radius: 50%;

    background: rgba(215, 188, 109, 0.05);

    filter: blur(20px);
}


/* =====================================================
   HEADER
===================================================== */

.contacto-header {

    position: relative;

    z-index: 2;

    max-width: 800px;

    margin: 0 auto 60px;

    text-align: center;
}


.contacto-subtitulo {

    display: inline-block;

    margin-bottom: 12px;

    color: #d7bc6d;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 4px;

    text-transform: uppercase;
}


.contacto-header h1 {

    font-size: clamp(36px, 5vw, 58px);

    line-height: 1.1;

    font-weight: 700;

    margin-bottom: 20px;
}


.contacto-header h1 span {

    color: #d7bc6d;
}


.contacto-header hr {

    width: 70px;

    height: 2px;

    border: none;

    margin: 0 auto 25px;

    background: #d7bc6d;
}


.contacto-header p {

    color: #c7c7c7;

    font-size: 16px;

    line-height: 1.8;
}


/* =====================================================
   GRID
===================================================== */

.contacto-grid {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 35px;

    align-items: stretch;
}


/* =====================================================
   INFORMACIÓN
===================================================== */

.contacto-info {

    overflow: hidden;

    border: 1px solid rgba(215, 188, 109, 0.25);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.06),
            rgba(255,255,255,0.015)
        );

    box-shadow:
        0 20px 50px rgba(0,0,0,0.35);

    backdrop-filter: blur(12px);

    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}


.contacto-info:hover {

    transform: translateY(-6px);

    border-color: rgba(215, 188, 109, 0.65);
}


/* =====================================================
   IMAGEN
===================================================== */

.info-imagen {

    height: 250px;

    overflow: hidden;

    background: #15161a;
}


.info-imagen img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    transition: transform 0.6s ease;
}


.contacto-info:hover .info-imagen img {

    transform: scale(1.05);
}


/* =====================================================
   CONTENIDO INFO
===================================================== */

.info-contenido {

    padding: 35px;
}


.info-etiqueta {

    color: #d7bc6d;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 3px;
}


.info-contenido h2 {

    margin: 12px 0 15px;

    font-size: 30px;

    line-height: 1.2;
}


.info-contenido > p {

    color: #bdbdbd;

    line-height: 1.7;

    margin-bottom: 25px;
}


/* =====================================================
   DATOS CONTACTO
===================================================== */

.dato-contacto {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px 0;

    border-top: 1px solid rgba(255,255,255,0.08);

    color: white;

    text-decoration: none;
}


.dato-icono {

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(215,188,109,0.4);

    border-radius: 50%;

    background: rgba(215,188,109,0.08);

    font-size: 18px;
}


.dato-contacto small {

    display: block;

    margin-bottom: 4px;

    color: #999;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.dato-contacto strong {

    display: block;

    color: #f1f1f1;

    font-size: 14px;

    word-break: break-word;
}


a.dato-contacto:hover strong {

    color: #d7bc6d;
}


/* =====================================================
   BOTÓN WHATSAPP DIRECTO
===================================================== */

.btn-whatsapp-directo {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;

    margin-top: 25px;

    padding: 15px 20px;

    border: 1px solid #d7bc6d;

    border-radius: 10px;

    background: #d7bc6d;

    color: #1d1e23;

    font-weight: bold;

    text-decoration: none;

    transition: all 0.3s ease;
}


.btn-whatsapp-directo:hover {

    background: transparent;

    color: #d7bc6d;

    transform: translateY(-2px);
}


/* =====================================================
   FORMULARIO
===================================================== */

.contacto-formulario {

    padding: 40px;

    border: 1px solid rgba(215, 188, 109, 0.25);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.015)
        );

    box-shadow:
        0 20px 50px rgba(0,0,0,0.35);

    backdrop-filter: blur(12px);
}


.form-header {

    margin-bottom: 30px;
}


.form-header span {

    color: #d7bc6d;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 3px;
}


.form-header h2 {

    margin-top: 10px;

    font-size: 30px;
}


/* =====================================================
   FORM GRID
===================================================== */

#formContacto {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


.campo {

    display: flex;

    flex-direction: column;

    gap: 8px;
}


.campo-completo {

    grid-column: 1 / -1;
}


.campo label {

    color: #ddd;

    font-size: 13px;

    font-weight: 600;
}


.campo input,
.campo select,
.campo textarea {

    width: 100%;

    padding: 14px 15px;

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 9px;

    outline: none;

    background: rgba(0,0,0,0.25);

    color: white;

    font-family: inherit;

    font-size: 14px;

    transition: all 0.3s ease;
}


.campo input::placeholder,
.campo textarea::placeholder {

    color: #777;
}


.campo select option {

    background: #1d1e23;

    color: white;
}


.campo input:focus,
.campo select:focus,
.campo textarea:focus {

    border-color: #d7bc6d;

    box-shadow:
        0 0 0 3px rgba(215,188,109,0.08);
}


.campo textarea {

    resize: vertical;

    min-height: 130px;
}


/* =====================================================
   BOTÓN ENVIAR
===================================================== */

.btn-enviar {

    grid-column: 1 / -1;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;

    margin-top: 5px;

    padding: 16px 20px;

    border: 1px solid #d7bc6d;

    border-radius: 10px;

    background: #d7bc6d;

    color: #1d1e23;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition: all 0.3s ease;
}


.btn-enviar:hover {

    background: transparent;

    color: #d7bc6d;

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(215,188,109,0.12);
}


.form-ayuda {

    grid-column: 1 / -1;

    text-align: center;

    color: #777;

    font-size: 11px;

    line-height: 1.5;
}


/* =====================================================
   REDES
===================================================== */

.contacto-redes {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 25px;

    margin-top: 55px;

    color: #999;

    font-size: 13px;
}


.redes-contacto {

    display: flex;

    gap: 12px;
}


.redes-contacto a {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(215,188,109,0.35);

    border-radius: 50%;

    background: rgba(255,255,255,0.03);

    transition: all 0.3s ease;
}


.redes-contacto img {

    width: 20px;
    height: 20px;

    filter: brightness(0) invert(1);

    transition: all 0.3s ease;
}


.redes-contacto a:hover {

    border-color: #d7bc6d;

    background: rgba(215,188,109,0.1);

    transform: translateY(-4px);
}


.redes-contacto a:hover img {

    filter:
        brightness(0)
        saturate(100%)
        invert(80%)
        sepia(20%)
        saturate(700%)
        hue-rotate(5deg)
        brightness(90%);
}


/* =====================================================
   ANIMACIONES
===================================================== */

.animar {

    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


.animar.mostrar {

    opacity: 1;

    transform: translateY(0);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .contacto {

        padding: 80px 0;

    }

    .contacto-grid {

        grid-template-columns: 1fr;

    }

    .contacto-info {

        max-width: 700px;

        width: 100%;

        margin: auto;

    }

    .contacto-formulario {

        max-width: 700px;

        width: 100%;

        margin: auto;

    }

}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 600px) {

    .contacto {

        padding: 60px 0;

    }


    .contacto-header {

        margin-bottom: 40px;

    }


    .contacto-header h1 {

        font-size: 36px;

    }


    .contacto-header p {

        font-size: 14px;

    }


    .info-imagen {

        height: 200px;

    }


    .info-contenido {

        padding: 25px;

    }


    .info-contenido h2 {

        font-size: 25px;

    }


    .contacto-formulario {

        padding: 25px 20px;

    }


    .form-header h2 {

        font-size: 25px;

    }


    #formContacto {

        grid-template-columns: 1fr;

    }


    .campo-completo,
    .btn-enviar,
    .form-ayuda {

        grid-column: auto;

    }


    .contacto-redes {

        flex-direction: column;

        gap: 15px;

        margin-top: 40px;

    }

}


/* =====================================================
   MÓVILES PEQUEÑOS
===================================================== */

@media (max-width: 380px) {

    .contacto-header h1 {

        font-size: 31px;

    }


    .info-contenido {

        padding: 20px;

    }


    .contacto-formulario {

        padding: 20px 15px;

    }

}