
/* =========================================================
   ALCCOIRIS - PAGINA CONTACTO
   WordPress: pagina ID 22
   ========================================================= */


/* =========================================================
   1. CONTENEDOR Y ESPACIADO GENERAL
   ========================================================= */

body.page-id-22 #primary .entry-content-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* =========================================================
   2. TITULO PRINCIPAL
   ========================================================= */

body.page-id-22 .alccoiris-titulo-seccion {
    position: relative;

    margin-top: 0 !important;
    margin-bottom: 28px !important;
    padding-bottom: 17px;

    color: #29357A !important;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
}

body.page-id-22 .alccoiris-titulo-seccion::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;

    width: 60px;
    height: 3px;

    background: #A64A97;
    border-radius: 3px;
}


/* =========================================================
   3. COLUMNAS DE CONTACTO
   ========================================================= */

body.page-id-22 .entry-content .wp-block-columns {
    gap: 48px;
    align-items: flex-start;
}


/* =========================================================
   4. FORMULARIO - ESTRUCTURA
   ========================================================= */

body.page-id-22 .alccoiris-formulario-contacto {
    width: 100%;
}

body.page-id-22 .alccoiris-formulario-fila {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
    margin-bottom: 18px;
}

body.page-id-22 .alccoiris-formulario-campo {
    min-width: 0;
}

/* Eliminar margenes automaticos de Contact Form 7 */
body.page-id-22 .alccoiris-formulario-campo p {
    margin: 0 !important;
}

/* Separacion de campos independientes */
body.page-id-22 .alccoiris-formulario-contacto
> .alccoiris-formulario-campo {
    margin-bottom: 18px;
}

/* Contenedor de cada campo */
body.page-id-22 .alccoiris-formulario-campo
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}


/* =========================================================
   5. FORMULARIO - CAMPOS
   ========================================================= */

body.page-id-22 .alccoiris-formulario-campo input,
body.page-id-22 .alccoiris-formulario-campo textarea {
    display: block;

    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;

    padding: 14px 16px;

    color: #29357A;
    background: #FFFFFF;

    border: 1px solid #D8DBEA;
    border-radius: 8px;

    font-size: 15px;
    line-height: 1.5;
}

/* Textos interiores */
body.page-id-22 .alccoiris-formulario-campo input::placeholder,
body.page-id-22 .alccoiris-formulario-campo textarea::placeholder {
    color: #7382A5;
    opacity: 1;
}

/* Campo mensaje */
body.page-id-22 .alccoiris-formulario-campo textarea {
    min-height: 170px;
    height: 170px;
    resize: vertical;
}

/* Campos seleccionados */
body.page-id-22 .alccoiris-formulario-campo input:focus,
body.page-id-22 .alccoiris-formulario-campo textarea:focus {
    border-color: #7D83C9;
    outline: 2px solid rgba(125, 131, 201, 0.20);
    outline-offset: 1px;
}


/* =========================================================
   6. FORMULARIO - PRIVACIDAD
   ========================================================= */

body.page-id-22 .alccoiris-formulario-privacidad {
    margin: 10px 0 20px;

    font-size: 14px;
    line-height: 1.6;
}

body.page-id-22 .alccoiris-formulario-privacidad p {
    margin: 0 !important;
}

body.page-id-22 .alccoiris-formulario-privacidad a {
    color: #5964B5;
    text-decoration: underline;
}


/* =========================================================
   7. FORMULARIO - BOTON ENVIAR
   ========================================================= */

body.page-id-22 .alccoiris-formulario-enviar p {
    margin: 0 !important;
}

body.page-id-22 .alccoiris-formulario-enviar input[type="submit"] {
    padding: 13px 28px;

    border: 1px solid #7D83C9;
    border-radius: 7px;

    background: #7D83C9;
    color: #FFFFFF;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    transition: background 0.2s ease;
}

body.page-id-22 .alccoiris-formulario-enviar
input[type="submit"]:hover:not(:disabled) {
    background: #666DB7;
}

body.page-id-22 .alccoiris-formulario-enviar
input[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}


/* =========================================================
   8. INFORMACION DE CONTACTO
   ========================================================= */

body.page-id-22 .wp-block-columns
> .wp-block-column:last-child h2 {
    margin-top: 0 !important;
    margin-bottom: 20px;

    color: #29357A;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

body.page-id-22 .wp-block-columns
> .wp-block-column:last-child p {
    line-height: 1.7;
}

body.page-id-22 .wp-block-columns
> .wp-block-column:last-child a {
    color: #5964B5;
}


/* =========================================================
   9. ICONOS Y DATOS DE CONTACTO
   ========================================================= */

body.page-id-22 .alccoiris-contacto-dato {
    display: flex;
    align-items: flex-start;

    gap: 14px;
    margin-bottom: 24px;
}

/* Circulo del icono */
body.page-id-22 .alccoiris-contacto-icono {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    background: #F0F1FA;
    border-radius: 50%;
}

/* SVG */
body.page-id-22 .alccoiris-contacto-icono svg {
    width: 22px;
    height: 22px;
}

/* Texto */
body.page-id-22 .alccoiris-contacto-dato > p {
    flex: 1;
    min-width: 0;

    margin: 0 !important;
    line-height: 1.6;
}

/* Bloque HTML */
body.page-id-22 .alccoiris-contacto-dato
> .wp-block-html {
    margin: 0 !important;
}


/* =========================================================
   10. MAPA Y SEPARACION INFERIOR
   ========================================================= */

body.page-id-22 .alccoiris-contacto-mapa {
    width: 100%;

    margin: 32px 0 40px;

    border-radius: 12px;
    overflow: hidden;
}

body.page-id-22 .alccoiris-contacto-mapa iframe {
    display: block;

    width: 100%;
    height: 320px;

    border: 0;
}


/* =========================================================
   11. ADAPTACION A MOVILES
   ========================================================= */

@media (max-width: 767px) {

    /* Espaciado superior */
    body.page-id-22 #primary .entry-content-wrap {
        padding-top: 24px !important;
    }

    /* Titulo principal */
    body.page-id-22 .alccoiris-titulo-seccion {
        font-size: 30px;
        margin-bottom: 25px !important;
    }

    /* Columnas principales */
    body.page-id-22 .entry-content .wp-block-columns {
        gap: 35px;
    }

    /* Formulario: una columna */
    body.page-id-22 .alccoiris-formulario-fila {
        grid-template-columns: 1fr;

        gap: 12px;
        margin-bottom: 12px;
    }

    /* Eliminar margenes heredados de los parrafos */
    body.page-id-22 .alccoiris-formulario-campo p {
        margin: 0 !important;
    }

    /* Campos sin separaciones adicionales */
    body.page-id-22 .alccoiris-formulario-campo {
        margin: 0;
    }

    /* Campo de mensaje */
    body.page-id-22 .alccoiris-formulario-campo textarea {
        min-height: 150px;
        height: 150px;
    }

    /* Separacion del campo mensaje respecto a los anteriores */
    body.page-id-22 .alccoiris-formulario-contacto
    > .alccoiris-formulario-campo {
        margin-bottom: 12px;
    }

    /* Privacidad */
    body.page-id-22 .alccoiris-formulario-privacidad {
        margin-top: 10px;
        margin-bottom: 16px;
    }

    /* Titulo informacion */
    body.page-id-22 .wp-block-columns
    > .wp-block-column:last-child h2 {
        font-size: 22px;
    }

    /* Iconos */
    body.page-id-22 .alccoiris-contacto-dato {
        gap: 12px;
        margin-bottom: 22px;
    }

    /* Mapa */
    body.page-id-22 .alccoiris-contacto-mapa {
        margin-top: 28px;
        margin-bottom: 32px;
    }

    body.page-id-22 .alccoiris-contacto-mapa iframe {
        height: 280px;
    }
}
