/* ==========================================================================
   Estilos del Panel (Dashboard) y Formularios ACF
   ========================================================================== */

/* Contenedor Grid Principal */
.oyerd-dashboard .acf-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .oyerd-dashboard .acf-fields {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Campos que ocupan todo el ancho */
.oyerd-dashboard .acf-field[data-name="descripcion"],
.oyerd-dashboard .acf-field[data-name="social_links"],
.oyerd-dashboard .acf-field[data-name="descripcion_oferta"],
.oyerd-dashboard .acf-field[data-name="mapa_negocio"],
.oyerd-dashboard .acf-field[data-name="galeria_producto"],
.oyerd-dashboard .acf-field[data-name="especificaciones_producto"],
.oyerd-dashboard .acf-field[data-type="wysiwyg"],
.oyerd-dashboard .acf-field[data-type="textarea"],
.oyerd-dashboard .acf-field[data-type="repeater"],
.oyerd-dashboard .acf-field[data-name="_post_title"] {
    grid-column: 1 / -1 !important;
}

/* Reset de márgenes de ACF */
.oyerd-dashboard .acf-field {
    margin-bottom: 0 !important;
    border: none !important;
    padding: 0 !important;
}

/* Etiquetas (Labels) */
.oyerd-dashboard .acf-label label {
    color: #374151 !important; /* text-gray-700 */
    font-size: 0.875rem !important; /* text-sm */
    font-weight: 600 !important; /* font-semibold */
    margin-bottom: 0.5rem !important;
    display: block !important;
}

.oyerd-dashboard .acf-label p.description {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    margin-bottom: 0.5rem !important;
    margin-top: -0.25rem !important;
}

/* Inputs de Texto, Selects y Textareas */
.oyerd-dashboard .acf-input input[type="text"],
.oyerd-dashboard .acf-input input[type="url"],
.oyerd-dashboard .acf-input input[type="number"],
.oyerd-dashboard .acf-input input[type="email"],
.oyerd-dashboard .acf-input input[type="date"],
.oyerd-dashboard .acf-input input[type="password"],
.oyerd-dashboard .acf-input textarea,
.oyerd-dashboard .acf-input select {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important; /* border-gray-300 */
    color: #111827 !important; /* text-gray-900 */
    border-radius: 0.5rem !important; /* rounded-lg */
    padding: 1rem 1rem !important; /* Aumentado padding top y bottom para más altura */
    width: 100% !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Focus States */
.oyerd-dashboard .acf-input input[type="text"]:focus,
.oyerd-dashboard .acf-input input[type="url"]:focus,
.oyerd-dashboard .acf-input input[type="number"]:focus,
.oyerd-dashboard .acf-input input[type="email"]:focus,
.oyerd-dashboard .acf-input input[type="date"]:focus,
.oyerd-dashboard .acf-input input[type="password"]:focus,
.oyerd-dashboard .acf-input textarea:focus,
.oyerd-dashboard .acf-input select:focus {
    outline: none !important;
    border-color: #012d62 !important; /* Brand Blue */
    box-shadow: 0 0 0 3px rgba(1, 45, 98, 0.15) !important;
    background-color: #ffffff !important;
}

/* Textarea ajustes */
.oyerd-dashboard .acf-input textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

/* Campos deshabilitados (Ej: expiración si están en básico, o link si no son elite) */
.oyerd-dashboard .acf-input input:disabled,
.oyerd-dashboard .acf-input textarea:disabled {
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

/* Repeater Estilos */
.oyerd-dashboard .acf-repeater .acf-table {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
}
.oyerd-dashboard .acf-repeater th {
    background: #f9fafb !important;
    color: #4b5563 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0.75rem !important;
}
.oyerd-dashboard .acf-repeater td {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 1rem !important;
}

/* Botones ACF (Ej: Añadir Fila, Subir Imagen) */
.oyerd-dashboard .acf-button {
    background-color: #012d62 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.15s !important;
}
.oyerd-dashboard .acf-button:hover {
    background-color: #001f42 !important;
}

/* Image Uploader ACF */
.oyerd-dashboard .acf-image-uploader {
    border: 2px dashed #d1d5db !important;
    border-radius: 0.5rem !important;
    background: #f9fafb !important;
    padding: 1rem !important;
    transition: border-color 0.2s !important;
}
.oyerd-dashboard .acf-image-uploader:hover {
    border-color: #012d62 !important;
}
.oyerd-dashboard .acf-image-uploader img {
    border-radius: 0.25rem !important;
}

/* Ocultar botones e interfaces extras no deseadas de ACF */
.oyerd-dashboard .acf-postbox .hndle {
    display: none !important;
}
.oyerd-dashboard .acf-form-submit {
    margin-top: 2rem !important;
}


.acf-input-wrap input[type="text"],
.acf-input-wrap input[type="url"]{
    height: 55px !important;
    padding: 15px;
}

.sticky-info{
    top: 105px !important;
}

.second_row_header{
    margin-top: -200px !important;
}

/* ==========================================================================
   Contenedor Principal de Tailwind
   ========================================================================== */
.oyerd-tw-wrap {
    display: block;
    width: 100%;
}