/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Tema hijo para Divi
 Author:         Centrotype
 Template:       Divi
 Version:        1.0.0
*/
/* 1. CARGA DE FUENTE */
@font-face {
    font-family: 'OHBlocks-Regular';
    src: url('/wp-content/themes/divi-child/fonts/OHBLOCKS-Regular.woff2') format('woff2');
    font-weight: normal; 
    font-style: normal; 
    font-display: swap;
}

/* 2. CONTENEDOR PRINCIPAL */
.type-tester-container { 
    padding: 10px 0; 
    width: 100%; 
    font-family: sans-serif;
    background-color: transparent;
}

/* 3. TOOLBAR (MENÚ SUPERIOR) */
.tester-toolbar {
    display: flex; 
    align-items: center; 
    justify-content: flex-start;
    gap: 30px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid #000;
    margin-bottom: 5px !important; /* Espacio mínimo para que el texto suba */
    flex-wrap: nowrap;
}

/* SELECTOR DE PESO */
.weight-selector-wrapper {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    position: relative;
}

.font-weight-select {
    border: none; 
    background: transparent; 
    font-size: 16px; 
    font-weight: bold;
    cursor: pointer; 
    outline: none; 
    appearance: none; 
    -webkit-appearance: none;
    padding-right: 20px; 
    z-index: 2;
}

/* SLIDERS (DISEÑO MINIMALISTA: LÍNEA Y CÍRCULO) */
.toolbar-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.label-text { 
    font-size: 14px; 
    color: #000; 
}

.value-display { 
    font-size: 14px; 
    min-width: 50px; 
}

input[type=range].custom-slider {
    -webkit-appearance: none; 
    width: 150px; 
    background: transparent; 
    cursor: pointer;
    border: none !important;
}

input[type=range].custom-slider::-webkit-slider-runnable-track {
    width: 100%; 
    height: 1px; 
    background: #000;
}

input[type=range].custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none; 
    height: 18px; 
    width: 18px; 
    border-radius: 50%;
    background: #f2f2f2; /* Cambia al color de fondo de tu web si no es blanco */
    border: 1px solid #000; 
    margin-top: -9px;
}

/* BOTONES DE ALINEACIÓN */
.align-buttons { 
    display: flex; 
    gap: 15px; 
    margin-left: auto; 
}

.align-btn { 
    cursor: pointer; 
    opacity: 0.3; 
    transition: 0.2s; 
    font-size: 22px; 
    line-height: 1; 
}

.align-btn.active { 
    opacity: 1; 
    color: #ff5e00; /* Naranja según tu captura */
}

/* 4. ÁREA DE PREVISUALIZACIÓN DE TEXTO */
.tester-preview {
    font-family: 'OHBlocks-Regular', sans-serif !important;
    font-size: 150px; 
    line-height: 0.85 !important; /* Ajustado para eliminar espacio superior de la fuente */
    color: #000;
    outline: none !important; 
    width: 100%; 
    text-align: left;
    white-space: pre-wrap; 
    word-break: break-word;
    margin-top: -25px !important; /* Succiona el texto hacia arriba */
    padding-top: 0 !important;
    border: none !important;
}

/* Limpieza de etiquetas automáticas de WordPress/Divi */
.tester-preview p {
    margin: 0 !important;
    padding: 0 !important;
}