/*
Theme Name: Calculadora
Description: Tema personalizado para sitio de calculadora
Author: Tu Nombre
Version: 1.0
*/

/* Reset bÃ¡sico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: rgb(0, 0, 0);
    background-color: #012213;
    background-image: url('assets/images/Image.png');
    background-repeat: repeat-x;
    min-height: 100vh;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

/* Estilos globales para placeholders - Color #7985B1 */
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #7985B1 !important;
    opacity: 1;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    letter-spacing: 0% !important;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
select::-webkit-input-placeholder {
    color: #7985B1 !important;
    opacity: 1;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    letter-spacing: 0% !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder,
select::-moz-placeholder {
    color: #7985B1 !important;
    opacity: 1;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    letter-spacing: 0% !important;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
select:-ms-input-placeholder {
    color: #7985B1 !important;
    opacity: 1;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    letter-spacing: 0% !important;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
/* Header base (desktop y móvil) */
.site-header {
    background: transparent;
    color: white;
    padding: 0rem 0 1rem 0; /* lo que ya tienes */
    text-align: center;
    width: 100%;
}

/* Ajuste para tablet */
@media (max-width: 1024px) {
    .site-header {
        padding-top: 10rem; /* menos que en desktop */
    }
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.site-logo {
    max-width: 100%;
    height: auto;
}

.site-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* TipografÃ­as - Montserrat para tÃ­tulos */
h1,
.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 52px;
    letter-spacing: -2%;
    margin-bottom: 0.75rem;
    /* Color por defecto */
}

/* Color dinÃ¡mico para tÃ­tulos de modales */
.main-title[style*="color"] {
    /* Permite que el color inline tenga prioridad */
    color: inherit;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -2%;
    margin-bottom: 0.75rem;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -2%;
    margin-bottom: 0.75rem;
}



h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: -2%;
    margin-bottom: 0.75rem;
}

h5 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400px;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -2%;
    margin-bottom: 0.75rem;
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.site-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}



/* Footer */
.site-footer {
    background: transparent;
    color: white;
    text-align: center;
    padding: 0.50rem 0 0 0;
}

/* Logotipo BID */
.bid-logo {
    height: 60px;
    width: auto;
    vertical-align: middle;
    margin-left: 10px;
}

/* Ajustes para el layout - Sticky Footer */
.site {
    display: flex;
    flex-direction: column;
    /*  min-height: 100vh; */
}

/* Contenedor principal que empuja el footer hacia abajo */
.site-main {
    flex: 1;
}



/* Div blanco centrado */
.centered-white-div {
    width: auto;
    margin: 0 149px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: visible;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    /*  min-height: 100vh; */
}

/* Modal container */
.modal-container {
    background-color: white;
    overflow: visible;
    padding: 27px 31px;
    /* top right bottom left */
    box-sizing: border-box;
    height: auto !important;
    /*  width: 100% !important; */
    min-width: 491px;
    max-width: 90vw;
    align-self: center;
    justify-self: center;
    border-radius: 24px;
    /* Estilos del contenido movidos aquÃ­ */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1001;
}



.display01 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 72px !important;
    line-height: 56px !important;
    letter-spacing: -2% !important;
    margin-bottom: 0.75rem;
}


/* PÃ¡rrafos - Open Sans */
p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -2%;
    margin-bottom: 0.75rem;
}




/* Inputs - Montserrat Body SM Bold */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #7985B1;

}

/* Labels y elementos de formulario */
label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 8px;
}


/* Estilos de personajes removidos */


/* Responsive */
@media (max-width: 1440px) {
    body {
        background-size: auto 100vh;
    }

    .centered-white-div {
        width: auto;
        max-width: calc(100% - 298px);
        overflow: visible;
        padding: 20px;
        margin: 0 149px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .modal-container {
        width: 100%;
        min-width: 491px;
        max-width: 90vw;
        padding: 20px 40px 20px 40px;
        /* Reduced proportionally for tablets */
        height: fit-content;
        align-self: center;
        justify-self: center;
        border-radius: 24px;
    }

    /* Layout responsivo para modales */
    .modal-container {
        min-height: auto !important;
        height: auto !important;
        padding: 0 !important;
    }

    /* Estilos de text-content removidos */

    .modal-container {
        padding: 27px 31px;
        flex-direction: row;
        gap: 30px;
        width: auto !important;
    }


    .main-title,
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.375rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    p {
        font-size: 15px;
    }

}

@media (max-width: 1024px) {
    body {
        background-size: auto 100vh;
    }

    .container {
        padding: 0 15px;
    }

    .site-header {
        padding: 1.5rem 0;
    }

    .site-title {
        font-size: 1.75rem;
    }

    .site-description {
        font-size: 0.95rem;
    }

    .site-logo img {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-footer {
        padding: 1rem 0;
    }

    .bid-logo {
        height: 60px;
    }

    body {
        background-size: auto 100vh;
    }

    .site-header {
        padding: 1rem 0;
    }

    .header-content {
        gap: 0.4rem;
    }

    .site-logo {
        max-width: 80%;
    }

    .site-logo img {
        max-width: 100%;
        max-height: 60px;
    }

    .site-description {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .centered-white-div {
        width: auto;
        max-width: calc(100% - 298px);
        border-radius: 24px;
        overflow: visible;
        padding: 15px;
        margin: 0 149px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .modal-container {
        width: 100%;
        min-width: 491px;
        padding: 20px 30px 20px 30px;
        /* Reduced proportionally for smaller tablets */
        height: fit-content;
        align-self: center;
        justify-self: center;
        border-radius: 24px;
    }

    .modal-container {
        padding: 27px 31px;
        flex-direction: row;
        gap: 25px;
        width: auto !important;
    }

    .main-title,
    h1 {
        font-size: 1.8rem;
        line-height: 40px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1rem;
    }

    p {
        font-size: 14px;
    }

}

@media (max-width: 480px) {
    body {
        background-size: auto 100vh;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .site-description {
        font-size: 0.9rem;
    }

    .site-header {
        padding: 0.75rem 0;
    }

    .header-content {
        gap: 0.3rem;
        padding: 0 5px;
    }

    .site-logo {
        max-width: 70%;
    }

    .site-logo img {
        max-width: 100%;
        max-height: 50px;
    }

    .site-description {
        font-size: 0.85rem;
        padding: 0 5px;
        line-height: 1.4;
    }

    .site-footer {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .bid-logo {
        height: 60px;
    }

    /* Estilos de personajes removidos */

    /* Layout mÃ³vil para modales */
    .modal-container {
        min-height: auto !important;
        height: auto !important;
        padding: 0 !important;
    }

    /* Estilos de text-content removidos */

    .centered-white-div {
        width: auto;
        max-width: calc(100% - 298px);
        border-radius: 24px;
        overflow: visible;
        padding: 10px;
        margin: 0 149px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .modal-container {
        width: 100%;
        min-width: 491px;
        padding: 15px 20px 15px 20px;
        /* Reduced proportionally for mobile */
        height: fit-content;
        align-self: center;
        justify-self: center;
        border-radius: 24px;
    }

    .modal-container {
        padding: 0;
        flex-direction: row;
        gap: 20px;
        width: auto !important;
    }

    .main-title,
    h1 {
        font-size: 1.5rem;
        line-height: 40px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    h4 {
        font-size: 1rem;
    }

    p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* Estilos de main-content p removidos */


    /* Inputs en mÃ³viles */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    textarea,
    select {
        font-size: 14px;
    }

    /* Estilos de personajes removidos */
}

@media (max-width: 1024px) {
    .site-header {
        position: relative; /* evita que el JS del formulario lo mueva */
        top: 0;
        width: 100%;
        padding-top: 6rem; /* ajusta según se vea */
        z-index: 1000; /* por si hay overlays del formulario */
    }
}

@media (max-width: 1024px) {
    .multi-step-form-container,
    .wp-block-columns.is-layout-flex {
        display: block !important; /* evita centrado vertical */
        align-items: normal !important;
        justify-content: normal !important;
    }
}

@media (max-width: 1024px) {
    .wp-block-column.contenido {
        overflow: visible !important;
    }
}
jQuery(document).on('stepChanged', function() {
    jQuery('.site-header').css({
        'padding-top': '6rem',
        'position': 'relative'
    });
});


@media (max-width: 1024px) { /* tablet */
    .site-header {
        position: relative !important;
        padding-top: 4rem !important; /* ajusta según el tamaño del logo */
        padding-bottom: 1rem !important;
        height: auto !important; /* evita recorte */
        min-height: 120px; /* asegura que el logo quepa */
        overflow: visible !important;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .wp-block-columns.is-layout-flex,
    .multi-step-form-container,
    .wp-block-column.contenido {
        display: block !important; /* no más centrado vertical */
        align-items: normal !important;
        justify-content: normal !important;
        overflow: visible !important;
    }
}

@media (max-width: 1024px) { /* tablet */
    .site-header {
        position: relative !important;
        padding-top: 4rem !important; /* ajusta según el tamaño del logo */
        padding-bottom: 1rem !important;
        height: auto !important; /* evita recorte */
        min-height: 120px; /* asegura que el logo quepa */
        overflow: visible !important;
        text-align: center;
    }
}
