/* ============================================
   REFINAMIENTO PROFESIONAL FINAL
   ============================================ */

/* ---------- TÍTULOS DE SECCIÓN (h2.title) ---------- */
/* El tema está aplicando estilos de h2 grandes. Los sobrescribimos: */
.libro-content h2.title,
.libro-content .title {
    font-size: 0.75rem !important;          /* 12px */
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280 !important;              /* gris medio, no negro */
    padding: 0 0 0.75rem 0 !important;
    margin: 0 0 0.5rem 0 !important;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    line-height: 1.4 !important;
    font-family: inherit !important;
}

.libro-content h2.title .alert {
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
    text-transform: none;
    letter-spacing: 0;
    color: #9ca3af !important;
    font-style: normal;
}

/* ---------- INPUTS: bordes grises profesionales con !important ---------- */
.libro-content #rt_form_libro input[type="text"],
.libro-content #rt_form_libro input[type="email"],
.libro-content #rt_form_libro input[type="date"],
.libro-content #rt_form_libro input[type="tel"],
.libro-content #rt_form_libro input[type="number"],
.libro-content #rt_form_libro select,
.libro-content #rt_form_libro textarea {
    border: 1px solid #d1d5db !important;          /* gris neutro */
    border-radius: 6px !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
    color: #111827 !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    padding: 0.625rem 0.875rem !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 40px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

/* Placeholder con gris suave */
.libro-content #rt_form_libro input::placeholder,
.libro-content #rt_form_libro textarea::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
    opacity: 1;
}

/* Hover: gris un escalón más oscuro */
.libro-content #rt_form_libro input:hover:not(:focus):not([readonly]),
.libro-content #rt_form_libro select:hover:not(:focus),
.libro-content #rt_form_libro textarea:hover:not(:focus) {
    border-color: #9ca3af !important;
}

/* Focus: azul institucional con anillo sutil */
.libro-content #rt_form_libro input:focus,
.libro-content #rt_form_libro select:focus,
.libro-content #rt_form_libro textarea:focus {
    border-color: var(--lr-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 44, 92, 0.10) !important;
    outline: none !important;
}

/* Readonly: gris muy suave */
.libro-content #rt_form_libro input[readonly] {
    background-color: #f9fafb !important;
    color: #6b7280 !important;
    border-color: #e5e7eb !important;
    cursor: default;
}

/* ---------- LABELS: pesos y colores profesionales ---------- */
.libro-content .column-half,
.libro-content .column-two,
.libro-content .column-full {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    line-height: 2.5;
    margin-bottom: 0;
}

.libro-content .alert {
    color: #dc2626 !important;
    font-weight: 600 !important;
    font-size: inherit;
}

/* ---------- SELECT: flecha custom unificada ---------- */
.libro-content #rt_form_libro select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.875rem center !important;
    padding-right: 2.5rem !important;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Quitar flecha nativa en IE/Edge legacy */
.libro-content #rt_form_libro select::-ms-expand {
    display: none;
}

/* ---------- TEXTAREA: tamaño mínimo cómodo ---------- */
.libro-content #rt_form_libro textarea {
    min-height: 100px !important;
    resize: vertical;
    line-height: 1.55 !important;
}