.sd-no-services-message {
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Estilos para contenido de Elementor */
.sd-no-services-message .elementor-heading-title,
.sd-no-services-message .elementor-widget-container,
.sd-no-services-message .elementor-button {
    margin: 0 auto;
    max-width: 100%;
}

/* Estilos para contenido de Gutenberg */
.sd-no-services-message .wp-block-group,
.sd-no-services-message .wp-block-columns,
.sd-no-services-message .wp-block-button {
    margin: 0 auto;
    max-width: 100%;
}

/* Asegurar que los botones se muestren correctamente */
.sd-no-services-message a {
    text-decoration: none;
}

.sd-no-services-message .elementor-button,
.sd-no-services-message .wp-block-button__link {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

/* Estilos para el shortcode [sd_info_dominio] */
.sd-dominio-registrado-info {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    padding: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Estilos compartidos para cabeceras de shortcodes */
.sd-info-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sd-info-header-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
}
.sd-info-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

/* ============================================= */
/* == NUEVOS ESTILOS PARA [sd_info_servicio] == */
/* ============================================= */

.sd-info-servicio-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.sd-info-servicio-body {
    padding: 0;
}

.sd-info-servicio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.sd-info-servicio-row:last-child {
    border-bottom: none;
}

.sd-info-servicio-label {
    font-weight: 500;
    color: #475569;
    font-size: 0.9rem;
}

.sd-info-servicio-value {
    color: #1e293b;
    font-size: 0.95rem;
    text-align: right;
}

.sd-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: capitalize;
}
.sd-status-badge-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Colores de los estados */
.sd-status-badge.activado { background-color: #dcfce7; color: #166534; }
.sd-status-badge.activado .sd-status-badge-icon { background-color: #22c55e; }
.sd-status-badge.suspendido { background-color: #fee2e2; color: #991b1b; }
.sd-status-badge.suspendido .sd-status-badge-icon { background-color: #ef4444; }
.sd-status-badge.trabajando { background-color: #dbeafe; color: #1e40af; }
.sd-status-badge.trabajando .sd-status-badge-icon { background-color: #3b82f6; }
.sd-status-badge.pendiente { background-color: #fef9c3; color: #854d0e; }
.sd-status-badge.pendiente .sd-status-badge-icon { background-color: #f59e0b; }


.sd-password-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sd-toggle-secret {
    cursor: pointer;
    color: #94a3b8;
    width: 20px;
    height: 20px;
    transition: color 0.2s;
}
.sd-toggle-secret:hover {
    color: #475569;
}

.sd-nameservers {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

/* ============================================= */
/* == ESTILOS MEJORADOS PARA [sd_info_titular] == */
/* ============================================= */

.sd-titular-container,
.sd-titular-display-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    overflow: hidden;
}

/* Vista de visualización */
.sd-titular-display-wrapper {
    padding: 1.5rem;
}
.sd-titular-info-row {
    display: flex;
    margin-bottom: 1rem;
    font-size: 15px;
}
.sd-titular-info-row:last-of-type {
    margin-bottom: 0;
}
.sd-titular-info-row .label {
    width: 120px;
    font-weight: 500;
    color: #64748b;
    flex-shrink: 0;
}
.sd-titular-info-row .value {
    color: #334155;
    font-weight: 500;
}
.sd-form-actions-display {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}
.sd-change-contact-btn {
    background-color: #ec0505;
    color: #ffffff !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.sd-change-contact-btn:hover {
    background-color: #c44b4b;
}


/* Formulario de edición */
.sd-titular-form {
    padding: 1.5rem;
}
.sd-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.sd-form-field {
    display: flex;
    flex-direction: column;
}
.sd-form-field label {
    font-weight: 500;
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.sd-form-field input {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f8fafc;
}
.sd-form-field input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    background-color: #fff;
}
.sd-form-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}
.sd-form-button {
    background-color: #16a34a;
    color: #ffffff !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}
.sd-form-button:hover {
    background-color: #15803d;
}
.sd-form-button-cancel {
    background-color: #f1f5f9;
    color: #475569 !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}
.sd-form-button-cancel:hover {
    background-color: #e2e8f0;
}
.sd-form-success {
    background-color: #dcfce7;
    color: #166534;
    padding: 1rem 1.5rem;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-weight: 500;
    margin: 1.5rem;
}

.sd-form-error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 1rem 1.5rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-weight: 500;
    margin: 1.5rem;
}


/* Responsividad */
@media (max-width: 768px) {
    .sd-no-services-message {
        padding: 1rem;
    }
    
    .sd-no-services-message .elementor-column,
    .sd-no-services-message .wp-block-column {
        width: 100% !important;
        margin-bottom: 1rem;
    }

    .sd-info-servicio-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .sd-info-servicio-value, .sd-nameservers {
        text-align: left;
    }

    .sd-form-grid {
        grid-template-columns: 1fr;
    }
    .sd-form-button-cancel {
        margin-top: 0;
    }
    .sd-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
     .sd-form-button, .sd-form-button-cancel {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

