.ocm input[type=submit],
/*footer {
    background-color: #333;
    color: #fff
}*/

.ocm {
    font-family: Arial, Helvetica, sans-serif
}

.ocm-chat-form {
    position: relative;
    display: inline-block
}

.ocm-chat-form-popup,
.ocm-iframe {
    display: none;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2)
}
.hero-overlay {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 🔑 izquierda */
    padding-left: 60px;          /* separación */
}


.ocm-chat-form-popup {
    position: relative;   /* 🔑 deja de flotar */
    width: 100%;
    max-width: 420px;
    /*margin: 40px 0 40px 60px; /* 🔑 izquierda */

    margin-left: 0px;
/*    margin: 40px auto;    /* centra el formulario */
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

/*
.ocm-chat-form-popup {
    position: fixed;
    top: 6.5rem;
    left: 2.5rem;
    width: 350px;

    max-height: calc(100vh - 8rem); /* clave * /
    overflow-y: auto;               /* scroll interno * /

    z-index: 9;
    background-color: #fff;
    border-radius: 5px;
}
    */
/*
.ocm-chat-form-popup {
    z-index: 9;
    background-color: #fff;
    border-radius: 5px;
    /*padding: 10px;* /
    min-width: 200px;
    position: fixed;
    top: 6.5rem;
    left: 2.5rem;
    width: 350px;
    overflow: visible;
}
*/
.ocm input,
.ocm textarea {
    box-sizing: border-box;
    width: 100%;
    resize: vertical
}

.ocm input[type=email],
.ocm input[type=number],
.ocm input[type=tel],
.ocm input[type=text],
.ocm textarea {
    width: 100%;
    /*padding: 10px;*/
    padding: 6px 8px;
    /*margin-bottom: 15px;*/
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;

    font-size: 0,9rem;
}

.ocm input[type=submit] {
    cursor: pointer
}

/*footer {
    text-align: center;
    padding: 10px 0
}*/

.ocm-chat-icon-opener {
    position: fixed;
    
    bottom: 2.5rem;
    left: 2.5rem;
    background-color: red;
    /*background-color: #3c8c84d8;*/
    padding: 1rem;
    color: #f2f1f2;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 1rem;
    border: none
}

.ocm-chat-icon-opener:hover {
    transition: .3s;
    background-color: rgba(255, 0, 0, 0.677); /*#345f6cd8;*/
}

.ocm-sub-popup {
    position: relative
}
/*
.ocm-sub-popup form {
    margin-top: 1rem
}

/*.ocm-close-button {
    border: none;
    font-size: 1.5rem;
    background: 0 0;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: -1.5rem
}*/

.ocm-close-button {
    position: absolute;
    top: -40px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    z-index: 10;
}


#ocm-iframeContainer .ocm-close-button-resize {
    position: absolute;
    width: .7rem;
    height: .7rem;
    z-index: 9999;
    bottom: 1rem;
    left: .4rem;
    color: #fff;
    cursor: pointer
}

.ocm-iframe-div-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotate(180deg);
    z-index: 9998
}

.imagen-prueba {
    width: 500px;
    height: 500px
}

.ocm-resize-button {
    position: absolute;
    width: .7rem;
    height: .7rem;
    z-index: 9999;
    border: 3px solid #e5ffce;
    border-top: none;
    border-left: none;
    bottom: .05rem;
    right: .05rem
}

.ocm-iframe {
    animation: .1s open-iframe;
    position: fixed;
    top: 6.5rem;
    left: 2.5rem;/*
    bottom: 2.5rem;
    right: 2.5rem;*/
    background-color: #000000be;
    padding: 1rem;
    width: 25.5vw;
    height: 70vh;
    border: none;
    border-radius: 1rem 1rem 0;
    overflow: hidden;
    resize: both;
    transform: rotate(180deg);
    min-width: 207px;
    min-height: 238px
}

.ocm-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem
}

.ocm-button-container {
    display: grid
}

.ocm-fade-in {
    animation: ease-in-out .3 open-popup
}

@keyframes open-popup {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@keyframes open-iframe {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

.ocm-button-primary {
    color: #ffffff;                 /* texto blanco */
    background: #e30613;             /* rojo UniLibre */
    padding: .6rem 1rem;
    border: 0;
    font-weight: 700;
    border-radius: .7rem;
    cursor: pointer;
    transition: background .3s, transform .1s, box-shadow .3s;
}

.ocm-button-primary:hover {
    background: #b8050f;             /* rojo más oscuro */
    color: #ffffff;
    box-shadow: 0 0 6px rgba(227, 6, 19, 0.6);
}

.ocm-button-primary:active {
    transform: scale(.97);
    background: #9f040d;
    color: #ffffff;
}
/*
.ocm-button-primary {
    color: #ffa91f;
    background-image: linear-gradient(to right, #3c8c84, #445c84);
    padding: .475rem .85rem;
    border: 0;
    font-weight: 700;
    border-radius: .7rem;
    cursor: pointer;
    transition: .3s
}

.ocm-button-primary:active {
    transform: scale(.98);
    color: #374c6c;
    background: #ffa91f
}

.ocm-button-primary:hover {
    color: #374c6c;
    background: #ffa91f;
    box-shadow: 0 0 5px .2px #ffa91f
}
*/
@media (max-width:576px) {
    .ocm-iframe {
        width: 80%;
        height: 80%;
        bottom: 10%;
        right: 10%
    }

    .ocm-chat-form-popup {
        position: fixed;
        bottom: 10%;
        right: 10%;
        width: 80%;
        box-sizing: border-box
    }
}

@media (min-width:577px) and (max-width:992px) {
    .ocm-iframe {
        width: 80%;
        height: 80%;
        bottom: 10%;
        right: 10%
    }
}

#error-container {
    background-color: rgba(150, 0, 0, .078);
    border: 1px solid rgba(255, 0, 0, .709);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem
}

#error-container div {
    padding: .5rem 0
}






































































