.elementor-5062 .elementor-element.elementor-element-98b0282{--display:flex;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}/* Start custom CSS for container, class: .elementor-element-98b0282 *//* Importar fuente (Montserrat/Poppins) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* --- CONFIGURACIÓN PRINCIPAL DEL CONTENEDOR --- */
#rt_form_libro {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Sombra un poco más profunda */
    box-sizing: border-box;
    color: #333333;
}

#rt_form_libro * {
    box-sizing: border-box; /* Vital para que el padding no afecte el ancho total */
}

/* --- SISTEMA DE COLUMNAS (FLEXBOX) --- */
.form-row-libro {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 20px; /* Espacio uniforme entre columnas */
    align-items: flex-end; /* Alinea los inputs en la parte inferior */
}

.column-full {
    width: 100%;
    flex: 0 0 100%;
}

.column-half, .column-two {
    /* Calculamos el ancho restando la mitad del hueco (gap) para que cuadre perfecto al 50% */
    width: calc(50% - 10px); 
    flex: 0 0 calc(50% - 10px);
}

/* --- TÍTULOS --- */
h2.title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #00b4d8;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* --- ETIQUETAS DE TEXTO --- */
.form-row-libro div {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

/* --- INPUTS Y SELECTS (IGUALACIÓN DE TAMAÑO) --- */
input[type="text"],
input[type="date"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px; /* Bordes suaves */
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #334155;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    
    /* PROPIEDADES CLAVE PARA IGUALAR TAMAÑOS */
    height: 48px;          /* Altura fija idéntica para todos */
    line-height: normal;   /* Resetea line-heights extraños */
    padding: 0 15px;       /* Padding lateral idéntico */
    margin-top: 0;         /* Eliminamos márgenes default */
    
    /* Para navegadores móviles (iOS) que redondean diferente */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none; 
}

/* Restaurar la flecha del select que borramos con 'appearance: none' */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center; /* Posición de la flecha */
    background-size: 12px;
    padding-right: 30px; /* Espacio para que el texto no tape la flecha */
    cursor: pointer;
}

/* Excepción para Textarea (no debe tener altura fija) */
textarea {
    height: auto; /* Altura automática */
    min-height: 120px;
    padding: 15px; /* Padding vertical y horizontal */
    resize: vertical;
}

/* Efecto Focus (Cuando escribes) */
input:focus, select:focus, textarea:focus {
    background-color: #ffffff;
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

/* --- ELEMENTOS DE TEXTO PEQUEÑOS Y LEGALES --- */
b.alert {
    color: #ef4444;
    font-weight: 500;
    font-size: 0.9em;
}

/* Caja gris de términos legales */
.column-two[style*="font-size:10px"] {
    font-size: 11px !important;
    line-height: 1.6;
    color: #64748b;
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    width: 100%; /* Ocupa todo el ancho en mobile, mitad en desktop */
}

/* --- CHECKBOX Y RADIOS --- */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    accent-color: #00b4d8;
    cursor: pointer;
    margin-top: -2px; /* Ajuste visual fino */
}

/* --- BOTÓN DE ENVIAR --- */
input[type="submit"] {
    background-color: #00b4d8;
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0 40px; /* Padding lateral */
    height: 50px; /* Altura consistente */
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
    letter-spacing: 1px;
    margin-top: 10px;
    -webkit-appearance: none; /* Fix para iOS buttons */
}

input[type="submit"]:hover {
    background-color: #0096c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 180, 216, 0.4);
}

/* --- RESPONSIVE (CELULARES) --- */
@media (max-width: 768px) {
    #rt_form_libro {
        padding: 20px 15px;
        margin: 15px;
    }

    .form-row-libro {
        gap: 15px;
    }
    
    .column-half, .column-two {
        width: 100%;
        flex: 0 0 100%;
    }
    
    h2.title {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    h2.title b.alert {
        margin-top: 5px;
    }
}/* End custom CSS */