/* ========================================
   CONTACTO - CONTENEDOR PRINCIPAL
======================================== */

.contacto {
    padding: 0 0 80px;
    background-color: #FFFFFF;
}

.contacto-panel {
    padding: 140px 24px 120px;
    background-color: #6d8a86;
    background-image: url("/static/img/Contacto/contacto_portada.7f133adb5402.jpg");
    background-size: cover;
    background-position: center center;
}

.contacto-contenedor {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: transparent;
}


/* ========================================
   INFORMACIÓN DE CONTACTO
======================================== */

.contacto-informacion {
    min-width: 0;
     width: 100%;
    overflow: visible;
}


.contacto-titulo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 55px;
    font-weight: 300;
    line-height: 1.05;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.contacto-titulo-marca {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.22em;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    color: #FFFFFF;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 56px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.05;
    letter-spacing: -2.5px;
}

.contacto-titulo-marca span {
    padding: 0 0.4em;
    background: linear-gradient(
        to bottom,
        transparent 15%,
        var(--verde-medio) 10%,
        var(--verde-medio) 90%,
        transparent 85%
    );
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.contacto-descripcion {
    max-width: 460px;
    margin: 22px 0 0;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.45;
    color: #FFFFFF;
    text-align: justify;
}

.contacto-datos {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.contacto-dato {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.contacto-icono {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.contacto-dato a,
.contacto-dato p {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.35;
    color: #FFFFFF;
    text-decoration: none;
}

.contacto-dato a {
    overflow-wrap: anywhere;
}

.contacto-reloj {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 22px;
    flex-shrink: 0;
    color: #036635;
    font-size: 25px;
}


/* ========================================
   MAPA
======================================== */

.contacto-mapa {
    position: relative;
    z-index: 2;
    width: min(1040px, calc(100% - 48px));
    height: 280px;
    margin: -70px auto 0;
    overflow: hidden;
    border: none;
    border-radius: 12px;
    background-color: #EAEAEA;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
}

.contacto-mapa iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.contacto-mapa-enlace {
    position: absolute;
    left: 48%;
    bottom: 12px;
    padding: 8px 10px;
    border: none;
    margin-left: 40px;
    background-color: transparent;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    color: #000000;
    transform: translateY(-20px);
}


/* ========================================
   FORMULARIO
======================================== */

.contacto-formulario-contenedor {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: clamp(12px, 2.5vw, 28px);
    padding: 36px clamp(40px, 4.5vw, 52px) 34px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%,
            rgba(255, 255, 255, 0.55) 0%,
            transparent 45%),
        radial-gradient(circle at 0% 100%,
            rgba(255, 255, 255, 0.4) 0%,
            transparent 45%),
        rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.contacto-formulario {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
    align-content: start;
}

.contacto-formulario-fila {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
}

@media (max-width: 640px) {
    .contacto-formulario-fila {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

.contacto-campo {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contacto-campo-completo {
    grid-column: 1 / -1;
}

.contacto-campo label {
    margin-bottom: 8px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #363535;
}

.contacto-campo input,
.contacto-campo textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(3, 102, 53, 0.14);
    border-radius: 16px;
    background-color: #FFFFFF;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    outline: none;
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.contacto-campo input:not([type="file"]) {
    height: 48px;
    padding: 0 16px;
}

.contacto-campo input[type="file"].contacto-archivo {
    height: auto;
    min-height: 48px;
    padding: 10px 16px;
    color: #000000;
    cursor: pointer;
}

.contacto-campo input[type="file"].contacto-archivo::file-selector-button,
.contacto-campo input[type="file"].contacto-archivo::-webkit-file-upload-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background-color: #75738C;
    color: #ffffff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.contacto-campo input[type="file"].contacto-archivo::file-selector-button:hover,
.contacto-campo input[type="file"].contacto-archivo::-webkit-file-upload-button:hover {
    background-color: #636178;
}

.contacto-campo-ayuda {
    margin: 8px 0 0;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    color: #75738C;
}

.contacto-campo textarea {
    min-height: 96px;
    height: 96px;
    padding: 12px 16px;
    resize: vertical;
}


.contacto-campo input::placeholder,
.contacto-campo textarea::placeholder {
    color: #A2A9B0;
    opacity: 1;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.contacto-campo input:focus,
.contacto-campo textarea:focus,
.contacto-campo input[type="file"].contacto-archivo:focus {
    border-color: var(--verde-claro);
    box-shadow: 0 0 0 3px rgba(184, 234, 96, 0.45);
}

.contacto-consent {
    margin-top: 4px;
}

.contacto-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: #363535;
    font-size: 16px;
    line-height: 1.45;
}

.contacto-consent-label input[type="checkbox"] {
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid rgba(3, 102, 53, 0.45);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contacto-consent-label input[type="checkbox"]:focus-visible {
    outline: none;
    border-color: var(--verde-oscuro);
    box-shadow: 0 0 0 3px rgba(3, 102, 53, 0.18);
}

.contacto-consent-label input[type="checkbox"]:checked {
    border-color: var(--verde-oscuro);
    background: transparent;
}

.contacto-consent-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--verde-oscuro);
    border-bottom: 2px solid var(--verde-oscuro);
    transform: translate(-50%, -50%) rotate(45deg);
}

.contacto-consent-text {
    flex: 1;
    min-width: 0;
}

.contacto-privacy-link {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: var(--verde-oscuro);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.contacto-privacy-link:hover {
    color: #024d28;
}

.contacto-formulario-acciones {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 18px;
}


/* ========================================
   BOTONES BEETMANN
======================================== */

.contacto-boton {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
                
}


.contacto-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.contacto-boton:focus-visible {
    outline: 3px solid #90BF3E;
    outline-offset: 3px;
}

.contacto-boton-verde {
    background-color: #036635;
    border-color: #036635;
    color: #FFFFFF;
}

.contacto-boton-verde:hover {
    background-color: #024D28;
    border-color: #024D28;
    color: #FFFFFF;
}

.contacto-flecha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.16);
    transition: transform 0.3s ease;
}

.contacto-flecha svg {
    display: block;
    width: 18px;
    height: 18px;
}

.contacto-boton:hover .contacto-flecha {
    transform: translateX(3px);
}

.contacto-boton-cotizar {
    position: absolute;
    right: -90px;
    bottom: 20px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 260px;
    min-height: 76px;
    padding: 14px 20px 14px 26px;

    border: none;
    border-radius: 12px;
    background-color: #036635;
    color: #FFFFFF;
    text-align: left;
}
.contacto-boton-enviar {
    width: 150px;
    min-height: 44px;
    padding-left: 32px;
}

.contacto-mensaje-estado {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #036635;
}




/* =========================================================
   RESPONSIVE — CONTACTO
   ========================================================= */

.contacto-titulo,
.contacto-titulo-marca,
.contacto-descripcion,
.contacto-dato a,
.contacto-dato p {
    overflow-wrap: break-word;
}

@media (max-width: 1100px) {
    .contacto-panel {
        padding: 120px 20px 96px;
    }

    .contacto-contenedor {
        gap: 40px;
        max-width: 960px;
    }

    .contacto-titulo {
        font-size: clamp(42px, 5vw, 52px);
    }

    .contacto-titulo-marca {
        font-size: clamp(42px, 5.2vw, 50px);
        letter-spacing: -1.5px;
    }

    .contacto-descripcion {
        max-width: 100%;
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    .contacto-contenedor {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        align-items: stretch;
    }

    .contacto-informacion {
        max-width: 640px;
    }

    .contacto-formulario-contenedor {
        width: 100%;
        max-width: min(600px, 100%);
        margin-inline: auto;
        margin-right: 0;
    }

    .contacto-mapa {
        width: min(960px, calc(100% - 40px));
        height: clamp(220px, 38vw, 280px);
        margin-top: -48px;
    }
}

@media (max-width: 768px) {
    .contacto {
        padding-bottom: 56px;
    }

    .contacto-panel {
        padding: 108px 18px 72px;
        background-position: center;
    }

    .contacto-titulo {
        font-size: clamp(34px, 6vw, 44px);
        letter-spacing: 0;
    }

    .contacto-titulo-marca {
        font-size: clamp(34px, 6.2vw, 44px);
        letter-spacing: -1px;
    }

    .contacto-descripcion {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.55;
    }

    .contacto-datos {
        gap: 18px;
        margin-top: 26px;
    }

    .contacto-dato a,
    .contacto-dato p {
        font-size: 16px;
    }

    .contacto-formulario-contenedor {
        padding: 28px clamp(22px, 6vw, 32px) 26px;
        border-radius: 20px;
        margin-right: 0;
    }

    .contacto-formulario {
        row-gap: 14px;
    }

    .contacto-mapa {
        width: calc(100% - 32px);
        margin-top: -40px;
        border-radius: 10px;
    }
}

@media (max-width: 600px) {
    .contacto-panel {
        padding: 96px 16px 56px;
    }

    .contacto-contenedor {
        gap: 28px;
    }

    .contacto-formulario {
        grid-template-columns: minmax(0, 1fr);
    }

    .contacto-campo label {
        font-size: 15px;
    }

    .contacto-campo input,
    .contacto-campo textarea {
        font-size: 16px;
    }

    .contacto-boton-enviar {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding-left: 16px;
    }

    .contacto-formulario-acciones {
        align-items: stretch;
        width: 100%;
    }

    .contacto-mapa {
        width: calc(100% - 24px);
        height: 220px;
        margin-top: -32px;
    }
}

@media (max-width: 380px) {
    .contacto-panel {
        padding: 88px 14px 48px;
    }

    .contacto-titulo-marca span {
        padding: 0 0.28em;
    }

    .contacto-descripcion {
        font-size: 15px;
    }

    .contacto-formulario-contenedor {
        padding: 26px 20px 22px;
    }

    .contacto-mapa {
        width: calc(100% - 20px);
        height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contacto-boton,
    .contacto-flecha {
        transition: none;
    }

    .contacto-boton:hover {
        transform: none;
    }
}
