/* IMPORTANTE: En producción cambiar beltmetal-com.local por beltatelier.co */

/* =======================================
   ESTILOS GENERALES
   ======================================= */
@font-face {
    font-family: 'Avenir Next';
    src: url('https://beltatelier.co/wp-content/uploads/2025/07/avenir-next-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Forzamos la fuente y evitamos herencias del tema en todo el plugin */
.belt-etica-wrapper,
.belt-etica-wrapper * {
    box-sizing: border-box !important;
    font-family: 'Avenir Next', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
/* 
.main-container {
    max-width: 856px !important;
    margin: 0 auto 30px auto !important;
    background-color: #ffffff !important;
    padding: 45px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    border-radius: 4px !important; 
} */

/* Textos generales */
.form-intro {
    font-size: min(1.146vw, 22px) !important;
    margin-bottom: 35px !important;
    font-weight: bold !important;
    color: #7A7A7A !important;
    line-height: 1.5 !important;
}

.field-group { margin-bottom: 30px !important; }

.field-label {
    display: block !important;
    font-weight: bold !important;
    margin-bottom: min(1.302vw, 25px) !important;
    font-size: min(1.146vw, 22px) !important;
    color: #7A7A7A !important;
}

.field-subtext {
    font-weight: normal !important;
    font-size: min(1.146vw, 22px) !important;
    margin-top: 4px !important;
    line-height: 1.5;
    /* display: block !important; */
    color: #7A7A7A !important;
}

/* =======================================
   CHECKBOXES (Blindaje visual)
   ======================================= */
.checkbox-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important; 
}

.checkbox-option {
    display: flex !important;
    align-items: center !important;
    font-size: min(1.146vw, 22px) !important;
    cursor: pointer !important;
    color: #7A7A7A !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* El input checkbox en sí */
.belt-etica-wrapper .checkbox-option input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    min-width: 16px !important;
    width: 16px !important;
    height: 16px !important;
    border: 1px solid #7A7A7A !important; /* Forzamos el borde gris */
    border-radius: 0 !important; /* Esquinas totalmente cuadradas */
    margin: 0 12px 0 0 !important; 
    position: relative !important;
    cursor: pointer !important;
    background-color: #ffffff !important;
    outline: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
}

/* Estado Marcado */
.belt-etica-wrapper .checkbox-option input[type="checkbox"]:checked {
    background-color: #289d98 !important;
    border-color: #289d98 !important;
}

/* El chulito (checkmark) */
.belt-etica-wrapper .checkbox-option input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 4px !important;
    top: 1px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    display: block !important;
}

/* =======================================
   INPUTS Y TEXTAREAS
   ======================================= */
.belt-etica-wrapper input[type="text"],
.belt-etica-wrapper input[type="email"],
.belt-etica-wrapper input[type="date"],
.belt-etica-wrapper textarea {
    width: 100% !important;
    border: 1px solid #7A7A7A !important; /* Forzamos la aparición del borde */
    padding: 10px 12px !important; 
    font-size: 14px !important;
    color: #7A7A7A !important;
    outline: none !important;
    background-color: #ffffff !important; /* Fondo blanco garantizado */
    margin: 0 !important;
    border-radius: 0 !important; /* Esquinas cuadradas */
    box-shadow: none !important;
}

/* Excepción para la fecha que es más corta */
.input-date-custom { 
    max-width: 160px !important; 
    display: block !important;
}

.belt-etica-wrapper input:focus,
.belt-etica-wrapper textarea:focus {
    border-color: #289d98 !important; /* Borde verde al hacer clic */
}

.belt-etica-wrapper textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

/* =======================================
   BOTONES
   ======================================= */
/* Botón Upload de Archivos */
.file-upload-wrapper { display: flex !important; align-items: center !important; }
.file-upload-wrapper input[type="file"] { display: none !important; }

.btn-upload {
    background-color: transparent !important;
    border: 1px solid #7A7A7A !important;
    color: #7A7A7A !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    display: inline-block !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.btn-upload:hover { border-color: #289d98 !important; color: #289d98 !important; }
#file-chosen-text { font-size: 13px !important; margin-left: 15px !important; color: #7A7A7A !important; }

/* Grid de Contacto */
.contact-grid {
    display: grid !important;
    margin-top: 25px !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    max-width: 64% !important;
}
.contact-grid input { text-align: center !important; }

/* Botón Principal Submit */
.submit-wrapper { text-align: left !important; margin-top: 50px !important; }

.btn-main-submit {
    background-color: #289d98 !important;
    color: #ffffff !important;
    border: 2px solid #289d98 !important;
    padding: 14px 88px !important;
    font-size: 23px !important;
    letter-spacing: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    border-radius: 0 !important;
}

.btn-main-submit:hover {
    background-color: transparent !important;
    color: #289d98 !important;
    box-shadow: 0 4px 15px rgba(40, 157, 152, 0.2) !important;
}
.btn-main-submit:disabled { opacity: 0.5 !important; cursor: not-allowed !important; }

/* =======================================
   MÓDULO DE CONSULTA
   ======================================= */
/* .lookup-section {
    padding-top: 40px !important;
    border-top: 1px solid #eee !important;
    margin-top: 40px !important;
} */

.description {
    font-size: min(1.146vw, 22px) !important;
    margin-bottom: 25px !important;
    font-weight: 400 !important;
    color: #7A7A7A !important;
}

.search-container {
    display: flex !important;
    max-width: 265px !important;
    height: 35px !important;
}

.search-container input {
    flex: 1 !important;
    border: 1px solid #7A7A7A !important;
    border-right: none !important; /* Oculta el borde derecho para unirlo al botón */
    padding: 0 15px !important;
    font-size: 14px !important;
    color: #7A7A7A !important;
    outline: none !important;
    text-align: center !important;
    margin: 0 !important;
    background-color: #ffffff !important;
    border-radius: 0 !important;
}

.search-container button {
    width: 50px !important;
    background-color: #ffffff !important;
    border: 1px solid #7A7A7A !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: background 0.3s !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.search-container button:hover { background-color: #f9f9f9 !important; }
.search-container button:hover svg { stroke: #289d98 !important; }

/* Estados y Respuestas */
.status-badge {
    margin-top: 25px !important;
    padding: 20px !important;
    border: 1px solid #289d98 !important;
    background-color: rgba(40, 157, 152, 0.05) !important;
    border-radius: 4px !important;
    text-align: left !important;
    max-width: 265px !important;
}

.status-label {
    color: #7A7A7A !important;
    font-size: min(1.146vw, 22px) !important;
    display: block !important;
    margin-bottom: 5px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.status-value {
    color: #289d98 !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

@media (max-width: 768px) {
    .contact-grid { max-width: 100% !important; grid-template-columns: 1fr !important; }
    .btn-main-submit { width: 100% !important; padding: 14px 20px !important; }
}

/* =======================================
   ESTILOS EXCLUSIVOS PARA MÓVILES
   ======================================= */
@media (max-width: 768px) {
    .belt-etica-wrapper,
    .belt-etica-wrapper .form-intro,
    .belt-etica-wrapper .field-label,
    .belt-etica-wrapper .field-subtext,
    .belt-etica-wrapper .checkbox-option,
    .belt-etica-wrapper .description,
    .belt-etica-wrapper input,
    .belt-etica-wrapper textarea,
    .belt-etica-wrapper .status-label {
        font-size: 4.5vw !important;
    }

    /* Ajuste opcional para que el botón no quede con letra desproporcionada */
    .belt-etica-wrapper .btn-main-submit {
        font-size: 5vw !important;
        letter-spacing: 2px !important;
    }
    
    /* Ajuste para los inputs del grid de contacto en móvil */
    .contact-grid input {
        font-size: 4.5vw !important;
    }
}